vBulletin Mods

The Official vBulletin Modifications Site

PHP 7.1 "[] operator not supported for strings on line" errors.
by Skyrider
30 Mar 2020 13:27

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:


[] 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.


Dave 30 Mar 2020 13:52

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.

Skyrider 30 Mar 2020 15:43

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

Appreciate it!

All times are GMT. The time now is 21:15.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, 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.