View Full Version : Deprecated Error Showing up on my forum
edytwinky
02-05-2014, 08:54 PM
I was recently moved to a new server through my webhost.
When I got moved, I now get an error at the top of my webpage that says:
Deprecated: Function split() is deprecated in /home/sitename/public_html/forums/forum.php(791) : eval()'d code on line 49
Then at the very bottom of the page it displays all the
vBulletin 4.2.1 Debug information for everybody to see.
Any idea what is happening or going on?
TheLastSuperman
02-05-2014, 09:08 PM
Your new server seems to have a different (newer) version of php running and also it appears as if they added a snippet of code to the config.php file in order to run it in debug mode for whatever reason.
Check the config.php file which is within /includes/ folder and see if any code such as this is at the very top below <?php at the very top, it will resemble this:
<?php
$config['Misc']['debug'] = true;
If it is then delete the line or comment it out, to comment out the code add to slashed before it, example:
<?php
// $config['Misc']['debug'] = true;
That will tell it NOT to "act" since the slashes make it not parse when the file is read ;).
Now as for the deprecated error, that can be related to a mod (the eval()'d code part of the message tells us that) or sometimes something within vBulletin itself that does not act how it should because well things have changed in other words.
Check post #2 here as well: http://www.vbulletin.com/forum/forum/vbulletin-announcements/vbulletin-announcements_aa/4000121-vbulletin-4-2-2-full-has-been-released
edytwinky
02-05-2014, 09:18 PM
Your new server seems to have a different (newer) version of php running and also it appears as if they added a snippet of code to the config.php file in order to run it in debug mode for whatever reason.
Check the config.php file which is within /includes/ folder and see if any code such as this is at the very top below <?php at the very top, it will resemble this:
<?php
$config['Misc']['debug'] = true;
If it is then delete the line or comment it out, to comment out the code add to slashed before it, example:
<?php
// $config['Misc']['debug'] = true;
That will tell it NOT to "act" since the slashes make it not parse when the file is read ;).
Now as for the deprecated error, that can be related to a mod (the eval()'d code part of the message tells us that) or sometimes something within vBulletin itself that does not act how it should because well things have changed in other words.
Check post #2 here as well: http://www.vbulletin.com/forum/forum/vbulletin-announcements/vbulletin-announcements_aa/4000121-vbulletin-4-2-2-full-has-been-released
Thanks so much, the config.php fix corrected everything!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.