No Images Showing Up

Hi Guys

First time user of ZenPhoto and have hit a problem, have looked through the forums but haven't found a definitive answer.

Basically its the "I've uploaded my photos by ftp and now don't see any images problem"

The installation
http://chris.lineages.co.uk/zenphoto

Safe mode is off, GD is installed (see http://chris.lineages.co.uk/phpinfo.php ), Mod rewrite does work, but i have tried with and without it to no avail.

Have Chmod'ed albums and cache to 777

RewriteBase = /zenphoto

It clearly see the photos (because it lists their names).

Any ideas guys?

Thanks in advance

Chris

Comments

  • check the permissions of the files inside of the cache folder. I am getting an access denied when I run an image
    http://chris.lineages.co.uk/zenphoto/zen/i.php?a=marrakesh&i=S7000166.jpg&s=thumb
  • Hi thanks for the quick reply, I've just tried accessing /cache/marrakesh by ftp and I get a 550 error Don't have permissions to access the folder . The folder has been created by ZP with permissions 770 . Trying to CHMOD it and then acces the folder doesn't work.

    Any ideas why and what I can do about it?

    Chris
  • trisweb Administrator
    This is a bad bug in ZP 1.0.7... it's fixed in the 1.0.8 release, due out early this week. To get around it you'll need to delete the cache using a server script, like a server control panel file manager, then install 1.0.8 when it comes. :-/

    Until then you may be able to fix it by changing your umask by putting `umask(0)` somewhere at the top of i.php. Still need to delete the cache though.
  • I wonder if I am running into the same problem -- My admin stuff works, but I get 404 clicking on albums and there are no thumbnails. It looks like a rewriterule or rewritebase problem, but they appear to be set correctly. Rewriting for the main page seems to work, though.

    Apache error log shows file not found errors for the album URL.

    This is a fresh 1.0.7 install on xampplite (Windows version 1.5.5) -- so it shouldn't be a directory/file permission thing. I tried setting path overrides, but that made no difference.

    I got this working last night on a different machine, but it has a slightly different version XAMPP (I think it has a slightly older and non-'lite' version), so that may be the culprit.
  • you say the admin stuff works.... does that include thumbnails?

    It really wouldn't surprise me if xampplite did not come preconfigured with gd support. I have noticed that to be the case with wamp and xampp in the past.

    Check your php info and make sure you gd2 is installed
  • > you say the admin stuff works.... does that include thumbnails?

    It works (I can add albums, upload photos, change themes, etc.), but no thumbnails for any photos.

    phpinfo:
    >GD Support enabled
    >GD Version bundled (2.0.28 compatible)
  • hi trisweb, thanks for the help - adding umask(0) to i.php has fixed my problem.
  • Figured out my problem, mod_rewrite was off by default *smacks head*

    Once that was on, I had to add this rule to get the root page stop showing the "album does not exist" error.
    RewriteRule index\.php$ index.php [L,QSA]
  • trisweb Administrator
    @AlexWilson -- that's strange... shouldn't need that. Did you set `RewriteBase` correctly?

    @arthuc01 -- Glad to hear it. So that's a very good fix for that issue in 1.0.7. 1.0.8 will have fixed the problem and won't need that change any more, so you shouldn't have to worry about it in upgrades.

    I recommend anyone with the same problem make the same change.
  • > that's strange... shouldn't need that. Did you set RewriteBase correctly?

    Yes, both installs were in /gallery and I updated the RewriteBase.

    I know the other rewrite rules (and thus, presumably, the RewriteBase) were working correctly since http://localhost/gallery/admin would redirect correctly to the admin pages.

    I found the solution here:
    http://www.zenphoto.org/support/topic.php?id=1077

    I had to add that rewrite for both my xampp setups (one at home the other one work, but that's really a portable install on a USB key drive), once in, everything worked like a charm.
  • I've tried without success to get my pictures visible.

    I've removed the cache folder as suggested above.
    I use lunarpages as a hosting company.

    GD2 is setup correctly.
    The picture even uploads it just will not display, I checked the error logs and zenphoto was looking in www.soulaskew.com/zenphoto instead of the /img directory where I'd been running it.

    I changed the webpath hoping that would fix it. That also didn't work.

    It appears that is not making the index files for the album, nor the thumbnails.

    Any suggestions on how to make this work, I have no problem reinstalling it.

    www.soulaskew.com/img/ is the location of my zenphoto install.
  • @dsedberry
    your rewritebase in your .htaccess file is still set to /zenphoto that is why it is looking for it there.

    you need to change it to /img
  • That made the albums work.
    Pictures are still not visible.

    It's looking for a directory that it didn't make.

    http://www.soulaskew.com/img/me/image/thumb/doncoat.jpg

    it doesn't even go to "album/me/"

    Any more suggestions?
  • It's getting this when trying to load the image:

    `

    Warning: mkdir(/home/soula4/public_html/img/cache/me) [function.mkdir]: No such file or directory in /home/soula4/public_html/img/zen/i.php on line 133

    Warning: Cannot modify header information - headers already sent by (output started at /home/soula4/public_html/img/zen/i.php:133) in /home/soula4/public_html/img/zen/i.php on line 228`

    You might need the umask(0) solution mentioned above.
  • umask(0) in i.php didn't work, any other suggestions?

    It's now going to a different directory, it appears to be ignoring the "album" director altogether.
  • trisweb Administrator
    dsedberry -- first, please ignore the paths you see in the URL. They are not folders. They will never be folders. They are mod_rewrite redirected script arguments that happen to point to your files, nothing more. Okay.

    2nd, it looks like you've royally screwed something in your install up, so I'd recommend re-installing.

    3rd. It looks like you don't have the /cache directory in your install. If either the directory '`/cache`' or '`/albums`' does not exist, please create them, and change their permissions to 0777, or world readable, writable and executable.
  • Thanks for the help. I re-installed, and changed the .htaccess just like I did last time... and it worked this time.

    I apprecaite everyone's effort in helping me, off to take pictures!

    ~dsedberry
  • trisweb Administrator
    I'd bet the /cache dir was missing, that'd make sense with that error message :-) I should make a warning for that problem.
Sign In or Register to comment.