Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2020, 11:46 AM
MTTRSS MTTRSS is offline
 
Join Date: Jan 2020
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default VBulletin 3.8.11 and PHP 7.0 - The battle continue

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:

PHP Code:
ErrorCall 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 [DATE]1580306294[/DATE] at [TIME]1580306294[/TIME] ---------------

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

Anyone knows why?

--------------- Added [DATE]1580306428[/DATE] at [TIME]1580306428[/TIME] ---------------

it stops working only when I activate these following plugins: Cyb - Advanced Forum Statistics and Cyb - Visitors in Last X Hours
Reply With Quote
  #2  
Old 01-29-2020, 12:11 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-29-2020, 04:19 PM
MTTRSS MTTRSS is offline
 
Join Date: Jan 2020
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
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
Reply With Quote
  #4  
Old 01-29-2020, 04:26 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 01-29-2020, 04:31 PM
MTTRSS MTTRSS is offline
 
Join Date: Jan 2020
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay found and I replaced all the split (which was 1) with explode but nothing to do, it didn't work. Same error.
Reply With Quote
  #6  
Old 01-29-2020, 04:40 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's probably present in a different plugin hook as well.
Reply With Quote
  #7  
Old 01-29-2020, 06:38 PM
MTTRSS MTTRSS is offline
 
Join Date: Jan 2020
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 01-29-2020, 06:45 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, you must replace split with explode in every single plugin.
Reply With Quote
  #9  
Old 01-29-2020, 06:58 PM
MTTRSS MTTRSS is offline
 
Join Date: Jan 2020
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
Yes, you must replace split with explode in every single plugin.
Thank you so much, worked perfectly!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04866 seconds
  • Memory Usage 2,243KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete