zenphoto forums » General Zenphoto Discussion

Duplicate theme not displaying album thumbs...1.4.3

(6 posts)
  • Started 10 months ago by n20capri
  • Latest reply from n20capri
  1. n20capri

    Contributor
    Joined: Nov '09
    Posts: 121

    I'm a ZP veteran so I know what I'm doing. Just did an upgrade to 1.4.3 to my personal site last week and it went fine...

    This is a new site - Fresh install 1.4.3 and it went smoothly...

    If I duplicate through the backend or via FTP the thumbs don't display on the album page. The gallery index page displays thumbs fine but the album page doesn't...

    http://dev.chillfactoricecream.com/index.php?album=new_gallery/

    I also noticed theme options for thumb size is 1px - and is NOT editable...it's grayed out. The original theme shows the thumbnail as 95px - which is what they are displayed at when the original theme is active...still grayed out but the proper size...SS below of the admin area theme options...

    http://content.screencast.com/users/n20capri/folders/Default/media/27ba3a3a-a91b-43dc-afff-8805c59222d6/theme.jpg

    themeoptions.php are the exact same for both - as mentioned a direct copy...any idea what's going on?

    Thanks,
    Mike

    Posted 10 months ago #
  2. n20capri

    Contributor
    Joined: Nov '09
    Posts: 121

    Also forgot to post the debug error I'm seeing - I think it's related...

    Backtrace: WARNING: Division by zero in ..../zp-core/template-functions.php on line 2545
    printImageThumb called
    from include (album.php [103])
    from index.php [92]

    Posted 10 months ago #
  3. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,822

    This is a known problem with setting default options for the theme. (If the theme did not specifically set the default for an option then it would be "empty".)

    There is a fix in the nightly builds, but that does not retroactively fix the problem. The full fix is to upgrade to the nightly then delete all the options for your custom theme from the database.

    Don't forget to read the Forum rules and usage resources
    Posted 10 months ago #
  4. n20capri

    Contributor
    Joined: Nov '09
    Posts: 121

    Which nightly do I download? And how do I delete all the options from the theme from the database?

    Posted 10 months ago #
  5. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,822

    Download the most current "trunk" file.

    To delete all the theme options you will need to use a tool like phpMyAdmin to access your database. Find the options table (it will be prefixed by your database prefix) and do a search with the "theme" column equal to the name of your theme. That will list you all your theme's optons. Delete each of them.

    Don't forget to read the Forum rules and usage resources
    Posted 10 months ago #
  6. n20capri

    Contributor
    Joined: Nov '09
    Posts: 121

    Worked great thanks!

    Posted 10 months ago #

RSS feed for this topic

Reply

You must log in to post.