Here’s a search-results page from Google which may help you:
http://tinyurl.com/68g5m
It’s always helpful if you search first before asking. If you have already searched, then let us know that.
Thanks. I found the answer within this forum when I finally searched with the right magic words.
I changed:
foreach ($current_plugins as $plugin) {
to:
foreach ((array)$current_plugins as $plugin) {
It’s always easy to search when you know what the question is…. 🙂
It’s always easy to search when you know what the question is…. 🙂
Amen to that, brother.
I was having the same error message referencing the functions.php
file. The solution to that, if anyone needs it is:
Change:
foreach ($array as $k => $v) {
To:
foreach ((array)$array as $k => $v) {
Got the answer to that in the Never Never Land support forum for XDForum. (The problem is a WordPress problem, not an XDForum problem.
Anyone have any idea why this fix appears to be necessary for some of us?
Satterbianco, what version of PHP are you using? I started getting the error after upgrading PHP.