Images/thumbnails not loading / only on refresh

Several of my galleries are having issues with images loading (the same issue in each). The images will only load if you refresh the page.

http://photography.ice-dance.com/2010-11/

One thing I am noticing when the images are not loading when looking at the source code I see "&" in the image links; however when refreshing the "&" goes away and the image is using the correct link. Are you aware of any issues where "&" is added to the image links causing them not to load unless you refresh?

Thanks!
Daphne

Comments

  • MarkRH Member
    Well, I tried to view one of the missing images directly and got this:
    `
    Warning: Illegal string offset 'current_theme' in /home/idcphotography/photography.ice-dance.com/2010-11/zp-core/functions-basic.php on line 1341

    Warning: Cannot modify header information - headers already sent by (output started at /home/idcphotography/photography.ice-dance.com/2010-11/zp-core/functions-basic.php:1341) in /home/idcphotography/photography.ice-dance.com/2010-11/zp-core/i.php on line 236

    Warning: Cannot modify header information - headers already sent by (output started at /home/idcphotography/photography.ice-dance.com/2010-11/zp-core/functions-basic.php:1341) in /home/idcphotography/photography.ice-dance.com/2010-11/zp-core/i.php on line 237

    Warning: Cannot modify header information - headers already sent by (output started at /home/idcphotography/photography.ice-dance.com/2010-11/zp-core/functions-basic.php:1341) in /home/idcphotography/photography.ice-dance.com/2010-11/zp-core/i.php on line 238
    `
    And when I right-clicked, this was the URL:
    `//photography.ice-dance.com/2010-11/zp-core/i.php?a=2011DallasIceGalleria&i=11DIG-201110-VM-WL.jpg&s=100&cw=&ch=&q=100&t=1&wmk=!`

    When I reloaded the page, I got the images. What this tells me is that none of the images were in the cache prior to visiting the page so it's needing to create them; although, it still should have displayed a temporary image.

    Could be something with the theme that you are using.

    In my local test gallery, a new image has a URL like:
    `//(removed)/zp-core/i.php?a=test-album&i=0022_31437_dt.jpg&s=150&cw=150&ch=150&q=75&c=1&t=1&wmk=%21&check=778ca4af5f7305c69f49b477cfa48c65732822de`

    Does the issue happen if you test with a different theme? Oh wait, this is a WordPress site. What you may want to do is using the gallery directly, use something like the Cache Manager plugin (not a WordPress plug-in but one of the Zenphoto plugins) to generate all the images for your gallery so they are all in the cache. Perhaps someone with more experience integrating with WordPress can help.

    Or just view every page to force the generation of the images.
  • acrylian Administrator, Developer
    URLs like `//(removed)/zp-core/i.php?a=test-album&i=0022_31437_dt.jpg&s=150&cw=150&ch=150&q=75&c=1&t=1&wmk=%21&check=778ca4af5f7305c69f49b477cfa48c65732822d` are urls to yet uncached images (image processor links)

    Zenphoto does create the resized cached version on the fly when needed when someone visites the page. This does not happen afterwards unless you clear the image cache or change sizes on your theme.

    You can use the cacheManager to precache images if your theme uses the standard sizes. If your theme sets custom sizes for layout reasons you need to setup the theme for the cacheManager. Several official themes like Zenpage have examples on their `themeoptions.php` file.

    Here some general info about how caching in Zenphoto generally works:
    http://www.zenphoto.org/news/caching/

    As MarkRH pointed out the usage with a WP theme may also cause trouble as both are standalone CMS of course. We don't test Zenphoto in such combinations.
  • Thanks for your advice. I had someone who was maintaining the galleries for me, but they are no longer able to, so I'm trying to do it myself. There are 7 installs. Four seem to be ok. The other three are problematic.

    The issues happen whether it's a stock theme or this one. The versions of ZenPhoto on three of my installs are not updated. When I try to update them, it crashes the install completely and I have to restore it at my host. I looked for the cache manager plugin, but it was not listed in my install and I could not find a place to download it.

    Two of the installs are within the same database, but different tables. Have you ever seen this cause a problem? Should I separate them?

    I appreciate your help. I'm really trying to get up to speed on this. I've looked for someone to fix the issues, but there doesn't seem to be anyone anywhere that specializes in this.

    Daphne
    <email removed by admin>
  • acrylian Administrator, Developer
    If your install doesn't have the cacheManager the Zenphoto version is probably very old. It is part of the normal release package. Therefore you cannot download it individually. Sorry, don't remember when it was added exactly but it is there for quite some time.

    If something crashes your server you really need to look into your server's PHP error log. It can be anything from too large images for the server to process over other compatibilities to permission issues. Otherwise we are just guessing around.

    It is no problem having several Zenphoto installs sharing the same database as long as each's tables use an unique prefix.

    You can find some persons (from the wider official team) incl. me (we did talk on another service already) to help on our paid support page:
    http://www.zenphoto.org/pages/paid-support

    I have removed your mail adress from your post as you surely don't want to be flooded by spam.
  • Acrylian - Thank you. I just contacted you via your website.
Sign In or Register to comment.