Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 03-30-2020, 11:27 AM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default PHP 7.1 "[] operator not supported for strings on line" errors.

Okay, so. I've noticed that on PHP 7.1, I'm getting a lot of errors as of lately. If this is the wrong section to post this, please move it. Recently I noticed when using PHP 7.1, I'm getting:

Quote:
[] operator not supported for strings on line 7 in /includes/class_bootstrap.php(433) : eval()'d code
#0 sourceop/includes/class_bootstrap.php(433): eval()
#1 sourceop/includes/class_core.php(4391): vB_Bootstrap->process_templates()
#2 sourceop/includes/class_core.php(4349): vB_Template->__construct('memberaction_dr...')
#3 sourceop/includes/functions.php(3275): vB_Template::create('memberaction_dr...')
#4 sourceop/includes/functions_forumlist.php(314): construct_memberaction_dropdown(Array)
#5 sourceop/includes/functions_forumlist.php(230): construct_forum_bit('4', 2, 0)
#6 sourceop/forum.php(611): construct_forum_bit(-1)
#7 {main}

Fatal User Error: [] operator not supported for strings on line 7 in ..../includes/class_bootstrap.php(433) : eval()'d code in ..../vb/vb.php on line 286
When I disable the plug-ins through the config.php file, it works like a charm. So, I know this is plug-in related. But whenever I disable plug-ins one by one, or uninstall them all. Oddly enough, the error is the same.

I know vB4 supports up to PHP 7.1, but that doesn't mean the plugins will as well. But the only thing I noticed when removing/disabling the plug-ins on my test board is that the "on line" number changes.

Any advice is appreciated.

Regards,
Skyrider
Reply With Quote
  #2  
Old 03-30-2020, 11:52 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe you have a custom hook installed that is causing this error? (which is not part of any plugin but was manually added)

You can find this under Plugins & Products > Plugin Manager.
Reply With Quote
  #3  
Old 03-30-2020, 01:43 PM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, why didn't I think of that? Thanks. I found the Hook that was causing it.

Appreciate it!
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:28 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.07639 seconds
  • Memory Usage 2,170KB
  • 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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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