Plugin installation problems using Spartacus

Found a bug? Tell us!!
Post Reply
kidgoo
Regular
Posts: 71
Joined: Thu May 12, 2005 6:53 am

Plugin installation problems using Spartacus

Post by kidgoo »

When trying to install some plugins using Spartacus, I get this error.

Code: Select all

Trying to open URL http://netmirror.org/mirror/serendipity/package_sidebar.xml ...


Trying to open URL http://cvs.sourceforge.net/viewcvs.py/*checkout*/php-blog/additional......
Trying to open URL http://cvs.sourceforge.net/viewcvs.py/*checkout*/php-blog/additional......
Error: serendipity_plugin_mycalendar:e88ff0283d79abeaf15fed9252278a58 (serendipity_plugin_mycalendar)

Fatal error: Call to a member function on a non-object in /var/www/blog/include/admin/plugins.inc.php on line 664
It is reproducible every time trying to install the My Calendar plugin, and randomly occurs for other plugins. It creates a dir under plugins/, and creates an entry in the plugins list (but it has the name of the last plugin, and then "Error!")

I am using s9y 0.8.1 and php 4.3.10-15 on apache 2.0.54. All permissions are correct.

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

Re: Plugin installation problems using Spartacus

Post by garvinhicking »

Did you try to open the actual URL that Spartacus tells you? Sometimes the SourceForge CVS download links do not properly work :-/

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/
kidgoo
Regular
Posts: 71
Joined: Thu May 12, 2005 6:53 am

Post by kidgoo »

Check that too...the links both worked and I still got the error.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

But there is no file downloaded to the mycalendar directory?

Could you post a "ls -la plugins/serendipity_plugin_mycalendar" output?

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/
kidgoo
Regular
Posts: 71
Joined: Thu May 12, 2005 6:53 am

Post by kidgoo »

Sure:

Code: Select all

[kidgoo@tsuki]/var/www/blog/plugins/serendipity_plugin_mycalendar# ls -la
total 8
drwxrwxr-x   2 kidgoo www-data 4096 May 24 20:43 ./
drwxrwxr-x  59 kidgoo www-data 4096 May 25 17:39 ../
I did notice that there's a plugins/serendipity_event_mycalendar/ which is not empty:

Code: Select all

[kidgoo@tsuki]/var/www/blog/plugins/serendipity_event_mycalendar# ls -la
total 24
drwxr-xr-x   2 www-data www-data 4096 May 25 17:39 ./
drwxrwxr-x  59 kidgoo    www-data 4096 May 25 17:39 ../
-rw-r--r--   1 www-data www-data 9686 May 25 17:39 serendipity_event_mycalendar.php
-rw-r--r--   1 www-data www-data 3972 May 25 17:39 serendipity_plugin_mycalendar.php
Hope this helps, and thanks for the quick replies.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hm, that's strange. Maybe you can try to go to your simple "Click her to instal ann event plugin" link and see if you can install the calendar plugin? Or maybe it's already working despite of the errors?

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/
kidgoo
Regular
Posts: 71
Joined: Thu May 12, 2005 6:53 am

Post by kidgoo »

It definitely isn't working despite the error...

However, that did work--going to install it as an event plugin not through Spartacus. The problem seemed to be when trying to install through Spartacus as a normal plugin...

Hope this helps...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I've put up an article here: http://blog.s9y.org/archives/22-Having- ... tacus.html if you face any future problems :)

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/
kidgoo
Regular
Posts: 71
Joined: Thu May 12, 2005 6:53 am

Post by kidgoo »

Good idea!

Out of curiosity I've tried to install My Calendar the way I knew it wouldn't work (via Spartacus as a non-event plugin) to examin the error more closely...Didn't shed much light on the situation:

Code: Select all

Trying to open URL package_sidebar.xml ...
Fetched 29803 bytes from already existing file on your server. Saving file as templates_c/package_sidebar.xml...


Trying to open URL serendipity_event_mycalendar.php?rev=1.9999...
Fetched 10946 bytes from the URL above. Saving file as /var/www/blog//plugins/serendipity_event_mycalendar/serendipity_event_mycalendar.php...
Data successfully fetched.
Trying to open URL serendipity_plugin_mycalendar.php?rev=1.9999...
Fetched 4551 bytes from the URL above. Saving file as /var/www/blog//plugins/serendipity_event_mycalendar/serendipity_plugin_mycalendar.php...
Data successfully fetched.
Error: serendipity_plugin_mycalendar:6b2994458078a47629177a9f43ecfa39 (serendipity_plugin_mycalendar)

Fatal error: Call to a member function on a non-object in /var/www/blog/include/admin/plugins.inc.php on line 664
For the record, it does install properly through Spartacus as an event plugin.

Without knowning much (anything) about the plugin system, I was thinking about the possible problems, and was wondering if perhaps it's installing things in the wrong order through the normal plugin's Spartacus interface. If it tries to install the event plugin before the normal plugin, and the event plugin is trying to call something declared in the normal plugin...a situation like that? Just a shot in the dark...

(Please realize I'm not nit picking...well, I am, but it's in good faith. I'm not meaning to be an annoyance, but this program is good, and I would like to try to help iron out all the bugs...)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Thanks a lot for this message! I think the error is in fact the loading of a "bundled" plugin. As you can see the plugin tries to install the depending sidebar plugin as well. It seems to me that there's the problem that it cannot find the proper plugin.

I will look into this next week!

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/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I was able to find and fix the problem. Please see:

http://blog.s9y.org/archives/23-Spartac ... ified.html

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/
kidgoo
Regular
Posts: 71
Joined: Thu May 12, 2005 6:53 am

Post by kidgoo »

Brilliant. Keep up the good work!
Post Reply