View Single Post
  #1  
Old 13 Oct 2019, 08:13
postcd postcd is offline
 
Join Date: Feb 2012
Invalid argument supplied for foreach() in functions_prefix.php on line 133

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?

Last edited by postcd; 13 Oct 2019 at 08:25.
Reply With Quote