Page 1 of 1

Static Page Problem: Invalid argument supplied for foreach()

Posted: Mon Sep 05, 2011 12:24 am
by slash1968
Hi can somebody help me with this?
I downloaded the static page event at the plugins section.

Then I installed the plugin after that ,, a message appeared at the bottom of the site

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\serendipity\plugins\serendipity_event_staticpage\serendipity_event_staticpage\serendipity_event_staticpage.php on line 2718


What I am going to do with this?

...
And there is also a damage in the file when I downloaded it and extracted it . I think its not completed yet

Re: Static Page Problem: Invalid argument supplied for forea

Posted: Mon Sep 05, 2011 10:20 am
by Timbalu
Yeah, it looks like the foreach needs to be surrounded by this, if you do not have static pages in the database by now.

Code: Select all

if(is_array($pages)) {
      foreach......
}
Do it yourself or wait for an updated version