PDA

View Full Version : Help! I've updated my forum but my skins wont correspond..


GreigScott
10-12-2008, 09:18 AM
Right I updated to 3.7.3 last night. & my skins wont save cause i made them in 3.7.2,
this comes up:


Required variables have gone missing and execution can not continue. Please try again.

This error can sometimes occur as a result of Suhosin / Hardened PHP being installed on your server. If you know that you have Suhosin running and you have access to the PHP configuration, try increasing the value of the following variables:

* php_value suhosin.post.max_vars
* php_value suhosin.request.max_vars


how do i sort it.

Dismounted
10-12-2008, 09:24 AM
Try adding these lines to .htaccess in your forum directory:
php_flag suhosin.cookie.encrypt Off
php_value suhosin.request.max_vars 2048
php_value suhosin.post.max_vars 2048

GreigScott
10-12-2008, 09:49 AM
Try adding these lines to .htaccess in your forum directory:
php_flag suhosin.cookie.encrypt Off
php_value suhosin.request.max_vars 2048
php_value suhosin.post.max_vars 2048

theres nothing in the file atm and when i add to the .htccess in the public_html folder a error comes up on everything.

snakes1100
10-12-2008, 12:41 PM
I'm guessing your getting a 500 internal server error, not all servers are configured to allow php flags/values in a htaccess file.

Use this in the htaccess file:

suhosin.cookie.encrypt Off
suhosin.request.max_vars 2048
suhosin.post.max_vars 2048

OR

Create a php.ini file and put it in the required directory:

php_flag suhosin.cookie.encrypt Off
php_value suhosin.request.max_vars 2048
php_value suhosin.post.max_vars 2048

GreigScott
10-12-2008, 01:39 PM
The 1st one didn't work in .htaccess
and the 2nd one takes no offect
(i put a new file called php.ini in public_html)

snakes1100
10-12-2008, 04:47 PM
If neither option above works, then you need to contact your host and have them check the log files to find out what error is causing the issue when you try to save the "skins". They will have to modify the server to allow what is needed.

GreigScott
10-12-2008, 07:15 PM
If neither option above works, then you need to contact your host and have them check the log files to find out what error is causing the issue when you try to save the "skins". They will have to modify the server to allow what is needed.

I am my host..

Lynne
10-12-2008, 07:44 PM
If you are your own host, then you should try modifying the actual php.ini with the above lines. You should also check your error_logs.

snakes1100
10-12-2008, 08:22 PM
1. ssh into the server as root

2. find / -name php.ini -print

3. edit php.ini (ie... nano /etc/php.ini)

4. scroll to the bottom of the file and paste in the following:
suhosin.cookie.encrypt Off
suhosin.request.max_vars 2048
suhosin.post.max_vars 2048

5. exit and save

6. /etc/rc.d/init.d/httpd restart

GreigScott
10-12-2008, 08:49 PM
1. ssh into the server as root

2. find / -name php.ini -print

3. edit php.ini (ie... nano /etc/php.ini)

4. scroll to the bottom of the file and paste in the following:
suhosin.cookie.encrypt Off
suhosin.request.max_vars 2048
suhosin.post.max_vars 2048

5. exit and save

6. /etc/rc.d/init.d/httpd restart


How do i locate the PHP.ini file.
because me no find.

snakes1100
10-12-2008, 09:44 PM
2. find / -name php.ini -print



type that in and hit enter

GreigScott
10-13-2008, 12:23 PM
type that in and hit enter

kk, found it, got the owner to edit it, i will edit post when done.

--------------- Added 1223928445 at 1223928445 ---------------

PHP.ini didn't work
this still comes up

Required variables have gone missing and execution can not continue. Please try again.

This error can sometimes occur as a result of Suhosin / Hardened PHP being installed on your server. If you know that you have Suhosin running and you have access to the PHP configuration, try increasing the value of the following variables:

* php_value suhosin.post.max_vars
* php_value suhosin.request.max_vars

snakes1100
10-13-2008, 07:33 PM
Did you edit the correct php.ini file, typically there are more than one, check your phpinfo.php file for the correct one that is being used.

GreigScott
10-13-2008, 08:45 PM
Bid odd how I added a new skin to my friends hosting forum and it was made in 3.7.2 and hes on the 7.3 version and it worked?

Anyways, Alec (the tech' guy for meh forum!) is looking through the PHPinfo file and things.

snakes1100
10-13-2008, 08:52 PM
suhosin can be set per domain in the virtual host container in httpd.conf

make sure that your domain matches his in each vhost container.

GreigScott
10-13-2008, 10:19 PM
Big problem. Not a single skins editable. Even when I make new ones it dont work.

need more help.

snakes1100
10-14-2008, 06:10 AM
I would suggest checking your log files.

GreigScott
10-14-2008, 01:19 PM
See. I have added to php.ini but this '/etc/rc.d/init.d/httpd restart command doesnt work...
Which is why i think it dont work

Lynne
10-14-2008, 01:54 PM
Maybe you need to use another command to restart apache. Sometimes you use "service httpd restart" or other various commands. You could ask your host what they have it set up to be.

GreigScott
10-14-2008, 02:09 PM
We've tried everything you've provided us ;[
still no luck.

EntranaRS
10-14-2008, 02:18 PM
EDIT: Nevermind, I didn't read what you said properly :p

snakes1100
10-14-2008, 08:07 PM
See. I have added to php.ini but this '/etc/rc.d/init.d/httpd restart command doesnt work...
Which is why i think it dont work

That cmd works on almost any linux flavored OS.

Easiest thing to do is find were httpd is, you can simply search for it, most init scripts are in /etc/rc.d/init.d or /etc/init.d, some OS's name the init scripts differently as well, it can be named anything actually, but typically, apache, apache2, http, httpd etc...

You can use one of the following to search on almost all OS's

whereis httpd
locate httpd
find / -name httpd -print (find returns the best results.)

GreigScott
10-14-2008, 10:38 PM
tried - no luck. I might have to export some files from my old server.