Searching not working with latest update

For some reason searching seems to be causing trouble, but I noticed a slew of log errors with this recent update.

Sun, 02 Sep 2012 05:03:43 GMT}

Backtrace: USER NOTICE: class-album detected an invalid folder name: NewGal/B/BlazBlue Series/BlazBlue Continuum Shift. in /home2/ettugame/public_html/zenphoto/zp-core/class-album.php on line 68

trigger_error called

from Album->__construct (class-album.php [68])

from SearchEngine->getSearchImages (class-search.php [1422])

from SearchEngine->getImages (class-search.php [1477])

from SearchEngine->getNumImages (class-search.php [1361])

from getNumImages (template-functions.php [1805])

from include (search.php [3])

from index.php [92]

Comments

  • acrylian Administrator, Developer
    So does that album exist? The spaces in "BlazBlue Continuum Shift" here may be the cause of the issues. Although it should work I would really recommended to use underscores or divis instead of spaces in file/folder names.

    You could try to change the search options regarding spaces.
  • Er, actually no it doesn't. Hm... regardless, the error in question was a result of searching. Effectively, when I attempted to search for something (such as Final Fantasy, or any search terms) the resulting page came up as a white page with nothing displayed.
  • acrylian Administrator, Developer
    Then you should try to clear the browser cache, disable the search cache expire option and perform a database refresh on Zenphoto (admin overview). Probably that all references an album that is gone meanwhile.
  • Probably what you need to do is refresh your database. Most likely this album was removed without Zenphoto knowing. Also check the search cache. You may have a cached search that has not yet expired.
  • I'm having a similar problem with "search" after upgrading to 1.4.3.2

    Error log shows:

    `[02-Sep-2012 20:32:05 UTC] PHP Fatal error: Call to a member function albumSubRights() on a non-object in /home/bpskdk/public_html/zenphoto/zp-core/class-search.php on line 1257`

    If I quote out this line then the search works.
  • Please try tonight's nightly build and report if you still have the issue.
  • Uploaded nightly build: release 10732.

    Issue is still there but error message has changed to:

    `[03-Sep-2012 07:17:57 UTC] PHP Fatal error: Call to a member function isMyItem() on a non-object in /home/bpskdk/public_html/zenphoto/zp-core/class-search.php on line 1265`
  • My apologies. Release 10747
  • Ok, a fix for this will be in tonight's nightly build. Please try it and report back. (Hopefully no new issues this time!)
  • Hi, I've been having the same error for a few days while I developed a new Zenphoto site. Just tested "zenphoto-2012-09-02-trunk.zip":

    The search function is now behaving as expected and no further errors are showing in my php error log when I perform searches.

    Thanks so much!
  • Thanks for your update.
Sign In or Register to comment.