pdf plugin throwing php errs on 1.1-beta5 und PHP 5.2.0-0.do

Found a bug? Tell us!!
Post Reply
emwede
Regular
Posts: 58
Joined: Thu Jun 22, 2006 10:38 am
Contact:

pdf plugin throwing php errs on 1.1-beta5 und PHP 5.2.0-0.do

Post by emwede »

Hi garvin,

am running s9y on 1.1-beta5 und PHP 5.2.0-0.dotdeb.1 at http://www.modlog.de.

If you klick the links for the pdf-plugin you'll get

Fatal error: Call to a member function assign() on a non-object in /var/www/plugins/serendipity_event_microformats/serendipity_event_microformats.php on line 183

have I missed to read some installation docs or is this a problem with the mentioned version?

Additional question: What's the relation between the two plugins microformat and pdf?

regards
Michael
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I haven't heard of this problem with any other installations, so it's probably not restricted to this version. It might have something to do with the new 5.2.0 release of PHP, though.

PDF and microformats aren't directly related, but they're probably listening to the same callbacks. In this case (just looked at the code), the microformat plugin is listening to 'entry_display', and trying to do some Smarty stuff. But apparently Smarty hasn't been initialized yet.

I'll bet the PDF plugin isn't using Smarty. The microformat plugin should probably check is_object($serendipity['smarty']) before it tries to use it, and just return if it isn't.

Unfortunately, I'm unable to contact my development computer right now, and my short breather from being swamped is about to end. I'll do it if I get the time, but someone else really needs to take care of this.

In the meantime, you can either put up with it (sorry), disable the microformat plugin, disable the pdf plugin, or add this code to serendipity_event_microformats.php just before line 183:

Code: Select all

if (not is_object($serendipity['smarty'])) return true;
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Just committed a fix for that to CVS!

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/
mattsches
Regular
Posts: 440
Joined: Sat Nov 05, 2005 9:35 pm
Location: Wiesbaden, Germany
Contact:

Post by mattsches »

Garvin, Judebert, thx for fixing this. I'm planning to resume work on the microformats plugin in the next weeks. There are still a lot of issues to look into, I guess.
emwede
Regular
Posts: 58
Joined: Thu Jun 22, 2006 10:38 am
Contact:

Post by emwede »

Hi Garvin and others,

just installed the fix to http://www.modlog.de an this fixes the error in a way.

Though I myself should have some looks on the stylesheet used by the pdf-export because of the pages running wider than my screen - and probably ask a (probably even stupid) question about special characters that apear as e.g.

Code: Select all

& # 8 2 2 0 ; P I S A & # 8 2 2 1
in the pdf-Export which make it not to well readable and not to prity looking ;-)

regards
Michael
Post Reply