Invalid argument supplied ... serendipity_event_trackback

Found a bug? Tell us!!
Post Reply
jlr
Regular
Posts: 34
Joined: Sat Feb 18, 2012 12:50 pm
Contact:

Invalid argument supplied ... serendipity_event_trackback

Post 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).
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Invalid argument supplied ... serendipity_event_trackbac

Post 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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
jlr
Regular
Posts: 34
Joined: Sat Feb 18, 2012 12:50 pm
Contact:

Re: Invalid argument supplied ... serendipity_event_trackbac

Post 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!
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Invalid argument supplied ... serendipity_event_trackbac

Post by Timbalu »

Fine!
Fixed in +1.15, available tomorrow.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply