Strange (to me) problem with sub-domains

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.)

Comments

  • trisweb Administrator
    Can I possibly have the admin user/pass? I don't have a developer's backdoor I can use ;-) you may e-mail it to me at trisweb at this domain if you like.
  • Yup, it's on it's way. :):) Thank you.
  • trisweb Administrator
    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
  • trisweb Administrator
    I'll check the diferences in upload between subdomain and not, we'll see what the problem is :)

    Until then, as you say, keep using FTP, it'll work fine. And go ahead and delete the test album I made. Also, I've deleted your account info, no worries.
  • Thank you. :)

    I wasn't concerned anyway, I figured you were pretty trustworthy. ;)
  • 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.
  • trisweb Administrator
    SugarRic, try out the 1.0.8 that was released today, see if that does it.
  • Okey-Doke, I'll give it a try. :) Thanks. :)
  • 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.
  • Just as an FYI - I set up another on the same server without the subdomain and I'm showing the same error message, except this time the photos upload.

    Confusing.
  • I'm getting this same problem with current ZenPhoto 1.1.2. Does it mean that this problem hasn't been addressed and we can't use subdomains for zenphoto galleries?
  • 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.
  • The zp-config.php file is identical to the one in the distribution except for the password information.

    PHP version is 4.4.7

    I suggest you contact your hosting service for support on this.
Sign In or Register to comment.