当我将图片上传为产品图片时...它会出现如下错误
exception 'Engine_Image_Adapter_Exception' with message 'File " Playlist Artwork
" is not an image or does not exist' in /var/www/html/application/libraries/Engine/Image/Adapter/Gd.php:132 Stack trace:
#0 /var/www/html/application/modules/Sitestoreproduct/Model/Product.php(243): Engine_Image_Adapter_Gd->open(Object(Engine_Form_Element_File))
#1 /var/www/html/application/modules/Music/controllers/IndexController.php(221): Sitestoreproduct_Model_Product->setPhoto(Object(Engine_Form_Element_File))
#2 /var/www/html/application/libraries/Zend/Controller/Action.php(513): Music_IndexController->createAction()
#3 /var/www/html/application/libraries/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('createAction')
#4 /var/www/html/application/libraries/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#5 /var/www/html/application/modules/Core/Bootstrap.php(75): Zend_Controller_Front->dispatch()
#6 /var/www/html/application/libraries/Engine/Application.php(160): Core_Bootstrap->run()
#7 /var/www/html/application/index.php(205): Engine_Application->run()
#8 /var/www/html/index.php(24): include('/var/www/html/a...')
#9 {main}
答案 0 :(得分:1)
正如您在日志中看到的那样,文件中的错误:application/modules/Sitestoreproduct/Model/Product.php
位于第243行。可能是在使用Gd(图形库)编辑音乐专辑的图片时出现错误。
希望这有帮助。