Weird Search page error

So i'm doing a site redesign, and I started getting this error:
[warn] mod_fcgid: stderr: PHP Fatal error: Cannot access protected property SearchEngine::$category_list
At first I thought I fat-fingered something in my search page, and to no avail. I then copied the search page from the zenpage installation and it's doing the exact same thing.

The weird thing is, it doesn't do it if I use the zenpage theme. However when I use the zenpage search.php file I still get the above error.

Is there search related calls that need to be on the other pages for a search to happen properly now?

I can comment out the section that does the checking if something is > 0, but then of course doing that the search comes back fine showing results, but then also displays the "no results" message.

Comments

  • acrylian Administrator, Developer
    I have never seen that error and actually other pages only have the search form. The Zenpage page uses some special theme functions related to search that are stored within theme's functions.php. But those are actually pure JS ones to show/hide the Zenpage search results only.

    Did you do a file compare? Do you use a category specific search or so on any page?
  • With the advent of requriring PHP5 we have been able to tighten up our Objects. Most likely your theme is using `$searchengine->category_list` rather than the method `$searchengine->getCategoryList()` The former is not allowed (and should not have been used anyway) It is now enforced this way by making the property a protected property which was not possible in PHP4.
  • Ahh, that's what it is. the zenpage search.php (which I copied over to troubleshoot) still uses category_list and album_list. Changing those over to getCategoryList() and getAlbumList() fixed the problem.
  • You need to be careful not to mix and match releases. Yes the 1.4.1 version of Zenpage did use the properties incorrectly. But then the 1.4.1 version of the search object did not protect them either.

    In the 1.4.2 Beta Zenpage does use the proper methods.
  • Yeah that's what had happened, not sure where I found the old file from, was almost positive I had wiped all the old files away. Now I have to go through it all with a fine tooth comb, lol. Oh wells. A good way to spend a Sunday I guess.
  • I believe that is part of the security hack. When mine comes up through a Google search, it comes up as some RoadRunner page, and I can't back out of it. I have to close the page. I've been told it won't actually be removed/back to normal until Google... probably every search engine, flushes their caches. Really annoying.
  • No, I was talking about the zenphoto search engine causing the error in my apache log, not anything from the exploit and google's flagging of my site. :)
  • acrylian Administrator, Developer
    baddco: It helps to really read topics you reply to... That's how seach engines work since always...
  • This one caught me too. Thanks for the fix!!

    Mike
  • acrylian Administrator, Developer
    It is a good idea to subscribe to one of our news facilities to get notified. The issue was almost two months ago! http://www.zenphoto.org/#stay-tuned
Sign In or Register to comment.