Spartacus: PHP error when looking for sidebar plugin updates

Found a bug? Tell us!!
Post Reply
WebComPas
Regular
Posts: 101
Joined: Thu Nov 22, 2007 10:14 am
Contact:

Spartacus: PHP error when looking for sidebar plugin updates

Post by WebComPas »

Hallo!

I just tried to let spartacut check if there are updates for sidebar plugins. After clicking on "New versions of sidebar plugins" the XML file could be fetched correctly. But after the corresponding info messages the following PHP error was displayed:
Warning: Invalid argument supplied for foreach() in /[...]/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php on line 734
After looking into the PHP code, I think that the array element "$subtree['children']", which is used as the argument of foreach(), isn't an array. So this should be checked before running the loop.
Strangely enough this error could not be reproduced up to now. So it might be difficult to find the reason which cause this error. Nevertheless I think it would make sense to fix this issue.

Regards,
Pascal
Interessantes aus den Themenbereichen Computer, Internet und Programmierung unter http://www.it-blog.net
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Spartacus: PHP error when looking for sidebar plugin updates

Post by garvinhicking »

Hi!

Which s9y version are you using? Maybe the error happened when the XML file was malformed somehow?!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
WebComPas
Regular
Posts: 101
Joined: Thu Nov 22, 2007 10:14 am
Contact:

Re: Spartacus: PHP error when looking for sidebar plugin updates

Post by WebComPas »

Hi!

Actually I'm using s9y v1.4. Unfortunately I can't say whether the XML file has been malformed, because the error is not reproducable.

Regards,
Pascal
Interessantes aus den Themenbereichen Computer, Internet und Programmierung unter http://www.it-blog.net
WebComPas
Regular
Posts: 101
Joined: Thu Nov 22, 2007 10:14 am
Contact:

Re: Spartacus: PHP error when looking for sidebar plugin updates

Post by WebComPas »

Maybe the XML files are really malformed. In the template selection area I always get similar error messages:
Warning: Invalid argument supplied for foreach() in /[...]/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php on line 823

Warning: Invalid argument supplied for foreach() in /[...]/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php on line 823
When I open the file package_template.xml from NetMirror Firefox displays an error message about the XML content.
Interessantes aus den Themenbereichen Computer, Internet und Programmierung unter http://www.it-blog.net
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Spartacus: PHP error when looking for sidebar plugin updates

Post by garvinhicking »

Hi!

How does the package_template(_de).xml file look in your templates_c directory?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
WebComPas
Regular
Posts: 101
Joined: Thu Nov 22, 2007 10:14 am
Contact:

Re: Spartacus: PHP error when looking for sidebar plugin updates

Post by WebComPas »

It looks like a correct XML file. I've tried to attach it to this post but the post could only be submitted without attaching this file.
Interessantes aus den Themenbereichen Computer, Internet und Programmierung unter http://www.it-blog.net
3nd3r
Regular
Posts: 71
Joined: Tue Aug 19, 2008 12:58 pm
Location: NeoMadrid, Spain
Contact:

Re: Spartacus: PHP error when looking for sidebar plugin updates

Post by 3nd3r »

Same error here:

Code: Select all

Intentando acceder al URL package_sidebar_es.xml...
Descargados 132096 bytes desde la URL. Guardando el archivo como /home/pajareo/public_html/templates_c/package_sidebar_es.xml...
Data descargada con éxito.

Warning: Invalid argument supplied for foreach() in /home/pajareo/public_html/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php on line 734
I've trying to attach package_sidebar_es.xml, but get

Code: Select all

Error 101 (net::ERR_CONNECTION_RESET): Unknow error.
and if I zip it, it's ok :wink:
Attachments
package_sidebar_es.xml.zip
(12.79 KiB) Downloaded 277 times
Try not. Do, or do not. There is no try.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Spartacus: PHP error when looking for sidebar plugin updates

Post by garvinhicking »

Hi 3nd3er!

Which s9y version exactly?=

Regards,
GArvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply