Error 500 when clicking on Plugins link in Site Admin

matus

Joined: 2005-10-12
Posts: 8
Posted: Mon, 2008-11-17 20:24

I recently upgraded my gallery installation from 2.2.x to 2.3. The upgrade process went smoothly, although the installer informed me of 2600+ files which existed on the disk but weren't used in the new version of the gallery (mostly *.mo files).

At this point the gallery appeared to be working fine, I was able to list and configure the plugins I had in the system, so I decided to delete all these extra files. A couple of days later I tried to open the list of installed plugins, but all I got was "Error 500 - Internal server error".

Now, I'm not sure these two events are connected. So far I tried a couple things, but wasn't able to fix the error.

1. Clear your Gallery caches! - Done.

2. Ensure the Gallery application files are intact! - Done. The installer lists the following files: modules/rewrite/data/mod_rewrite/custom/.htaccess and modules/rewrite/data/mod_rewrite_no_options/custom/.htaccess as modified, and this is correct, I had to adjust RewriteBase to make sure URL Rewrite works.

3. Clear your web-browser caches (cookies, page cache)! - Skipped.

4. Enable 'buffered' debug mode to ensure that no important warnings or details are hidden -- Done. However, it doesn't generate debug output on the "Internal server error" page. There is a lot of data in the Debug console, but no debug output on the page.

What else can I try to fix it?

System information:
Gallery URL = http://www.catsonmars.net/g2/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 4.4.9 cgi
Webserver = Apache
Database = mysql 4.0.27-standard-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Thumbnail, Gd, SquareThumb
Acceleration = none, none
Operating system = Linux infong 2.4 #1 SMP Tue Dec 18 22:34:10 UTC 2007 i686 GNU/Linux
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.18) Gecko/20081029 Firefox/2.0.0.18 (.NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 40
Rows in GalleryAccessSubscriberMap table = 152
Rows in GalleryUser table = 3
Rows in GalleryItem table = 147
Rows in GalleryAlbumItem table = 10
Rows in GalleryCacheMap table = 0

Login or register to post comments
pinel

Joined: 2008-11-17
Posts: 3
Posted: Tue, 2008-11-18 00:13

make sure that the permissions on the folder are 755 or Read and Execute for Windows but I think there are problems with Gallery 2.3 http://gallery.menalto.com/node/83579

Be an individual... just like everyone else

Login or register to post comments
jessec

Joined: 2005-09-10
Posts: 14
Posted: Tue, 2008-11-18 02:18

i'm having the exact same issue
this is pretty frustrating, that and the fact my web host won't allow access to error logs so i can't actually see what's happening.

regardless, this issue should never occur from regular plugin management.

i upgraded from 2.2.x to 2.3 and it was working, managed a few plugins to try and get a proper upload function working (still not happy with the options), and getting the error now.

info:
Gallery URL = http://www.mandy-rose.com/gallery/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 4.4.9 cgi
Webserver = Apache
Database = mysqlt 5.0.51a-log, lock.system=flock
Toolkits = Gd, NetPBM, ImageMagick, jpegtran
Acceleration = none, none
Operating system = Linux infong 2.4 #1 SMP Tue Dec 18 22:34:10 UTC 2007 i686 GNU/Linux
Default theme = mandyrose
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
Rows in GalleryAccessMap table = 21
Rows in GalleryAccessSubscriberMap table = 8761
Rows in GalleryUser table = 56
Rows in GalleryItem table = 8757
Rows in GalleryAlbumItem table = 133
Rows in GalleryCacheMap table = 0

during upgrade, i ran script to remove all unused files..

i'm pretty sure this is an error writing information to the database, as i re-copied all 2.3 files overtop, and same issue...

ooh wait, apparently i got 1&1's error log script to run and input into a file:
"17 Nov 2008 20:22:14","/homepages/29/d252935981/htdocs/mandy-rose-com/gallery/modules/core/classes/Gallery.class:
275","(Notice) Undefined index: repository.url"

what would cause that error?

and can i just add that index manually in the database?

Login or register to post comments
matus

Joined: 2005-10-12
Posts: 8
Posted: Tue, 2008-11-18 03:05
jessec wrote:
i'm having the exact same issue...

I can confirm that. The symptoms are exactly the same. I use 1&1 to host the gallery, too, but I can't find the error log to quote; wonder if I would stumble upon the same record in there.

Login or register to post comments
jessec

Joined: 2005-09-10
Posts: 14
Posted: Tue, 2008-11-18 04:00

you should find out :)

http://faq.1and1.com/scripting_languages_supported/php/8.html

i made a php file and included it at the top of main.php for the purpose of finding the error

Login or register to post comments
matus

Joined: 2005-10-12
Posts: 8
Posted: Tue, 2008-11-18 04:37

Thank you, I'm getting exactly the same message:

Quote:
"17 Nov 2008 23:36:07","/homepages/11/d95042659/htdocs/www/cats_on_mars/wwwroot/g2/modules/core/classes/Gallery.class:
275","(Notice) Undefined index: repository.url"

Login or register to post comments
zerhart

Joined: 2003-05-05
Posts: 4
Posted: Tue, 2008-11-18 20:01

I'm having the same problem as others above, however the "Undefined index: repository.url" message appears frequently in my PHP log on gallery page accesses, not just when I click plugins from the site admin menu. I don't think the error (notice) is related to the plugin problem. Additionally, this is the PHP error message which is probably not related to the Apache error causing the HTTP 500 message.

I was able to successfully configure plugins until I downloaded a new list of plugins (via the admin UI). Now I only get HTTP 500 error whenever I attempt to configure plugins.

My site is also hosted on a shared 1&1 box and I don't believe they provide access to Apache error logs.

Login or register to post comments
jessec

Joined: 2005-09-10
Posts: 14
Posted: Tue, 2008-11-18 22:41

mine is only occurring (compared by date/timestamps) when accessing the plugin page, never on any other...

it isn't reporting any other errors either

Login or register to post comments
matus

Joined: 2005-10-12
Posts: 8
Posted: Fri, 2008-11-21 19:18

Anything else we can try? The error is still there.

Login or register to post comments
jessec

Joined: 2005-09-10
Posts: 14
Posted: Fri, 2008-11-21 19:36

found out the repository.url error is now showing up under various page hits.. arg.

Login or register to post comments
matus

Joined: 2005-10-12
Posts: 8
Posted: Fri, 2008-11-21 19:43

That doesn't sound encouraging. I wonder what it would take to downgrade to 2.2.x

Login or register to post comments
jessec

Joined: 2005-09-10
Posts: 14
Posted: Fri, 2008-11-21 20:31

well the gallery still works on my end.. uploads too...

i upgraded to get vista support with publishing wizard, although there's absolutely no options with ANY upload facility to resize to 1024x768 on upload, so i'm very unhappy... i left this product years ago, but unfortunately it's what my gf's site runs so i have to keep maintaining it for her :/

she keeps using an older system with xp for uploads instead of one of the 2 brand new laptops :/ and that laptop is going to be dead any day now because of a screwed up power supply... so i need to find something that'll work

Login or register to post comments
mnelson

Joined: 2008-11-24
Posts: 1
Posted: Mon, 2008-11-24 02:50

Is there any way to correct this problem? I am also a 1and1 customer and getting the same error after I tried to activate plugins.

Login or register to post comments
stukintx

Joined: 2005-04-15
Posts: 15
Posted: Wed, 2008-11-26 19:41

I started getting this same error. I went to the Plugins page and everything worked. I clicked on the download plugins list and after it completed the download I was redirected to Error 500 - Internal server error. Any time I go to the plugins link I get this error. Also on 1and1 hosting. Anyone know of a fix?

UPDATE...I don't know if this will work for the others having this problem but I went to gallery2/g2data/cache/repository/released and saw a file there by the name of index.repository

I renamed the file to index.repository.bak and went to the plugin link and was able to view all the plugins again without getting the 500 error.

Login or register to post comments
matus

Joined: 2005-10-12
Posts: 8
Posted: Wed, 2008-11-26 19:37

At this time I would even settle for a suggestion on how to diagnose the problem.

Login or register to post comments
matus

Joined: 2005-10-12
Posts: 8
Posted: Wed, 2008-11-26 20:05
stukintx wrote:
UPDATE...I don't know if this will work for the others having this problem but I went to gallery2/g2data/cache/repository/released and saw a file there by the name of index.repository

I renamed the file to index.repository.bak and went to the plugin link and was able to view all the plugins again without getting the 500 error.

Awesome, thank you, looks like it did the trick for me.

I noticed this file gets recreated every time I attempt to download plugin list on "Get More Plugins" tab under Plugins link. Also, when deletion of this file doesn't work for you, you might want to check gallery2/g2data/cache/repository/community/ and gallery2/g2data/cache/repository/experimental/ and delete index.repository files from these folders.

Login or register to post comments
maredzki

Joined: 2003-11-06
Posts: 29
Posted: Mon, 2008-12-08 04:45

Also 1&1 customer... I am getting the same Error 500, however, I was able to rectify the Plugins Error 500 by removing the file listed above. However, I am trying to rearrange the items in my gallery and am getting the following error:

"07 Dec 2008 23:29:21",<dir removed>/modules/core/classes/Gallery.class:275",
"(Notice) Undefined index: repository.url"

Not sure what to do with this information... any information would be appreciated!

Cheers,
Marek

Update: Just tried a album with a smaller number of images than the one I have in the album i am getting the error in and it worked... any ideas???

Login or register to post comments
akerman

Joined: 2008-09-21
Posts: 1
Posted: Wed, 2008-12-10 11:46

- Running on localhost.
- Did an upgrade 2.2 to 2.3
- Plugin link in admin page just caused the page to briefly load, just to disappear. Hardly visible for a fraction of a second) and then showing a blank page.
No matter what I tried it remained blank. Same behaviour. Over and over.

My cure:

Ran all maintenance tools except dB backup (no images yet)
Clicked on Plugin link same - then clicked browser reload.
Now it's OK. Still checking but all looks normal.

Some cache / temp file lingering in the system?
-------------------------------------------------------------------------------------------
Update:
while moving/backup the Gallery installation, my OS (Linux) complained that there where already files for "MANIFEST', 'README' and the '/lib/JSON'.

After some inspection it seems like the upgrade actually leaves the old 'manifest', 'readme' and the '/lib/json' and IS NOT replacing them. Instead the new files are written with CAPITAL characters, leaving the old file untouched.

I just removed all the old files ('manifest', readme, /lib/json') and everything seems to work fine.

It is going to be interesting to see how the FTP appl. handles this, since I've seen other /DIRNAME/ become /dirname/ and applications (PHP) code, calling for the /DIRNAMES/ fail to retrieve. After a rename it will become OK though.
Reason for writing in CAPITALS? Beats me...

Regards
Akerman

Login or register to post comments
JapanCutter

Joined: 2009-01-06
Posts: 1
Posted: Tue, 2009-01-06 23:44

Solution: rename your entire directory from [gallery root]/g2data/cache/repository/ to /g2data/cache/repository.old

This will allow you to get back into your plugins page to see and manage the installed plugins - however it doesn't fix the root problem which will happen again if you try to run the "get more plugins" option. This appears to be a bug with g2 and appears to be most common with 1&1 hosting.

Login or register to post comments
fatal_g

Joined: 2009-01-14
Posts: 2
Posted: Wed, 2009-01-14 07:30

I can confirm the exact same issue for me (and Im on 1and1) not that it should matter, but renaming it fixes my "plugins" issue. Otherwise I get the server 500 error everytime I try to update check

What can we do?

Login or register to post comments
thomasorf

Joined: 2009-02-05
Posts: 2
Posted: Wed, 2009-02-18 15:21

I am getting an HTTP 500 error (Most likely causes: The website is under maintenance, The website has a programming error) when clicking on Themes and Plugins. I just started configuring this for the first time yesterday. I was able to create two galleries and add some photos to it. Everything seemed to work fine. Then I started editing the style sheet and the theme.tpl. After this, I noticed if I click on Plugins or Themes I get an HTTP 500 error and now I can't seem to get it fixed. I did have a backup of the two files I changed and I put them back, so at this point, everything should be the way it was when I installed the gallery. I also cleared the cache and I'm still getting the error. I don't think it's anything wrong with the files at this point, so I'm thinking it's something possible at the database level. Any information you could provide me to help solve this would be appreciated.

Login or register to post comments
thomasorf

Joined: 2009-02-05
Posts: 2
Posted: Wed, 2009-02-18 18:46

It looks like I have this issue fixed. I was editing the Floatrix theme, but before I did this, I had a backup of this saved in the themes folder titled floatrix_orig. Just to make sure I had everything back the way it was originally installed, I removed this folder. That fixed all my problems. After removing that folder, I can get to the Plugins and Themes area now. I hope this helps someone, because it certainly was frustrating.

Login or register to post comments
jelyon

Joined: 2007-07-01
Posts: 2
Posted: Sun, 2009-03-22 14:17

After upgrading to 2.3 on a 1and1 hosted domain, I too had "Error 500" when clicking on the plugins link. Many many forays onto the interwebs lead to many people with the same issue, but no real solutions.

I found an unrelated but similar issue, and based on advice in that posting, I decided to try switching to PHP5 by putting the following two lines at the top of the .htaccess file in my gallery2 install's root directory:

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

Performance seems better, and I've been able to access the plugins directory. All is well.

Login or register to post comments
pelipen

Joined: 2009-08-02
Posts: 1
Posted: Sun, 2009-08-02 19:50

I get this error almost every time AFTER I have used the plugins page to update/add/remove. This is particularly true when using the "get more plugins" feature. Every time it's been the same issue: The plugin gets installed, but only partially (progress bar never completes).

This time when upgrading from 2.2 to 2.3, I ended up doing a reinstall, but using the same DB, since the upgrade caused the now famous failed with 500 internal error. During the "re-install" Gallery listed three plugins that had version errors and would not be used. After the install, I still got the 500 error, so I looked at the tables. In the g2_PluginMap table, the g_active flag was "1" for PublishXP, which was one of the plugins listed as having a version conflict. So, I set that to "0", and now my plugins page works again. This is not the first time I've had to edit that table after a botched plugin install.

If you get the 500 Internal Server Error after doing plugin maintenance, try checking that your tables are correct. This is an annoying bug in the 2.x series I was hoping was fixed in 2.3. Guess not.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 12544
Posted: Mon, 2009-08-03 05:16

How it is a bug if your database server isn't stable and causes corruption?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
jrs

Joined: 2009-09-08
Posts: 2
Posted: Tue, 2009-09-08 13:05

I have seen this exact same bug today: made a copy of the matrix theme on the server, then lost access to Plugins and Themes Admin Options ("Internal Server Error"). I had also installed a couple of additional Plugins. Deleted the copy of matrix and could then access Plugins and Themes Admin Options again (thanks, thomasorf). Bit of a worry.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 12544
Posted: Tue, 2009-09-08 13:28

Again, that's not a bug. And it's a different problem. If you just made a copy of a theme or module and didn't make changes to some of the files to rename some stuff in that copied theme or module you will get a blank plugins page every single time.
http://codex.gallery2.org/Gallery2:Themes:How_to_Copy_an_Existing_Theme
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
jrs

Joined: 2009-09-08
Posts: 2
Posted: Wed, 2009-09-09 01:00

Bug: an error in a computer program or system (definition 4 from the New Oxford American Dictionary). Maybe I should have been more specific and said 'I introduced a bug in my Gallery system by duplicating the Matrix theme on my server as per the instructions at http://codex.gallery2.org/Gallery2:Themes:How_to_Copy_an_Existing_Theme. Before I could edit the file as per those instructions I lost access to Themes and Plugins Admin Options in Site Admin (error: Internal Server Error). I removed the duplicated Theme and regained access to those Admin Options (thanks, thomasorf).' BTW, when I did upload my changed theme (following the instructions to change the theme.inc file) I lost access to the whole gallery and had to reinstall Gallery from scratch.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 18451
Posted: Wed, 2009-09-09 01:49

Perhaps you did not follow the directions? They seem to work for me.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 12544
Posted: Wed, 2009-09-09 01:54

Yes, I've done this dozens of times with modules and themes without issue across different servers and hosts.

Fortunately this is even easier in G3. I'm not sure about modules, but with themes, if you copy a theme and don't change any information, nothing is broken. You can just get confused if you go to the theme chooser.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
fotonut

Joined: 2009-02-21
Posts: 36
Posted: Sat, 2009-11-07 22:15

Gallery 2.3 - 1&1 servers - I just got hit with this when trying to add additional plugins. I did the rename
of /GalleryData/cache/repository/released/index.repository.bak and then from maintenance I deleted the template cache and it still was broken, then deleted DB cache and it started working.

Login or register to post comments