vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=327591

Invalid argument supplied for foreach() in functions_prefix.php on line 133
by postcd
13 Oct 2019 08:13

Hello,

anyone also found this PHP error in the vbulletin 4.x error log?

Invalid argument supplied for foreach() in /includes/functions_prefix.php on line 133

I am having 4.2.5 and PHP 5.6.40

$ grep foreach functions_prefix.php

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I checked the StackOverflow topic "Invalid argument supplied for foreach()" but not sure how i should adjust above foreach lines. Any idea please?

One answer was:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So i tried replacing:
foreach ($
by:
foreach ((array) $
resulting in:
$ grep foreach functions_prefix.php

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

is that right, or how better do it please?


All times are GMT. The time now is 11:29.

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.