Cannot add image
  • using 4.0.2
    click add image on a article and get 
    An error occurred

    Application error  

    errors on server log

    [Tue Oct 16 16:57:19 2012] [error] [client 81.104.203.81] File does not exist: /home/pharmat/public_html/themes/publication_2/theme_1/_img/favicon.ico
    [Tue Oct 16 16:57:18 2012] [error] [client 81.104.203.81] File does not exist: /home/pharmat/public_html/themes/publication_2/theme_1/_css/ui-lightness/images/ui-bg_highlight-soft_0_ffffff_1x100.png, referer: http://www.pharmatoday.net/
    sh: /home/pharmat/public_html/bin/events-notifier: Permission denied
    sh: /home/pharmat/public_html/bin/newscoop-autopublish: Permission denied
    [Tue Oct 16 16:57:05 2012] [error] [client 81.104.203.81] File does not exist: /home/pharmat/public_html/themes/publication_2/theme_1/_img/favicon.ico
    sh: /home/pharmat/public_html/bin/events-notifier: Permission denied
    sh: /home/pharmat/public_html/bin/newscoop-autopublish: Permission denied

  • 11 Comments sorted by
  • hi, do you have your images folder writable?
  • Hi Petr

    Yes

    its currently a testing site - but going live in a week

    has been working well until yesterday afternoon - nothing changed on the server log
  • so what exactly is not working - media box attach image dialog or insert image into wysiwyg editor?
  • Media

    Attach

    An Error occurred
  • can u add temporary to your .htaccess this line:

    SetEnv APPLICATION_ENV "development"

    this should give you more info in error message
  • An error occurred


    Application error




    Exception information:



    Type: RuntimeException

    Code: 0

    Message: Can't read size of image images/ (#115)

    File: /home/pharmat/public_html/library/Newscoop/Image/LocalImage.php : 174



    Stack trace:


    #0 /home/pharmat/public_html/library/Newscoop/Image/LocalImage.php(138): Newscoop\Image\LocalImage->getInfo()
    #1 /home/pharmat/public_html/library/Newscoop/Image/Rendition.php(195): Newscoop\Image\LocalImage->getWidth()
    #2 /home/pharmat/public_html/library/Newscoop/Image/ImageService.php(231): Newscoop\Image\Rendition->getThumbnail(Object(Newscoop\Image\LocalImage), Object(Newscoop\Image\ImageService))
    #3 /home/pharmat/public_html/library/Newscoop/Image/ThumbnailViewHelper.php(43): Newscoop\Image\ImageService->getThumbnail(Object(Newscoop\Image\Rendition), Object(Newscoop\Image\LocalImage))
    #4 [internal function]: Newscoop\Image\ThumbnailViewHelper->thumbnail(Object(Newscoop\Image\LocalImage), 150, 150, 'fit')
    #5 /home/pharmat/public_html/library/Zend/View/Abstract.php(342): call_user_func_array(Array, Array)
    #6 /home/pharmat/public_html/application/modules/admin/views/scripts/image/article-attach.phtml(116): Zend_View_Abstract->__call('thumbnail', Array)
    #7 /home/pharmat/public_html/application/modules/admin/views/scripts/image/article-attach.phtml(116): Zend_View->thumbnail(Object(Newscoop\Image\LocalImage), 150, 150, 'fit')
    #8 /home/pharmat/public_html/library/Zend/View.php(108): include('/home/pharmat/p...')
    #9 /home/pharmat/public_html/library/Zend/View/Abstract.php(880): Zend_View->_run('/home/pharmat/p...')
    #10 /home/pharmat/public_html/library/Zend/Controller/Action/Helper/ViewRenderer.php(897): Zend_View_Abstract->render('image/article-a...')
    #11 /home/pharmat/public_html/library/Zend/Controller/Action/Helper/ViewRenderer.php(918): Zend_Controller_Action_Helper_ViewRenderer->renderScript('image/article-a...', NULL)
    #12 /home/pharmat/public_html/library/Zend/Controller/Action/Helper/ViewRenderer.php(957): Zend_Controller_Action_Helper_ViewRenderer->render()
    #13 /home/pharmat/public_html/library/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
    #14 /home/pharmat/public_html/library/Zend/Controller/Action.php(523): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
    #15 /home/pharmat/public_html/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('articleAttachAc...')
    #16 /home/pharmat/public_html/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #17 /home/pharmat/public_html/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
    #18 /home/pharmat/public_html/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
    #19 /home/pharmat/public_html/public/index.php(7): Zend_Application->run()
    #20 /home/pharmat/public_html/admin.php(4): require_once('/home/pharmat/p...')
    #21 {main}


    Request Parameters:


    array (
    'module' => 'admin',
    'controller' => 'image',
    'action' => 'article-attach',
    'article_number' => '132',
    'language_id' => '1',
    )
  • so problem is one of the images in db. can u check your Images table - one of the latest images there with null width/height must be somehow corrupted. check if that file exists and is readable. if not it might help just to remove that record from db.
  • am i looking for
    cms-image-000000115.jpg
  • yep and 115 is also id in database
    it image local or is there a url?
  • my server kicking me out at the minute so i cant even check
  • thank you all sorted