PDA

View Full Version : VBulletin 3.8.11 and PHP 7.0 - The battle continue


MTTRSS
01-29-2020, 11:46 AM
Hello guys,

I run a website with wordpress and vbulletin 3.8.11 and I was wondering if there are news or solutions about making work vB with PHP 7.0. Actually I downgraded my php version to 5.6 and things works fine, yet it's not a solution, also my vb is a little slow and I suppose it's cause the PHP version since my server has a SSD and wordpress work litterally like super fast. When I turn the PHP version to 7.0 I get this error:

Error: Call to undefined function split() in ..../index.php(596) : eval()'d code on line 2
Trace Data:
#1 : vbstop() called in ..../includes/class_core.php on line 3834
#2 : vbulletin_exception_handler() called in on line

Var Type:
[ NULL ]

Var Data:
null

Anyone knows if there's a way to make things work? Also because from my member area I read: Note : Only the versions below support PHP 7
PHP 7.0: vBulletin 5.2.5-5.4.5, 4.2.5 and 3.8.11 support PHP 7.0

Thanks.


-----


EDIT: I noticed that with the PHP 7.0 and 7.1 the admin cp works perfectly but the forum no

--------------- Added 1580306294 at 1580306294 ---------------

UPDATE: I disabled all the products and plugins and the forum started working.

Anyone knows why? :D

--------------- Added 1580306428 at 1580306428 ---------------

it stops working only when I activate these following plugins: Cyb - Advanced Forum Statistics and Cyb - Visitors in Last X Hours

Dave
01-29-2020, 12:11 PM
Usually you can just replace all calls to the function split with explode in the PHP code of the plugin/hook as they work similar in PHP.

MTTRSS
01-29-2020, 04:19 PM
Usually you can just replace all calls to the function split with explode in the PHP code of the plugin/hook as they work similar in PHP.

Where do I edit these files? Since they're just XML :confused:

Dave
01-29-2020, 04:26 PM
The XML file probably imported hooks which you can find at Plugins & Products > Plugin Manager > click on "[Edit]" of all the hooks of the product with the issue and search for the split function and replace it with explode.

MTTRSS
01-29-2020, 04:31 PM
Okay found and I replaced all the split (which was 1) with explode but nothing to do, it didn't work. Same error. :(

Dave
01-29-2020, 04:40 PM
It's probably present in a different plugin hook as well.

MTTRSS
01-29-2020, 06:38 PM
Oh so you mean that I must replace this variant in every plugin that didn't work? Because I did only on Cyb - Visitors in Last X Hours and I re activated just this plugin because I wondered they're not connected between them. Am I wrong?

Dave
01-29-2020, 06:45 PM
Yes, you must replace split with explode in every single plugin.

MTTRSS
01-29-2020, 06:58 PM
Yes, you must replace split with explode in every single plugin.

Thank you so much, worked perfectly! :D