The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP Warning: Illegal string offset 'usergroupid' in
Dear friends,
I recently upgraded php to ver 5.6 i checked error logs of vbulletin and saw these errors. would u please let me know how can fix it or replace to correct string?! [10-Jun-2017 20:16:42 UTC] PHP Warning: Illegal string offset 'usergroupid' in /home/user/public_html/includes/functions.php on line 383 [10-Jun-2017 20:16:42 UTC] PHP Warning: Illegal string offset 'usergroupid' in /home/user/public_html/includes/functions.php on line 449 [10-Jun-2017 20:16:42 UTC] PHP Warning: Illegal string offset 'userid' in /home/user/public_html/includes/functions.php on line 449 [10-Jun-2017 20:16:42 UTC] PHP Warning: Illegal string offset 'userid' in /home/user/public_html/includes/functions.php on line 440 [10-Jun-2017 20:16:42 UTC] PHP Warning: Illegal string offset 'usergroupid' in /home/user/public_html/includes/functions.php on line 449 |
#2
|
|||
|
|||
What vBulletin version are you using?
You may have to update your vBulletin version to a version that supports PHP 5.6+ in order to get rid of these errors. Unless of course you don't mind making manual modifications to the /includes/functions.php file. |
#3
|
|||
|
|||
using:
vBulletin® v3.8.11, Copyright ©2000-2017, vBulletin Solutions Inc. I think this version supportes php 5.6+ |
#4
|
||||
|
||||
First of all, those line numbers dont match up with the default functions.php for 3.8.11, which makes me wonder if you have the correct files uploaded.
Secondly, they are due to invalid data being passed to core functions, which indicates you have an issue elsewhere, in a modification maybe. |
#5
|
|||
|
|||
thanks for your reply
here is what my functions.php have on mentioned lines maybe can help find problem: [10-Jun-2017 20:16:42 UTC] PHP Warning: Illegal string offset 'usergroupid' in /home/user/public_html/includes/functions.php on line 383 $membergroups[] = $user['usergroupid']; [10-Jun-2017 20:16:42 UTC] PHP Warning: Illegal string offset 'usergroupid' in /home/user/public_html/includes/functions.php on line 449 if ($userinfo['usergroupid'] == $usergroupid OR in_array($usergroupid, $user_memberships["$userinfo[userid]"])) [10-Jun-2017 20:16:42 UTC] PHP Warning: Illegal string offset 'userid' in /home/user/public_html/includes/functions.php on line 440 if (!is_array($user_memberships["$userinfo[userid]"]) OR !$cache) |
#6
|
||||
|
||||
I already told you what the actual problem is
Which as I also said, indicates you have an issue elsewhere, probably in a modification thats calling the functions. |
#7
|
|||
|
|||
ok thanks, ill check modifications
and u have same idea on errors below? [13-Jun-2017 12:43:58 UTC] PHP Deprecated: Function split() is deprecated in /home/user/public_html/global.php(607) : eval()'d code on line 297 [13-Jun-2017 12:43:58 UTC] PHP Deprecated: Function split() is deprecated in /home/user/public_html/global.php(607) : eval()'d code on line 311 [13-Jun-2017 12:47:25 UTC] PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/user/public_html/misc.php(100) : eval()'d code on line 834 |
#8
|
||||
|
||||
Quote:
In line 100 of misc.php, you will likely find "=&" being used...replace that with just "=". |
#9
|
|||
|
|||
Quote:
($hook = vBulletinHook::fetch_hook('misc_start')) ? eval($hook) : false; here is the only split that i have found on global.php $val = preg_split('#\n#', $vbulletin->GPC['vbulletin_collapse'], -1, PREG_SPLIT_NO_EMPTY); please advise how to fix the functions |
#10
|
||||
|
||||
Quote:
Quote:
To make finding text within your plugins much easier, I highly recommend installing this product: Search Plugins |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|