PDA

View Full Version : save big code in template > goes blank!



Defkalion
Thu 8th Oct '09, 6:14pm
I've never seen this before...

I'm trying to help on a website that has a really weird problem.

Whenever I try to edit a template, if the code inside it is up to X lines, it saves fine. If the code is bigger, when i click save, it returns the template blank!!

This happens also when I edit a template that already has some code in it! For example I edit header template, insert nothing inside it, just hit "save", and the template goes blank!!

I have upgraded to the latest VB version, globally disabled plugins, and problem remains! :eek:

Anybody got any idea what this is? Could it be an issue with the suhosin php parameter? the database? how could i troubleshoot this?

Jake Bunce
Fri 9th Oct '09, 6:37pm
I suspect a problem with mod_security or suhosin. Create a ".htaccess" file with the code from this thread and put it in your forum directory:

http://www.vbulletin.com/forum/showthread.php?t=197290

That will disable mod_security which may fix your problem.

For suhosin you use this code:



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

Defkalion
Sun 18th Oct '09, 9:04am
Thanks so much Jake, I think that the hoster solved it by themselves. If it persists I'll use this.

Thanks again.