View Full Version : Error in forum.php
crazyboy1661
10-10-2013, 07:10 AM
Today I have updated my forum 4.2.1 to 4.2.2. Every thing is working fine. But above the header, I am getting this error message.
Warning: Function split() is deprecated in ..../forum.php(791) : eval()'d code on line 2
need your advice.
thanks
nerbert
10-10-2013, 07:47 AM
Look at forum.php and identify the hook at line 791, use that to find out what plugin(s) is/are there. Go to line 2 of the plugin and change split() to preg_split()
crazyboy1661
10-10-2013, 10:56 AM
there in line 791 I found this code. ($hook = vBulletinHook::fetch_hook('forumhome_complete')) ? eval($hook) : false;
ozzy47
10-10-2013, 10:59 AM
Ok now look at your plugins that run on forumhome_complete, disable them one by one, till you find out which mod is causing the error.
crazyboy1661
10-10-2013, 11:09 AM
thanks Ozzy47 and nerbert. I found VSa - Visitors in Last X Hours plugin is creating that error.
thanks for both of you again.
Now it's normal.
ozzy47
10-10-2013, 11:10 AM
I did post the fix in that mods thread.
crazyboy1661
10-10-2013, 11:13 AM
Ok. I will check it now.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.