vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Deprecated Error Showing up on my forum (https://vborg.vbsupport.ru/showthread.php?t=307970)

edytwinky 02-05-2014 08:54 PM

Deprecated Error Showing up on my forum
 
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 Code:

<?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 Code:

<?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...-been-released

edytwinky 02-05-2014 09:18 PM

Quote:

Originally Posted by TheLastSuperman (Post 2479235)
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 Code:

<?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 Code:

<?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...-been-released

Thanks so much, the config.php fix corrected everything!


All times are GMT. The time now is 01:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01085 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete