vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   PHP Warning: Illegal string offset functions.php (https://vborg.vbsupport.ru/showthread.php?t=327491)

oldengine 08-27-2019 02:31 PM

PHP Warning: Illegal string offset functions.php
 
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

Quote:

Originally Posted by oldengine (Post 2600421)
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:
Code:

define('SKIP_ALL_ERRORS', true);

Quote:

Originally Posted by shka (Post 2600422)
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/showthrea...03#post2214603
.
.


All times are GMT. The time now is 09:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01022 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete