In theme options, image size not saved

I'm using the latest ZP version. When in theme options I want to save the image size (largest size) of the main gallery (collection), that will save to my desired 800px. But the other two galleries inside that main gallery keep flipping back to the old 680px size.

Comments

  • acrylian Administrator, Developer
    Errors in the logs?
  • Good call! :)

    I'm getting these errors in te log:

    `
    NOTICE: Trying to get property of non-object in /srv/jackdaw/www/www.jacktummers.nl/collectie/themes/zp-theme/zenhead.php op regel 114

    include called from include (album.php [1])

    from index.php [108]

    {6258:Wed, 12 Jun 2013 10:23:25 GMT}

    NOTICE: Undefined variable: firstPageImages in /srv/jackdaw/www/www.jacktummers.nl/collectie/themes/zp-theme/album.php op regel 33

    include called from index.php [108]
    `
    And this is line 33 in my album.php:

    `<?php while (next_image(false, $firstPageImages)): ?>`
  • acrylian Administrator, Developer
    Seems you need to update those themes :-) The $firstpages variable is not used for some time now.

    However, that is not really related to the option not saving.

    Sorry for being picky: "Gallery" means Zenphoto site, you mean "Albums"..:-) YOu should look at the database itself if the values are there for those albums. Also be sure the html_static cache if used is cleared and also the browser plays no cache tricks on you.
  • Fixed! Thanks for that database tip. Still no idea why it doesn't work through the options page, but I have to completely build a new theme anyway, so then probably everything will be ok.
  • acrylian Administrator, Developer
    Not easy to find out. We had this before, could be a database update and some other settings. Maybe try to delete the row and re-run setup to re-create it.
Sign In or Register to comment.