"can't find gallery url"

piovere

Joined: 2004-05-18
Posts: 7
Posted: Wed, 2004-05-19 04:10

I'm trying to get gallery to work, and it seems to install just fine, but I can't upload pictures. I've tried gallery remote, the form upload, the iPhoto plugin, and none of them succeed. The closest thing i get to an error message is

"Error: Server contacted, but Gallery not found at this URL ( http://www.techie.net/~piovere/gallery/gallery_remote2.php )"

any ideas? Gallery does see my .htaccess file, and everything appears to be set right.

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
http://www.techie.net/~piovere/gallery
Gallery version: 1.4.3-pl1
Apache version:
PHP version (don't just say PHP 4, please): 4.1.2
Graphics Toolkit: netpbm
Operating system: redhat 7.2
Web browser/version (if applicable): -

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-05-19 09:28

piovere, enable debug mode ( FAQ Gallery:c.31 ) and try uploading with the form based uploader. Then post the results here.

 
piovere

Joined: 2004-05-18
Posts: 7
Posted: Wed, 2004-05-19 12:55

Enabled debug mode, the form upload page displays the text

"Processing status...
No email sent as no valid email addresses were found No images uploaded!"

the source for the page contains no more information. I can upload images from the web via the URL method. that seems to work perfectly

If a test account would be of some help, username "test" password "test" is on there.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-05-19 13:20

Seems like the file never reaches the server at all, any chance of us having a look at your gallery in config mode?

 
piovere

Joined: 2004-05-18
Posts: 7
Posted: Wed, 2004-05-19 13:29
h0bbel wrote:
Seems like the file never reaches the server at all, any chance of us having a look at your gallery in config mode?

in config mode now

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-05-19 13:38

no? http://www.techie.net/~piovere/gallery/setup gives me a 403 (access denied)

 
piovere

Joined: 2004-05-18
Posts: 7
Posted: Wed, 2004-05-19 14:04

sorry, I had run configure.sh, but it hadn't worked. just did "chmod 777 -R setup", so it should be good now. also, for some reason it's not automatically loading index.php, but the file is there if you type it in.

sorry about that

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-05-19 17:01

Seems like your php install doesn't have the upload_tmp_dir set, you could try putting this into the .htaccess file in the gallery/ directory:

php_value upload_tmp_dir=/tmp

It might help.

 
piovere

Joined: 2004-05-18
Posts: 7
Posted: Wed, 2004-05-19 18:41

adding "php_value upload_tmp_dir=/tmp" to the end gave me an internal server error...

i changed it to "php_value upload_tmp_dir /tmp" and the same problem appears to remain. any other thoughts?

 
piovere

Joined: 2004-05-18
Posts: 7
Posted: Wed, 2004-05-19 18:50

in case it helps, here is my .htaccess file as it stands now

# BEGIN Gallery section
# (Automatically generated.  Do not edit this section)
# Note: still under development, so format may change.
# If you edit this file, make a backup before runnng the Config. Wizard.


php_value post_max_size 20971520
php_value upload_max_filesize 20971520
php_value magic_quotes_gpc off
php_value upload_tmp_dir /tmp        <----- the line i just added

<IfModule sapi_apache2.c>
php_value session.bug_compat_warn off
</IfModule>

<IfModule mod_php4.c>
php_flag session.bug_compat_warn off
</IfModule>

Options -Indexes +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~piovere/gallery/

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)/([0-9]+)$	/~piovere/gallery/view_photo.php?set_albumName=$1&index=$2	[QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)/([A-Za-z_0-9\-]+)$	/~piovere/gallery/view_photo.php?set_albumName=$1&id=$2	[QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)/$	/~piovere/gallery/$1	[R]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)$	/~piovere/gallery/view_album.php?set_albumName=$1	[QSA]
</IfModule>
# END Gallery section.  Add User changes below this line

the stuff in red is the line i just added (obviously)

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-05-19 19:35

You'll need to contact your host then, if you cant set that value in the .htaccess file.

 
piovere

Joined: 2004-05-18
Posts: 7
Posted: Wed, 2004-05-19 20:07

anything specifically i should tell him?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-05-19 20:11

piovere, that the missing upload value is probably causing Gallery to not work on their system.