Errors at the top of the opening page

I have been using ZenPhoto for 4 or 5 versions now. It was originally installed via Simple Scripts on my web hosts site. It has been updated several times the same way without any problems. I recently upgraded to Zenphoto version 1.4.0.1 [6590] (Official Build)and after the upgrade finished I checked the site and everything was file. Tonight I logged in and see 3 lines of errors at the top of the page. The errors are:

Notice: normalizeColumns (called from index.php line 1) is deprecated Use instead the theme options for images and albums per row. in /path/zenphoto/zp-core/zp-extensions/deprecated-functions.php on line 70

Warning: Cannot modify header information - headers already sent by (output started at /path/zenphoto/zp-core/zp-extensions/deprecated-functions.php:70) in /path/zenphoto/themes/sstsmg/index.php on line 2

Notice: zenJavascript (called from index.php line 6) is deprecated Use zp_apply_filter("theme_head"). in /path/zenphoto/zp-core/zp-extensions/deprecated-functions.php on line 70

Line 70 contains only a }.

Line 6 of index.php contains if (file_exists(dirname(__FILE__).'/'.ZENFOLDER.'/setup.php')) {

Any ideas on where to start tracking this?

Comments

  • These are indications that the theme you are using has not been updated to the Zenphoto 1.4 standards. You can eliminate these messages by going to the admin options tab for "plugins". Select the "deprecated functions" plugin and un-check the boxes for those functions mentioned.

    BTW, there are more than one "index.php" file that might be involved. In this case it is the one from your theme.
  • I do not see a "plugins" tab on any of the admin menus. There is a "plugins" folder at the root of the ZenPhoto install with 5 subdirectories. I admin the closest to extensions that I see is the Extensions tab and there is no "deprecated functions" entry. I have gone through all the admin menu items and do not see a mention of either "plugins" or "deprecated functions".

    I cleared the errors by deleting the normalizeColumns call from line 1 and the zenJavascript call from line 6 of the index.php in the current theme. I had to repeat this for most .php files in the theme. Everything seems to be working properly now. Thank you for the pointers.
  • acrylian Administrator, Developer
    If your user account on your Zenphoto installation is a full admin one you should see the following tabs on the backend:
    overview, upload, albums, pages, news, tags, comments, users, options, themes, plugins, logs
    (on smaller screens you might need to scroll to see all...)

    That "plugins" tab was never named "extensions" as far as I remember. Anyway, if you don't see all of those and there is no deprecated functions plugin as well, I assume that the update might not been correct. That plugin is a standard one and included (it is not in the "plugins" folder which is for custom ones only, but in zp-core/zp-extensions).
Sign In or Register to comment.