[Admin Settings] Error 500

xeocom

New Member
I always get the Server 500 Error Message, when I click save changes in the admin "Change Settings" Page (index.php?a=admin&b=settings).

So I click "Change Settings" => Error 500 => Reload = Settings changed ^^

But i cant add or change settings, when i installed the SEO Plugin.

So i asked the error log:

Code:
[Wed Jan 16 19:19:13 2013] [warn] [client xxx.xx.64.116] mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/info.php/languages/german.php) is not within the allowed path(s): (/var/www/vhosts/xxx.net/:/tmp/) in /var/www/vhosts/xxx.net/httpdocs/index.php on line 154
[Wed Jan 16 19:19:13 2013] [warn] [client xxx.xx.64.116] mod_fcgid: stderr: PHP Notice: Undefined index: new_member_screen in /var/www/vhosts/xxx.net/httpdocs/sources/admin/settings.php(217) : eval()'d code on line 17
[Wed Jan 16 19:19:13 2013] [warn] [client xxx.xx.64.116] mod_fcgid: stderr: PHP Notice: Undefined index: new_member_num in /var/www/vhosts/xxx.net/httpdocs/sources/admin/settings.php(217) : eval()'d code on line 18
 

Mark

Administrator
Staff member
Looks like the plugin is not installed correct

File(plugins/info.php/languages/german.php)

should be

File(plugins/languages/german.php)
 

Basti

Administrator
Staff member
Looks like the zip upload got corrupted or your server dont fully support this method
Can you confirm you have folder on ftp ( in plugins ) called "Seo" ?
If not you might need to manually upload the zip contents and click install on plugin manager

If that is the case also make sure you remove language folder if there is any in the plugins dir
 

Mark

Administrator
Staff member
You can also send me FTP and your admin password in a private conversation and I can investigate further for you.
 

Mark

Administrator
Staff member
as suspected, the problem was a plugin that was not supported was uploaded.

I have also added a couple lines to the screenshot file to prevent timeouts, this will be included in 1.0 as well.

screenshots.php

find:
Code:
error_reporting(0);
add this after:
Code:
set_time_limit(0);
ini_set('max_execution_time',0);
 

xeocom

New Member
ok,

a lot of 500 Server Error message results of some files in my plugin folder.

But I still have the 500 Server Error for creating screenshots:

Code:
[Thu Jan 17 20:31:22 2013] [warn] [client xx.158.159.106] mod_fcgid: read data timeout in 45 seconds, referer: http://xxx.xxx/index.php?a=admin&b=screenshots
[Thu Jan 17 20:31:22 2013] [error] [client xx.158.159.106] Premature end of script headers: screenshots.php, referer: http://xxx.xxx/index.php?a=admin&b=screenshots
 

Mark

Administrator
Staff member
your server is timing out.

make sure you have this in your screenshots.php file

set_time_limit(0);
ini_set('max_execution_time',0);

and make sure your hosting environment allows you to override these settings like this (may need to ask your host).
 

Mark

Administrator
Staff member
if you cant use these

set_time_limit(0);
ini_set('max_execution_time',0);

then you need to edit your php.ini
 

xeocom

New Member
both lines are in my screenshots.php

0 means infinity ? In your PM (conversion) you told me:


Screenshots take MUCH longer than 90 seconds. On a large list, this script may run for hours.
So for testing i clicked on "manage members" and clicked "screenshots". So this should just create screenshot for one user right? So this process dont need hours ;) but I also get a error: Internal Server Error (500)

Code:
[Thu Jan 17 20:41:38 2013] [warn] [client xx.158.159.106] mod_fcgid: read data timeout in 45 seconds, referer: http://xxx.xxx/index.php?a=admin&b=manage
[Thu Jan 17 20:41:38 2013] [error] [client xx.158.159.106] Premature end of script headers: screenshots.php, referer: http://xxx.xxx/index.php?a=admin&b=manage
 

xeocom

New Member
Thank you. But thats the point. Why timeout? Just for one Member Screenshot? I thougt screenshot is generated by your server and my host just resize it to 2 smaller versions. Right?

Master and local value is:


max_execution_time
90 90
 

Mark

Administrator
Staff member
Correct, I cannot explain why your server is timing out after 45 seconds, its is contrary to your settings.
 

Mark

Administrator
Staff member
I am running some further tests now to see if I can understand what is happening for you
 

xeocom

New Member
I changed the value: FcgidMaxRequestLen 13107200

I tested it on: members => "Manage Members" => just click on a member row => screenshots

I still get the same error

Code:
[Thu Jan 17 21:49:47 2013] [warn] [client xx.158.159.106] mod_fcgid: read data timeout in 45 seconds, referer: http://xxx.xxx/index.php?a=admin&b=manage
[Thu Jan 17 21:49:47 2013] [error] [client xx.158.159.106] Premature end of script headers: screenshots.php, referer: http://xxx.xxx/index.php?a=admin&b=manage
but I changed temporaly from fascgi to cgi and it works. Just for creating screenshots its ok :D

but more than 45 seconds for a screenshot....
 
Top