vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=327793

VBulletin 3.8.11 and PHP 7.0 - The battle continue
by MTTRSS
29 Jan 2020 12:46

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 29 Jan 2020 at 12:58 ---------------

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

Anyone knows why? :D

--------------- Added 29 Jan 2020 at 13:00 ---------------

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

Dave 29 Jan 2020 13:11

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 29 Jan 2020 17:19

Quote:

Originally Posted by Dave (Post 2601860)
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 29 Jan 2020 17:26

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 29 Jan 2020 17:31

Okay found and I replaced all the split (which was 1) with explode but nothing to do, it didn't work. Same error. :(

Dave 29 Jan 2020 17:40

It's probably present in a different plugin hook as well.

MTTRSS 29 Jan 2020 19:38

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 29 Jan 2020 19:45

Yes, you must replace split with explode in every single plugin.

MTTRSS 29 Jan 2020 19:58

Quote:

Originally Posted by Dave (Post 2601868)
Yes, you must replace split with explode in every single plugin.

Thank you so much, worked perfectly! :D


All times are GMT. The time now is 03:55.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.