Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 13 Oct 2019, 09: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 09:25.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:12.

Layout Options | Width: Wide Color: