[SOLVED] Yahoo gallery2 - can't upload, but no error.

cygnusx197

Joined: 2006-02-01
Posts: 16
Posted: Fri, 2006-11-03 05:08

Judging by the experiences with yahoo hosting, I'm sorry I recommended it to a person I designed a site for. Regardless... here's my problem which doesn't seem to have been brought up before.

I did a fresh install with their control panel.
I didn't touch a thing. I just logged in and tried to upload a photo "From Web Browser".
What happens is that the form refreshes, but the image isn't uploaded, there are no error messages or the "success" message, and the form inputs and buttons are gone. The rest of the html instructions are all that's on the page.

Uploading "from local server" yields the same result, but... "From Web Page" upload does work - the photo is added. Hmmmm. Permissions are 755 on my g2data folder.

Here's my system information:
Gallery version = 2.0.1 core 1.0.0.1
PHP version = 4.3.11 cgi-fcgi
Webserver = Apache/1.3.33 (Unix) FrontPage/5.0.2.2510 mod_fastcgi/2.4.2
Database = mysql 4.1.14
Toolkits = Exif, NetPBM, Gd
Operating system = FreeBSD hostingprod.com 4.11-YAHOO-20051118 FreeBSD 4.11-YAHOO-20051118 #0: i386
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

Should I attach my debug output? I don't see anything that screams "error!"

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-11-03 10:51

FAQ: Why can't I upload big files (over a megabyte or two)?

you can check your phpinfo file to see the limits.

 
cygnusx197

Joined: 2006-02-01
Posts: 16
Posted: Fri, 2006-11-03 14:19

The test image I tried to upload was only 5k.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-11-03 14:26

please post a phpinfo link and try again with another very small image.

 
cygnusx197

Joined: 2006-02-01
Posts: 16
Posted: Fri, 2006-11-03 18:00

*removed link to phpinfo*
Attached is the image I tried to upload.

AttachmentSize
smile.JPG3.91 KB
 
cygnusx197

Joined: 2006-02-01
Posts: 16
Posted: Fri, 2006-11-03 15:48

And here's the result of what I see....

AttachmentSize
result.JPG66.33 KB
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-11-03 17:00

yep, php config looks fine.
and the screenshot shows a weird state.

can you please try g2.1.2 instead of g2.0.2?

 
cygnusx197

Joined: 2006-02-01
Posts: 16
Posted: Fri, 2006-11-03 19:11

I'm going to jot down what I'm doing as I go along... maybe somebody else might find it useful.
I'm going to remove the yahoo installation and start fresh.

I deleted the directory yahoo made, and installed phpMyAdmin with the control panel and dropped the database.
If anybody else does this, don't forget that you loose everything. There's no upgrade build to go from yahoo's old version up to 2.1.2.

I grabbed the latest mimimal build of 2.1.2, unzipped locally, and uploaded by ftp.
(Damn this is slow. I wish you could untar with the control panel.)

Hmm... ftp won't allow .htaccess files because they start with a period. No problem - Valiant explains it here:
http://gallery.menalto.com/node/30903

I'm following along with the installer guide - "Installing Gallery2", from step 2 here:
http://codex.gallery2.org/index.php/Gallery2:How_do_I_Install_Gallery2

Step 2, open the install directory.
Hmm.... I get this in the header:

Quote:
Warning: session_start(): open(/tmp/sess_b182df8021050ef83c73094bd86636c6, O_RDWR) failed: No such file or directory (2) in /gallery2/install/index.php on line 110

Warning: session_destroy(): Session object destruction failed in /gallery2/install/index.php on line 396

Warning: session_start(): open(/tmp/sess_67f2c83e577be7a19fdd01886724af10, O_RDWR) failed: No such file or directory (2) in /gallery2/install/index.php on line 404

Well that can't be good because I can't create the directory manually in the root of the virtual host directory because yahoo won't accept an underscore.
Hmm... phpinfo says session support is enabled.
Let's push the "Continue" button anyway.

Step 3, create the login.txt. Ok.

Quote:
Error: your login.txt key does not match correctly. Please download a new authentication string from below and try again.

Huh? Ok. Try it again. Maybe I didn't save the .txt file or something dumb.

Quote:
Error: your login.txt key does not match correctly. Please download a new authentication string from below and try again.

Oh.

Quote:
As a convenience to you, we've prepared a correct version of login.txt for you. Download that and copy it into your /gallery2 directory and you're all set.

Hey, now that's just darn polite of you to offer. Let's try that.

Quote:
Error: your login.txt key does not match correctly. Please download a new authentication string from below and try again.

Frig. Let's try google.
http://gallery.menalto.com/node/55308
Ok. I'm not getting safe mode errors, I'll clear my cookies and try again.

Quote:
Error: your login.txt key does not match correctly. Please download a new authentication string from below and try again.

Frig again. A guy in here says to try starting the installer over again:
http://gallery.menalto.com/node/36734
Let's try that.

Quote:
Error: your login.txt key does not match correctly. Please download a new authentication string from below and try again.

Sigh. I'm off to google-land, but I'm not hopeful.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-11-03 21:02
Quote:
Quote:

Warning: session_start(): open(/tmp/sess_b182df8021050ef83c73094bd86636c6, O_RDWR) failed: No such file or directory (2) in /gallery2/install/index.php on line 110

Warning: session_destroy(): Session object destruction failed in /gallery2/install/index.php on line 396

Warning: session_start(): open(/tmp/sess_67f2c83e577be7a19fdd01886724af10, O_RDWR) failed: No such file or directory (2) in /gallery2/install/index.php on line 404

Well that can't be good because I can't create the directory manually in the root of the virtual host directory because yahoo won't accept an underscore.
Hmm... phpinfo says session support is enabled.
Let's push the "Continue" button anyway.

there's your problem.

it looks like yahoo's session support isn't configured correctly.
in install/index.php (or upgrade/index.php, depending on what you're doing), add
error_reporting(E_ALL);
ini_set('session.save_path', dirname(__FILE__) . '/../phpsessions');

right after <?php

and then create a folder phpsessions in your gallery2 folder and chmod it 777.

hope that helps.

don't forget to delete that folder again, never expose sessionIds in the web, it's a security risk.

 
cygnusx197

Joined: 2006-02-01
Posts: 16
Posted: Sat, 2006-11-04 04:18

Good eye, Valiant. That helps.
It was trying to write to the server root, huh.

I made it past the next few steps.
At the database setup, I use mysql as the db host name - not "localhost" as is the default.

Gallery is installed, images upload, my previous problem doesn't happen. All is well. Thank you!!!