Page 1 of 1

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

Posted: Fri Nov 10, 2006 12:58 pm
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

Posted: Fri Nov 10, 2006 8:17 pm
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;

Posted: Sat Nov 11, 2006 3:56 pm
by garvinhicking
Hi!

Just committed a fix for that to CVS!

Regards,
Garvin

Posted: Sun Nov 12, 2006 12:41 pm
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.

Posted: Mon Nov 13, 2006 9:57 am
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