need help with first spartacus plug in

Creating and modifying plugins.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Plugin List

Post by garvinhicking »

Hi!
I have that installed now. It does not help. Do I need a special custom field or something for the photoblog?
Do you have the photoblog plugin before the entryproperties plugin in the list of plugins in your plugin manager?

If that reordering doesn'T help either, I'll try to reproduce the issue here.

Which s9y version are you using, and which version of the photoblog plugin? I'm not perfectly sure, but if you are using a version prior to s9y 1.1, it might have been a bug in the entryproperty plugin together with the photoblog plugin...

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/
cdonat
Regular
Posts: 9
Joined: Mon Mar 26, 2007 1:31 pm

Re: Plugin List

Post by cdonat »

Hi,
garvinhicking wrote:
I have that installed now. It does not help. Do I need a special custom field or something for the photoblog?
Do you have the photoblog plugin before the entryproperties plugin in the list of plugins in your plugin manager?
I have tried both, with and without the thumbnail page.
garvinhicking wrote: If that reordering doesn'T help either, I'll try to reproduce the issue here.
Great, thanks a lot.
garvinhicking wrote: Which s9y version are you using, and which version of the photoblog plugin?
Serendipity 1.1.2, Photoblog-Plugin 1.0, PHP 5.0.5

I have ImageMagic active and use postgreSQL without persistant connections. URLs are prettyfied by mod_rewrite. Do you need any other information?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Plugin List

Post by garvinhicking »

Hi!
Serendipity 1.1.2, Photoblog-Plugin 1.0, PHP 5.0.5
The recent photoblog plugin versions are 1.3 for the event and 1.2 for the sidebar plugin, so if you update your plugins first, maybe the error is solved?

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/
cdonat
Regular
Posts: 9
Joined: Mon Mar 26, 2007 1:31 pm

Re: Plugin List

Post by cdonat »

Hi,
garvinhicking wrote:
Serendipity 1.1.2, Photoblog-Plugin 1.0, PHP 5.0.5
The recent photoblog plugin versions are 1.3 for the event and 1.2 for the sidebar plugin, so if you update your plugins first, maybe the error is solved?
My Spartacus Plugin still thinks that 1.0 is current. I have downloaded the Version 1.3 from http://spartacus.s9y.org and installed that one now. It did not help. Still the same behaviour.

I've been checking, if something is inserted into the table serendipity_photoblog when I save. The table stays empty. So the problem is not at the output.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Plugin List

Post by garvinhicking »

Hi!

I just checked, and I could save the entry without a problem and having the photoblog entry in the database.

When you save an entry, do you use any HTML-Links inside that? This would trigger s9y trying to send a trackback, and if that fails it MIGHT affect the saving.

Please try to use this code for your serendipity_event_photoblog.php file:

http://nopaste.php-q.net/286598

This emits some extra information when you save an entry, that might give me a clue what's going on.

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/
cdonat
Regular
Posts: 9
Joined: Mon Mar 26, 2007 1:31 pm

Re: Plugin List

Post by cdonat »

Hi,
garvinhicking wrote: When you save an entry, do you use any HTML-Links inside that? This would trigger s9y trying to send a trackback, and if that fails it MIGHT affect the saving.
No, I just tried with random text like.
garvinhicking wrote: Please try to use this code for your serendipity_event_photoblog.php file:
http://nopaste.php-q.net/286598
gives me this output:

Code: Select all

Saving photoblog data...
 Save handler called
 Got photo.
 Creating new.
 INSERT INTO serendipity_photoblog (entryid, photoid, use_thumbnail) VALUES (21, 6, 1)
 
Der Eintrag wurde gespeichert (Anzeigen)
The table serendipity_photoblog is still empty - as if the insert was not executed.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Plugin List

Post by garvinhicking »

Hi!

What happens if you use phpMyAdmin to execute:
INSERT INTO serendipity_photoblog (entryid, photoid, use_thumbnail) VALUES (21, 6, 1)
My guess is you'd get an error message?

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/
cdonat
Regular
Posts: 9
Joined: Mon Mar 26, 2007 1:31 pm

Re: Plugin List

Post by cdonat »

Hi,
garvinhicking wrote:
INSERT INTO serendipity_photoblog (entryid, photoid, use_thumbnail) VALUES (21, 6, 1)
My guess is you'd get an error message?
good guess:

Code: Select all

ERROR:  column "use_thumbnail" of relation "serendipity_photoblog" does not exist
I seems that the ALTER TABLE was not executed correctly on install. I have done that manually now and - it works.

Thanks a lot.
Post Reply