PDA

View Full Version : PHP Warning: Illegal string offset functions.php


oldengine
08-27-2019, 02:31 PM
vBulletin 3.8.11 PHP 7.1

PHP Warning: Illegal string offset 'userid' functions.php on line 448

PHP Warning: Illegal string offset 'userid' functions.php on line 439

Also 'usergroupid' line 382 and 448

The chase goes on.

shka
08-27-2019, 02:48 PM
Recently done an update to php 7.x?

I think one of your hacks/addon's needs to be updated.

You have to disable them one by one until you aren't seeing the error. After that search for this addon here in this forum. There should be the solution.

Typicaly a string which is used as array. Then you should inititialize it as $xxxx = [];

lange
08-31-2019, 02:54 PM
vBulletin 3.8.11 PHP 7.1

PHP Warning: Illegal string offset 'userid' functions.php on line 448

PHP Warning: Illegal string offset 'userid' functions.php on line 439
It's only a PHP warning so you can insert the following code in config.php:
define('SKIP_ALL_ERRORS', true);


Recently done an update to php 7.x?

I think one of your hacks/addon's needs to be updated.

You have to disable them one by one until you aren't seeing the error. After that search for this addon here in this forum. There should be the solution.

Typicaly a string which is used as array. Then you should inititialize it as $xxxx = [];
Another solution is to use the following mod to fix PHP errors like this one. I use it to fix PHP errors of my mods with PHP 7.2+. The mod works fine on vb3.8.11.

https://vborg.vbsupport.ru/showthread.php?p=2214603#post2214603
.
.