Forums | Fixed: Warning: Invalid argument supplied for foreach()

You must be logged in to post Login Register

Search Forums:


 






Fixed: Warning: Invalid argument supplied for foreach()

UserPost

5:01 am
August 20, 2007


seraphina

Member

posts 5

I'm testing out WordPress and stripShow for a friend who is doing a webcomic.  When I click on the default About extras page from wordpress, I get the following error:

Current story:
Part
Warning: Invalid argument supplied for foreach() in /path/to/site/wp-content/plugins/stripshow.php on line 801
of ?

(actual path to site edited for privacy)
Now, I have since deleted that page thinking there was some kind of conflict, and created a new page.  The new page doesn't appear on the sidebar at all…I'm also new to WordPress, so it may be something I'm doing wrong, I'm not sure.  However, when I go to Manage Pages, and click the View link for the page, it displays, but with the same error.

Any help appreciated!

–Seraphina

7:06 am
August 20, 2007


Brad

Admin

posts 233

How strange — the error you're getting seems to be in the section of code that gets the number of parts in the current story.

Do you have any storylines set up at present? The script is supposed to work without them, but there may be an issue I wasn't aware of.

8:03 am
August 20, 2007


seraphina

Member

posts 5

I tried setting up the storylines, it's a little hard to work with because there's no delete option.  I'm pretty sure I didn't have any set up before the error occurred and I tried setting them up to fix the problem. 

8:04 am
August 20, 2007


seraphina

Member

posts 5

I also re-uploaded the stripshow.php file in case something got messed up there, but it didn't help.

8:16 am
August 20, 2007


Brad

Admin

posts 233

You're right… it really needs a delete option for storylines. I figured people could just use Edit to change them, but it really is no good for testing. I'll get on that.

As for the error, I'm still trying to reproduce it. Send me the URL to your site in a private message, and I'll try and figure out if there are any special circumstances on your system that I'm not seeing.

8:48 am
August 20, 2007


seraphina

Member

posts 5

PM sent

Thanks..I really like the script and hope I can help in any way :)

12:17 pm
August 20, 2007


seraphina

Member

posts 5

Received updated php, fixed problem!

1:59 pm
August 20, 2007


Brad

Admin

posts 233

Glad to help.

There will actually be a release candidate for version 1.5 soon, as soon as I clarify some things in the documentation.



  • Donate

    While I don't maintain stripShow for a living, I wouldn't say no to a little donation, if you think the plugin is worth it...

  • Advertisements