Can't Access Plugins from Site Admin in WPG2

ssphillips

Joined: 2007-01-15
Posts: 44
Posted: Sun, 2008-01-06 05:01

I get an Error 500 - Internal Server Error when trying to access Plugins from Site Admin within WPG2. I can access all of the other Site Admin functions within WPG2, and also the Plugins from the Gallery2 Site Admin.

I have raised the PHP memory limit to 128M by adding the following line to main.php in the gallery2 folder.

ini_set("memory_limit","128M");

I have tried many different ways (and values) to change the PHP Memory limit and this seems to be the only viable way to do so with my hosting service (1&1). I realize that this is a relatively high value compared to what most people seem to need, but I get lots of errors if I set it any lower...

Are there any other potential reasons to be getting this error in this specific way?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2008-01-07 03:41

ssphillips,

In order to help you, can you look into your hosting/site error_log and see what the 500 error actually is.
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
ssphillips

Joined: 2007-01-15
Posts: 44
Posted: Mon, 2008-01-07 04:24

Sure, but unless you know an easier way to do so specifically for G2 or WPG2, my hosting provider tells me that I have to create my own error log by adding some code to the php script in question. Which script do I need to add it to in this case?

Here is the link to the FAQ at 1and1 where they provide the code to add.
http://faq.1and1.com/miscellaneous/15.html
Will this give me what I need?

 
ssphillips

Joined: 2007-01-15
Posts: 44
Posted: Mon, 2008-01-07 05:16

I followed these instructions to create an error_log.txt file.

http://codex.gallery2.org/Gallery2:FAQ#How_to_display_PHP_errors.3F

It is completely blank after my Error 500. I guess that wasn't it...

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2008-01-07 06:03

500 CGI errors are logged into the Apache Error Log File, not into a specified php error file.. If you are using a cpanel host you should have access to the error_log file..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
ssphillips

Joined: 2007-01-15
Posts: 44
Posted: Tue, 2008-01-08 01:54

Sadly no, there is no way to access the root error log on my server.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-01-08 02:16

Without that error_log I do not know how I can help you. My only other suggestion would be to remove the WPG2 directory and to reupload the WPG2 files again just incase you got some weird permissions error happening..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
ssphillips

Joined: 2007-01-15
Posts: 44
Posted: Tue, 2008-01-08 04:28

Thanks anyway. I've tried that several times...

 
archshrk
archshrk's picture

Joined: 2005-04-29
Posts: 45
Posted: Tue, 2008-01-22 19:08

I've had to deal with this issue for some time now and it only really seems to be a 1and1 issue. While you can't access the logs you may get better WPG2 results by switching to the default Wordpress theme and using the default page settings for WPG2 (no custom header/footer). I have also had problems with 500 errors in embedded mode that don't occur in stand alone mode or when logged off (seems visitors have no trouble seeing my embedded gallery) - but that's another post.
-
www.archshrk.com
www.photojulia.com

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-01-22 23:42

I got to admit this is not the first time I seen 1&1 issues and I suspect not the last. I have a feeling that 1&1 have a custom server environment that tends to get overloaded which can lead to a number of very odd behaviours which we see posted. If you can move to another host.

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
ssphillips

Joined: 2007-01-15
Posts: 44
Posted: Wed, 2008-01-23 01:31

Oh yes, 1&1 is definitely not perfect, but it is what I have and the prospect of moving is quite daunting... If I knew that I would get better performance (ie. faster navigation between images) then I would definitely move. But from what I have seen Gallery2 is not fast in anyone's implementation so it doesn't seem like it's worth moving for that reason.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-01-23 04:49

I got to admit I not seen a really fast shared hosted G2 before so I cannot help you out, I am with Dreamhost myself, not the fastest and yes they have a few issues however I have a HUGE control over my environment and they are cheap as so I live with the few other issues that come up (plus they do WP & G2 Installs from the panel which makes it easy to setup sites)

The best way to run G2 is via a cache however it seems that hosting firm do not like cache's. Personally I have tried G2 with a memory cache and it is a different beast.

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
archshrk
archshrk's picture

Joined: 2005-04-29
Posts: 45
Posted: Wed, 2008-01-23 16:04

Other than the error log issue, I've not had any problems with 1and1. Good price, good size and easy to manage.
-
www.archshrk.com
www.photojulia.com

 
ssphillips

Joined: 2007-01-15
Posts: 44
Posted: Wed, 2008-01-23 17:07

I would presonally suggest that you hae been lucky so far. Just search the WPG2 and G2 forums for "1and1" and you will find all kinds of issues that are fairly specific to 1and1 shared hosting. I have had many of these issues myslef, and they often take weeks of long nights of fiddling and searching to resolve...