Error log showing fatal errors in slideshow

Zenphoto version 1.4.2.2 [9365] (Official Build)
Current locale setting: en_US.UTF8
PHP version: 5.3.8
Graphics support: PHP GD library bundled (2.0.34 compatible)
PHP memory limit: 96M (Note: Your server might allocate less!)
MySql version: 5.1.61

I'm showing the following errors in the zp-core/zp-extensions/slideshow error log:

PHP Fatal error: Call to a member function get() on a non-object in ......../zenphoto/zp-core/zp-extensions/slideshow/slideshow-counter.php on line 19

I suspect it may be related to one particular image or album but my skills are insufficient to find out where.

I've searched the forum but can't find anything (apologies if I've missed it). A Google search shows several sites with the same error in their logs.

Any help gratefully received.

Mike

Comments

  • acrylian Administrator, Developer
    We will have to take a look. Please open a ticket.
  • There should probably be some more information in your debug log regarding this--an error on album or image instantiation.
  • My apologies for taking so long to reply.

    The debug log shows:

    {Sun, 11 Mar 2012 08:01:36 GMT} Zenphoto v1.4.2.2[9365]

    Then multiple entries as follows:

    Backtrace: Bad filename suffix in newImage()
    newImage called
    from printSlideShow (slideshow.php [424])
    from include (slideshow.php [20])
    from index.php [128]

    I think this definitely means I have a bad image file somewhere. Any hints as to how I might find it (there are over 6300 images in the Gallery!)? I've tried finding a bad suffix in the database but haven't been able to isolate it.

    Thank you.
  • There should be some HTML generated up to the point of failure. It will be some javascript with a list of items like:

    `
    ImageList[0] = "";
    TitleList[0] = "";
    DescList[0] = "";
    ImageNameList[0] = "";
    `
    Where this list stops is just before the image causing the problem. The album seems to be a dynamic album from the code location, if that helps.

    On looking a bit more closely it would appear that the "image" is an empty string. So probably there is a PHP error somewhere in your logs relating to this.
Sign In or Register to comment.