I have an odd (I think) problem with an installation using a sub-domain. The gallery shows up fine, but when I log in as admin using the sub-domain, I cannot upload pictures and I can't edit the albums. I get the php warning error 'unable to create temporary file in unknown on line 0'
If I use the actual path info to log in as admin, I can upload and edit, but all the pics show as red x's (in the admin section, the gallery show's fine)(also uploading via ftp works fine).
Gallery is at http://photos.lordhigh.com/
To make it even more confusing, I have another gallery loaded on the same server that does not use sub-domain remapping, and it works without a hitch. ( http://www.lordhigh.com/gallery/ )
Thanks for any help - I'm off to work now so it will be a few hours before I see any responses.
(I should add that this is with version 1.0.7, jsut downloaded yesterday.)
Ahh, okay, I think see what's happening.
It is indeed strange that you can't upload when using a subdomain, I'll have to look at that, and it's probably a bug if uploading works without a subdomain...
Check your permissions on the /albums directory first of all... I'll see what I can find bug-wise.
I checked the permissions for the albums directory, they were set at 755 (which, btw, works fine on the other installation) so I changed them to 777 and tried again with the same results (no upload).
It's not really a huge problem because as I mentioned, ftp works fine and I can edit descriptions and titles 'on the fly' - which works, confusing me even more. And even the subdomain is just a desire, not a necessity for me.
I appreciate your efforts very much.
Thanks,
SugarRic
I've got a test version of Zenphoto set up on a subdomain so i just tried to upload some images via the admin interface and it seemed to work fine for me. I am using a version from svn though rather than 1.0.7.
Nope - no go. This is what my error log shows:
PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning: Unknown(): open(/var/php_sessions/sess_568c15e80cb7ae0d03923e986a8306c1, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Warning: session_start() [function.session-start]: open(/var/php_sessions/sess_568c15e80cb7ae0d03923e986a8306c1, O_RDWR) failed: No such file or directory (2) in /hermes/web04/b161/pow.lordhigh/htdocs/photos/zen/admin.php on line 2
PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning: Unknown(): open(/var/php_sessions/sess_568c15e80cb7ae0d03923e986a8306c1, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Warning: session_start() [function.session-start]: open(/var/php_sessions/sess_568c15e80cb7ae0d03923e986a8306c1, O_RDWR) failed: No such file or directory (2) in /hermes/web04/b161/pow.lordhigh/htdocs/photos/zen/admin.php on line 2
PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
Does this make it any clearer? :p
I think it must be a problem with the server's settings.
Subdomains work fine with zenphoto see: http://albums.sbillard.org/ The error SugarRic has posted is a problem with zenphoto starting a session. That has to be some kind of server configuration problem.
Ouch, I posted into a wrong thread. I guess I got carried away by the fact that I got the session start error as well, though that one was easy to resolve by editing php.ini provided by my webhost.
I still have a problem with photo uploads not actually uploading selected files through the admin interface in zenphoto. RewriteBase is set to /.
sbillard,
Would you be so kind to share your php.ini and zenphoto config (without the confidential information, of course)? If this is my webhosting server config problem then I somehow need to find out what's wrong as admin interface file upload doesn't work for anyone of the 4 zenphoto galleries I set up for family and friends.