MyBB Community Forums

Full Version: set_magic_quotes_runtime() is deprecated
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
im gettiing this error now on my mybb forum. idk why. its 1.6
any one know the problem? i look in mybb.com but says i need to upgrade but im using upgraded version..

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/passws/public_html/inc/class_core.php on line 165

The following warnings occurred:
Warning [2] Cannot modify header information - headers already sent by (output started at /home/passws/public_html/inc/class_core.php:165) - Line: 1622 - File: inc/functions.php PHP 5.3.4 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/functions.php 1622 header
/inc/class_session.php 360 my_setcookie
/inc/class_session.php 98 session->load_guest
/global.php 55 session->init
/index.php 18 require_once
Warning [2] Cannot modify header information - headers already sent by (output started at /home/passws/public_html/inc/class_core.php:165) - Line: 1622 - File: inc/functions.php PHP 5.3.4 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/functions.php 1622 header
/inc/class_session.php 365 my_setcookie
/inc/class_session.php 98 session->load_guest
/global.php 55 session->init
/index.php 18 require_once
Warning [2] Cannot modify header information - headers already sent by (output started at /home/passws/public_html/inc/class_core.php:165) - Line: 1622 - File: inc/functions.php PHP 5.3.4 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/functions.php 1622 header
/inc/class_session.php 106 my_setcookie
/global.php 55 session->init
/index.php 18 require_once
Your host should disable magic quotes, but to fix the error, in ./inc/class_core.php, line 165:

set_magic_quotes_runtime(0);

change to:

@set_magic_quotes_runtime(0);