XMB Forum Software

[New] Warning: ini_set

Zendik - 8-21-2013 at 09:29 PM

Full Board URL: www.southshorecollective.org/forum/
XMB Version: 1.9.11

This morning I woke up to this:

www.southshorecollective.org/forum/


Quote:

Warning: ini_set() has been disabled for security reasons in /home/southsho/public_html/forum/include/global.inc.php on line 42
Error: XMB failed to start due to file corruption. Please inspect /home/southsho/public_html/forum/include/global.inc.php at line number 42.


The only hacks I have are Portal, Karma..

Thanks in advance..

Mouser - 8-21-2013 at 09:40 PM

That has nothing to do with the hacks, but with your hosting provider :)
They apparently disabled the php function ini_set(). You should try contacting them.


If magic_quotes is already disabled on your server, then you don't need XMB to do this, and the line of coding can be removed.

Edit the file: /home/southsho/public_html/forum/include/global.inc.php

Look for line 42. I think it will be this one;
Code:
ini_set('magic_quotes_runtime', 0);


Now you have two options;

1: Let XMB use the function every time, but suppress the error message;
Code:
@ini_set('magic_quotes_runtime', 0);


2: Don't let XMB use this function;
Code:
//ini_set('magic_quotes_runtime', 0);