Fixed Error when trying to upload cover

GarethPlevin

New Member
I am getting the following error message when I try to upload the cover photo.

Fatal error: Call to undefined method sonnb_XenGallery_XenForo_Image_Gd::resize() in /home/myusername/public_html/library/Nobita/Teams/Model/Cover.php on line 100

In the xenforo error log it says:
Server Error Log
Error Info
ErrorException: Fatal Error: Call to undefined method sonnb_XenGallery_XenForo_Image_Gd::resize() - library/Nobita/Teams/Model/Cover.php:100
Generated By: Gareth, 4 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(69) "https://mynorthwales.co.uk/groups/penrhos-coastal-park.1/cover-upload"
["_GET"] => array(0) {
}
["_POST"] => array(1) {
["_xfToken"] => string(8) "********"
}
}

I am not sure if this is a server miss-configuration or something else.

Any ideas.
 
What version of sonnb XenGallery you are used? I have been testing with the latest version but it still work as expected.
 
Sorry for the delay in responding

The latest update seems to have fixed that error thanks.

But I have a new error now
Server Error Log
Error Info
ErrorException: imagejpeg(/home/myusername/public_html/data/teams/covers/0/1.jpg): failed to open stream: No such file or directory - library/XenForo/Image/Gd.php:277
Generated By: Gareth, 3 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'imagejpeg(/home...', '/home/mynorthwa...', 277, Array)
#1 /home/myusername/public_html/library/XenForo/Image/Gd.php(277): imagejpeg(Resource id #111, '/home/mynorthwa...', 85)
#2 /home/myusername/public_html/library/sonnb/XenGallery/XenForo/Image/Gd.php(175): XenForo_Image_Gd->output(2, '/home/mynorthwa...', 85)
#3 /home/myusername/public_html/library/Nobita/Teams/Model/Cover.php(112): sonnb_XenGallery_XenForo_Image_Gd->output(2, '/home/mynorthwa...', 85)
#4 /home/myusername/public_html/library/Nobita/Teams/Model/Cover.php(73): Nobita_Teams_Model_Cover->cropCover(Array, Array)
#5 /home/myusername/public_html/library/Nobita/Teams/ControllerPublic/Team.php(1476): Nobita_Teams_Model_Cover->doUpload(Object(XenForo_Upload), Array)
#6 /home/myusername/public_html/library/XenForo/FrontController.php(347): Nobita_Teams_ControllerPublic_Team->actionCoverUpload()
#7 /home/myusername/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /home/myusername/public_html/index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
["url"] => string(69) "https://mynorthwales.co.uk/groups/penrhos-coastal-park.1/cover-upload"
["_GET"] => array(0) {
}
["_POST"] => array(1) {
["_xfToken"] => string(8) "********"
}

When I check the folder

/home/myusername/public_html/data/teams/covers/0/1.jpg

it does not exist.

But,
/home/myusername/public_html/data/teams/covers/source/0/1.jpg
does exist
 
Ok! I think i have miss check the folder exist before create image.
 
Back
Top