podcasting Plug-In: Bug in 0.7 or in update script 0.6->0

Found a bug? Tell us!!
Post Reply
Comander1024
Regular
Posts: 6
Joined: Fri Aug 18, 2006 9:53 am
Contact:

podcasting Plug-In: Bug in 0.7 or in update script 0.6->0

Post by Comander1024 »

I think I have found a bug in the serendipity podcasting plug-in.

In stumbled into this error in 2 ways of trying to install the update:

First:
Installed blog version: 1.0
Upgrading the postcasting plugin via Spartacus 0.6 -> 0.7

Second:
Upgrading blog from 1.0 -> 1.0.1
Upgrading the postcasting plugin via Spartacus 0.6 -> 0.7

Doesn't matter which upgrade path I followed, same result both times:
2 lines of php error on every page of the plog regarding a wrong-initialized array value in serendipity_event_podcast.php on line 229 and the podcasting feature not working at all. In the plug-in list it is no longer called "Podcast" but "Sample!".
Clicking onto it works and opens the preferences tab of the plug-in, but the frontend doesn't work at all. As I am no php professional (indeed: I am quite a beginner in some programming languages) I do not see a way to solve it alone. Until there is a solution, I will keep up using Podcast 0.6

Thanks in advance for any advice
greetings Commander1024
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: podcasting Plug-In: Bug in 0.7 or in update script 0.6-&

Post by garvinhicking »

Hi!

Sadly the podcast plugin was broken for a day and contained this error; but new versions work properly. So if you could download the latest ZIP file from http://spartacus.s9y.org/ and use that one, you should be fine...

HTH,
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/
Comander1024
Regular
Posts: 6
Joined: Fri Aug 18, 2006 9:53 am
Contact:

Post by Comander1024 »

Oh, alright.
I will retry it the next time I have time tuning my blog. Thanks for the info.

mfG
Commander1024
Comander1024
Regular
Posts: 6
Joined: Fri Aug 18, 2006 9:53 am
Contact:

Post by Comander1024 »

Do I have to delete temorary files that are left from the corrupted version of the 0.7 plugin? Because today I tried to update again, and guess what? - it doesn't work!

I also tried to update it manually via the link you provided in your first answer, but all the same.

You might want to have a look at it here: http://commander1024.dyndns.org (the warnings at the far bottom of the page)
Last edited by Comander1024 on Tue Aug 22, 2006 4:03 pm, edited 2 times in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I'm afraid yes, you need to either download the ZIP from spartacus.s9y.org manually, or you need to delete the podcast plugin first from your directory before re-installing it via spartacus.

The reason is that the parse error got fixed wihtout increasing the version number by accident.

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/
Comander1024
Regular
Posts: 6
Joined: Fri Aug 18, 2006 9:53 am
Contact:

Post by Comander1024 »

hmmmm....

I deleted the podcast plugin in the admin panel and afterwards changed in to the blog-dir to manually delete the remaining folder blog/plugins/serendipity_event_podcast/
Then I used the admin panel to install the plugin via SPARTACUS, with the same error messages as before.
So I deleted it again and used the zip-file from spartacus.s9y.org but it's all the same :?

Any other clues?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Could you give me the exact error message you get?

And could you compare the file that you have with this one:

http://php-blog.cvs.sourceforge.net/php ... iew=markup


HTH,
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/
Comander1024
Regular
Posts: 6
Joined: Fri Aug 18, 2006 9:53 am
Contact:

Post by Comander1024 »

Thanks for the encouragement!

The thrown Warnings are these:

Code: Select all

Warning: array_keys() [function.array-keys]: The first argument should be an array in /var/www/blog/plugins/serendipity_event_podcast/serendipity_event_podcast.php on line 166

Warning: implode() [function.implode]: Bad arguments. in /var/www/blog/plugins/serendipity_event_podcast/serendipity_event_podcast.php on line 166

Warning: array_keys() [function.array-keys]: The first argument should be an array in /var/www/blog/plugins/serendipity_event_podcast/serendipity_event_podcast.php on line 229

Warning: implode() [function.implode]: Bad arguments. in /var/www/blog/plugins/serendipity_event_podcast/serendipity_event_podcast.php on line 229

Code: Select all

commander1024:~# diff serendipity_event_podcast.php\?revision\=1.16 serendipity_event_podcast_mine.php
commander1024:~#
Looks like they are perfectly the same!

Tell me, what else you need to have to debug my problem.
mfG
Commander1024
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I'm really sorry, you are right. That file still contained some invalid and unclosed "/*" which I fixed in cvs version 0.8. You can look it up here:

http://php-blog.cvs.sourceforge.net/php ... nt_podcast

HTH.,
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/
Comander1024
Regular
Posts: 6
Joined: Fri Aug 18, 2006 9:53 am
Contact:

Post by Comander1024 »

ok, my next thought would have been a corrupted database structure, although it looks sane to me, but fine that I could help to locate a bug ;-)
So, now I can sleep well again, beeing sure it was not me wasting the plugin ;-)

Thanks in advance for fixing

mfG
Commander1024
Post Reply