broken images in news articles

Has anyone seen this problem? I have some articles where I used tinyzenpage to insert custom thumbnails. Some of them recently broke. Its odd as it doesn't seem to have any rhyme or reason to it. Some are in the same article. The first one I found was in one of the oldest articles so I thought perhaps it was a cache expiry problem. But when I started going thorough articles I found some that were fine and others that were not. They were okay earlier today and I hadn't made any changes to the articles. The image in tinymce shows up as broken. If I re-insert it everything is fine again.
Scratching my head and hoping someone else has seen this.
Thanks
Using Zenphoto version 1.4.2.1 [9180]
http://sowearedads.com/news/being-a-dad-is-awesome
that is one of the pages with one working and 3 not working.

Comments

  • For some reason the created thumbs that were in cache/album-name were missing on my remote server. Uploading them from my local server and doing a refresh on the db seems to do the trick. Not really sure why it happened though.
  • acrylian Administrator, Developer
    The links embeded via tinyzenpage are static ones. There are two different links to images in Zenphoto depending if the image has been cached already or not.

    If the image had not been cached, you get a link to the image processor /zp-core/i.php, If it has already been cached it links to the cached image within /cache.

    I did a quick look at tinyZenpage actually always uses image processor links. So did you maybe clear the cache or renamed or moved images or album. Or even moved the site? Since the links embeded neede to be static they can't update themselves.
  • Hi acrylian, thanks for looking into this. As for your questions, no. I didn't move any rename any photos or move them or the site. Like I said, it was strange to me since there were articles that some photos were fine and others were not. I tried to refresh the db without changing anything the links remained broken. Only when I copied the cache files did the db refresh work. I didn't make any changes to the album (I'm only using one album) files.

    What I do is write the article. Upload the files I want to use. Insert the thumbs using tinyZenpage and publish. So all the images in each article have nearly the same creation times when I uploaded them to the server.

    When looking at the image links in the published page they do indeed show that they point at i.php. I really don't know. I'm tempted to just let the images be cached then copy that one to a new thumbnail directory and use that for the image thumbnail source.

    The only other thing I can think of is that the album and images are all unpublished. It didn't seem to be an issue since I don't even have a gallery page and just use an image page to show the individual photos when the thumbnail link is displayed. Maybe this is part of the problem.
  • acrylian Administrator, Developer
    I have no idea then. We use it the same way on our site and I didn't yet encounter anything in that regard. If the place on the filesystem didn't change, I see no reason for this to happen.

    For this functionality it actually does not matter if your theme has a standard structure with gallery page or not.

    You said you use a local and a remote server? Do you copy between those two so something could get lost? There should be no need to copy any cached images manually.

    Did you encounter any php errors or similar?
  • no errors (aside from ones while working on other things) and nothing in the last week or so at all except some "XSRF access blocked" ones that I get on occasion while working. I'm guessing zenphoto is just VERY tight on any connection changes and errs on the side of caution. I only ever get those when leaving a partially edited article up for some time then trying to save it.

    I agree with you about the cached images. I have absolutely no idea why copying them across worked. It seems to me that it should no have had any effect.

    Yes I have a local and remote server but they are both (effectively) installed at the domain root so the links would work in both. It is possible I added the image thumbs locally then synced the remote with the local for some of the articles. I was stuck somewhere that did not decent wireless (forever getting the xsrf errors when trying to work) so I would write the article locally then match everything up when I got home.

    Thanks for taking a look acrylian. It is working fine now and the fix wasn't painful as having to go back through individual articles. IDK, if it happens again I'll look for a culprit.
  • I think you were onto something with the local VS remote and editing articles. There is a difference with doing the editing locally for the generated thumb. It doesn't look like there is, but there is. I see all the same information but if I reinsert the thumb in the article using tinyZenpage and save the edit I can now see the image on my iPhone with mobile safari.

    So, no more image inserting with my local server. The weird thing is that I don't see any change being made to the generated thumb in the cache/album directory.

    /me wanders off scratching head to reinsert all the problem thumbnails having learned my lesson...
Sign In or Register to comment.