Unable to upload photo's and internal server error

ctforce

Joined: 2010-07-27
Posts: 4
Posted: Tue, 2010-07-27 19:29

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.ctforce.be/gallery
Gallery version: 1.5.10
Apache version: 1.3.22
PHP version (don't just say PHP 4, please): 4.2.3
Graphics Toolkit: netpbm
Operating system: Vista SP2
Web browser/version (if applicable): Firefox 3.6.7 or IE8
Don't know what it really means but I think php is run in CGI mode.
php safe_mode is off.

Since last week my ISP must have changed something.
I got a couple problems with the original site (something with sessions), but after a small change from me and from them... everything seems to work again except the gallery (that worked fine for more than 2 years).

The first error from gallery was that I couldn't upload photo's anymore (no error message).

I've tried several things to make it work e.g.
- reading the faq, ...
- adjust the rights on several folders like the tmp folder, albums, ...

As nothing seemed to work, I tried to update the gallery version from 1.5.7 to 1.5.10 and did the install step by step as discribed.
I think the update worked fine, but the problem only got worse... after the update:
- still not able to upload photo's (I've also tried with an applet instead of the form I always used) => everything seems to work but after the popup window from the uploading process, the original page refreshes but no picture gets in the album.
- I got an internal server error 500 if I want to view an earlier album (I think the requested link is not what it should be). In the faq I've read about this error, but there it's about the setup wizard and that was no problem.
- I also remember I've hit a button after the update and the process worked fine.

- I've already uploaded the new gallery-files a second time and did the installation again, but nothing has changed.

The control page from gallery doesn't show any mistakes:
-netpbm seems to be oké
-sessions seems to work normal
-version control seems to be oké

I've mailed already several times to my ISP, but I since a couple of days, I got no reaction anymore. I really don't know what to trie next to make it work again...

I hope someone can help me.

Many thanks!!

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2010-07-27 19:46

Hello

As a first step i would try to remove the .htaccess files in your Gallery folder and Gallery setup folder.

Jens
--
Gallery 1 Developer

 
ctforce

Joined: 2010-07-27
Posts: 4
Posted: Tue, 2010-07-27 19:55

Hello

I've renamed the .htaccess files in both folders to .htaccess.OLD
Nothing has really changed:
- no photo's were uploaded
- the internal server error has changed to an other error: 404: page not found.
(the link is eg: http://www.ctforce.be/gallery/album29)
I can't remember if that is normal?

Already thanks for the help!

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2010-07-27 20:14

Well, your Gallery is at least visible now.

Gallery still "thinks" it can use short urls, but that not possible without .htacces, but your provider is not allowing you to use them.
Open your Gallery configuration (or rerun the wizard).

There is a line which is a about the rewrite feature, set it to 0.

Then your Gallery albums should be accessable again.

Next step is to see why you can not upload. Set the debug to high. Upload a photo via the "form" method and post the output here.

Jens
--
Gallery 4 Developer

 
ctforce

Joined: 2010-07-27
Posts: 4
Posted: Tue, 2010-07-27 20:34

Hello

I haven't found a setting about the rewrite feature, but on the last page, I've seen it was already set on 0:
/* Version */
$gallery->app->config_version = '97';

/* Features */
$gallery->app->feature["zip"] = 1;
$gallery->app->feature["rewrite"] = 0; // (missend GALLERY_REWRITE_OK -- dit is optioneel)
$gallery->app->feature["mirror"] = 0; // (missend mirrorSites -- dit is optioneel)

The albums are indeed again accessable!!!

I've got not really much information, just one line:
save_photos.php::358 -> Now we start processing the given Files. (If they were given)

I also saw:
User.php::213 -> User admin can write to album 'test'
URL: http://www.ctforce.be/gallery/view_album.php?set_albumName=test
Created on 26-07-10, last changed on 26-07-10.
User.php::213 -> User admin can write to album 'test'
Dit album is leeg. (= This album is empty in dutch)
This album has never been viewed since 26-07-10.
User.php::213 -> User admin can write to album 'test'
[reset teller]

I hope this is enough

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2010-07-27 20:39

Unfortunately not.

Can you make me a tempory testaccount that has admin permission? I will take a look.

Jens
--
Gallery 7 Developer

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2010-07-27 21:15

Thanks, you can delete the account.

Very strange, i was also not able to upload photos. I even got no debug output.
For some reason Gallery is not recieving anything :-(

I am out of ideas :-(

Very sorry,

Jens
--
Gallery 1.4 Developer

 
ctforce

Joined: 2010-07-27
Posts: 4
Posted: Tue, 2010-07-27 21:20

Okay

Thanks for your time.
Really appreciate your help.

I will try again with my ISP... and let you know if everything gets allright...