Member
Member
arthuc01   2007-02-26, 22:27
#1

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

Member
Member
Chilifrei64   2007-02-26, 22:48
#2

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

Member
Member
arthuc01   2007-02-27, 00:20
#3

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

Developer
Developer
trisweb   2007-02-27, 05:03
#4

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.

Member
Member
AlexWilson   2007-02-27, 17:06
#5

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.

Member
Member
Chilifrei64   2007-02-27, 18:49
#6

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

Member
Member
AlexWilson   2007-02-27, 19:34
#7

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)

Member
Member
arthuc01   2007-02-27, 19:53
#8

hi trisweb, thanks for the help - adding umask(0) to i.php has fixed my problem.

Member
Member
AlexWilson   2007-02-27, 21:35
#9

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]

Developer
Developer
trisweb   2007-02-27, 21:39
#10

@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 [b]will have fixed the problem and won't need that change any more[/b], so you shouldn't have to worry about it in upgrades.

I recommend anyone with the same problem make the same change.

Member
Member
AlexWilson   2007-02-27, 22:22
#11

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.

Member
Member
dsedberry   2007-02-27, 22:40
#12

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.

Member
Member
Chilifrei64   2007-02-27, 22:50
#13

@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

Member
Member
dsedberry   2007-02-27, 23:09
#14

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?

Member
Member
AlexWilson   2007-02-27, 23:13
#15

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.

Member
Member
dsedberry   2007-02-27, 23:20
#16

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.

Developer
Developer
trisweb   2007-02-28, 10:40
#17

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.

Member
Member
dsedberry   2007-02-28, 21:33
#18

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

Developer
Developer
trisweb   2007-02-28, 23:18
#19

I'd bet the /cache dir was missing, that'd make sense with that error message :-) I should make a warning for that problem.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.