[plugin downloadmanager] error message in admin interface

Having trouble installing serendipity?
Post Reply
melesigene
Regular
Posts: 5
Joined: Sun Aug 06, 2006 10:58 pm

[plugin downloadmanager] error message in admin interface

Post by melesigene »

Hi,

just installed the plugin "download manager" but I can't use it :

I got this after installing when I went to the admin interface to configure new categories for the download manager:

Code: Select all

Warning: Invalid argument supplied for foreach() in /www/plugins/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php on line 1791
I can't figure what it can came from ?

can you help me with this ?

thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [plugin downloadmanager] error message in admin interfac

Post by garvinhicking »

Hi!

Which version of the downloadmanager plugin are you using? In the recent version, in line 1791 there is no "foreach"...?

Where did you download the plugin from?

Best 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/
melesigene
Regular
Posts: 5
Joined: Sun Aug 06, 2006 10:58 pm

Post by melesigene »

Hi Garvin,

the version is serendipity_event_downloadmanager-0.7.zip

I downloaded it at http://blog.linux-stats.org/index.php?s ... thiscat=74
the website of the developper (I found the address in the plug rep of s9y)

my s9y is a 1.0

my serendipity_event_downloadmanager.php [line 1791] :

Code: Select all

			$cat = array();
			$last = "";
			foreach($cats as $cat) {
				if (($cat["level"] == 1))
					$parent = array();

I will drop the plug and tring to reinstall it
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You should try to fetch the latest plugin from http://spartacus.s9y.org/

Best 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/
melesigene
Regular
Posts: 5
Joined: Sun Aug 06, 2006 10:58 pm

Post by melesigene »

garvinhicking wrote:Hi!

You should try to fetch the latest plugin from http://spartacus.s9y.org/

Best regards,
Garvin
Thanks Garvin,

I will remove the plug and try using spartacus

cheers !
melesigene
Regular
Posts: 5
Joined: Sun Aug 06, 2006 10:58 pm

Post by melesigene »

raaaargh !

I remove the plugin [admin], I also removed the files (spartacus still installing the 0.7 version if I don't removed the files),

Spartacus fetched a new version of downloadmanager plugin (0.12)

but I still have the same message (error line has changed)

Code: Select all

Warning: Invalid argument supplied for foreach() in /filer/m/e/melesigene/www/plugins/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php on line 1742
I don't understand

you said that the foreach() is not present in recent version ? can you tell me which one ?

thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

This error message comes when you have not yet created any categories for the downloadmanager! You can ignore the error, but I'll try to make a safer check so that the message does not appear any more.

Best 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/
melesigene
Regular
Posts: 5
Joined: Sun Aug 06, 2006 10:58 pm

Post by melesigene »

yes there's no categories

but I tried to create one to see if the error message can be ignored

the problem is that I can't create one, that's why I begin to searche how to solve the problem.

is there any chance that the problem (creating new gategories) came form my browser >> Firefox 1.0.8 ???

thanks for your time spent on this
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I must admit I have never used the downloadmanager myself. How do you try to create a category, and what happens? Maybe you could make some screenshots and post them on imageshack or your own webspace?

Best 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