Zenphoto not working after upgrade to WordPress 3.0

Ha! Nothing wrong with ZenPhoto...
Damn, I hate these things. It seems that there is a function 'checked()' in the general-template.php file of WP that causes ZP to give this error:

`Fatal error: Cannot redeclare checked() (previously declared in /srv/jackdaw/www/www.spoenk.nl/beeldend/zp-core/admin-functions.php:401) in /srv/jackdaw/www/www.spoenk.nl/wp-includes/general-template.php on line 2241`

I commented out this function, just to see what it does, but then the widgets page in WP isn't working anymore. Now what? Import all my posts into ZP? :)

Comments

  • acrylian Administrator, Developer
    Well, we of course don't test if function may exist in other system as we consider Zenphoto standalone...;-) Maybe do the integration a little different or more separate?

    Yeah, or import everything to Zenphoto/Zenpage is a good idea...:-)
  • I changed all the appearances of 'checked' in admin-functions.php to 'zpchecked' and this seems to work. Nothing broken so far.
    I encountered these kind of problems earlier, before working with WP and ZP. Functions with the same name. I always wondered why functions never had the same kind of prefix like database tables: zp_functionname() and wp_functionname().
  • Zenphoto is intended to be standalone (as is Wordpress) So I guess neither software found the need to make its functions unique rather than "programmer friendly"
  • Yes, I know. But I used to have some functionality in my ZP-sidebar that came from WP. But now I guess I have to completely disconnect the two.
  • acrylian Administrator, Developer
    Or you write a wrapper function/plugin. Or you use Zenpage...;-)
  • Let me be the second to express displeasure with this situation. It broke my website too. Thanks for the heads up, jackdaw, about the checked function — that got things back up and running for now.

    It would be nice if Wordpress and Zenphoto played nice together. I'd rather not have to ditch Zenphoto.
  • acrylian Administrator, Developer
    Sorry about that. But as sbillard said, Wordpress is standalone and Zenphoto is, too. I am sure Zenphoto will not play with other CMS and vice versa as well. We really don't have the resource to check these things, especially as we don't know what people might be doing with the third party Wordpress tools out there. I hope you can understand that...

    It depends how you integrate them both. We do use them both together (of course not WP 3 yet) as well (although it is planned to move the site to Zenphoto and Zenpage only once we find the time for it.)
  • bye
  • I disconnected the two. Changing the checked function to zpchecked didn't work out very well. As might be expected. In the end I found I didn't even had to combine the two after all. But importing all my 1550 posts from WP to ZP? Perhaps later.
  • acrylian Administrator, Developer
    Good that you got it going. Disconnecting is probably the best. It would be a good test for the Wordpress importer to try 1550 posts though...:-)

    Btw, I will update your showcase entry as the site now looks a little different.
  • This has just happened to me - I had WP and ZP working well together with WP at 3.01, and ZP at 1.3.1.

    Then I upgraded ZP to 1.3.1.2, and I got the same issue above.

    Tried to fix with the "ZP-" prefix, but that just created other problems (can see the pages, but with errors all over).

    So backed ZP back to 1.3.1, and issue still there - so it's "broke" as far as I can see.
Sign In or Register to comment.