Page 1 of 1

Invalid argument supplied ... serendipity_event_trackback

Posted: Mon Jul 02, 2012 4:50 pm
by jlr
Hi all,

I hope this belongs here and hasn't been answered before. I keep getting this error message in the bottom line of my blog:
my blog wrote:Warning: Invalid argument supplied for foreach() in /WWWROOT/116770/htdocs/plugins/serendipity_event_trackback/serendipity_event_trackback.php on line 269
I figure it has something to do with said plugin, but I don't understand the rest of it. Blog works fine, and the message disappears after refreshing. I haven't figured out any regularity behind it yet, sometimes it appears, sometimes it doesn't.

When I google "serendipity_event_trackback.php on line 269" I get quite a lot of results, so it seems my blog isn't the only one with that problem.

Also: is it "normal" the error message displays the whole path? Isn't that a security risk of sorts? Sorry if I'm talking nonsense, I know little to nothing about php, databases et al (as you probably will have figured by now ;))

Thank you in advance for any ideas on this.

PS My blog: http://gazette.rainlights.net (I know I'm running 1.6 with a very old skin. So maybe that's just a problem with the skin).

Re: Invalid argument supplied ... serendipity_event_trackbac

Posted: Mon Jul 02, 2012 5:54 pm
by Timbalu
You could try and change line 268 in plugins/serendipity_event_trackback/serendipity_event_trackback.php:

Code: Select all

if  (!empty($entries[0])) {
to

Code: Select all

if (is_array($entries) && !empty($entries)) {
and report back if the warning disappears.

Re: Invalid argument supplied ... serendipity_event_trackbac

Posted: Tue Jul 03, 2012 10:31 am
by jlr
Well, I think ... a big thank you!

I changed the code this morning and worked for some time with the blog, and I haven't seen the message since. If it appears again, I'll get back here ... but it really looks like the problem is solved.

Thank you again!

Re: Invalid argument supplied ... serendipity_event_trackbac

Posted: Tue Jul 03, 2012 6:47 pm
by Timbalu
Fine!
Fixed in +1.15, available tomorrow.