Page 1 of 1
PDF plugin & MyMood error
Posted: Wed Sep 13, 2006 5:57 pm
by NetWhiz
When I have both plugins enabled, the display for month or longer produces the following error:
Code: Select all
Fatal error: Call to undefined function: assign() in /homepages/42/d176478838/htdocs/rileydupont.com/www/plugins/serendipity_event_mymood/serendipity_event_mymood.php on line 544
Displaying the current entry which has moods assigned works fine. But trying to display multiple entries in the PDF are messed up. I did apply the patch for the Unicode support just posted which helped with the output display issue.
http://www.rileydupont.com
Select an entry and try to view as a PDF.
Thanks for the help,
Drew
Re: PDF plugin & MyMood error
Posted: Wed Sep 13, 2006 6:04 pm
by garvinhicking
Hi!
That's a good catch! This plugin does not support to be embedded within PDF files, so it needs to be modify to check if $serendipity['smarty'] exists.
My dev-serve ris currently down but I will try to commit the fix after my holidays.
Best regards,
Garvin
Posted: Wed Sep 13, 2006 6:06 pm
by NetWhiz
Where would I start to look to fix this myself until you get one done?
Posted: Wed Sep 13, 2006 6:07 pm
by garvinhicking
Hi!
You would look inside the function of the plugin around the line 544, check where global $serendipity; is set.
Then you add the code:
Code: Select all
if (!isset($serendipity['smarty'])) {
return false;
}
HTH,
Garvin
Posted: Wed Sep 13, 2006 6:10 pm
by NetWhiz
garvinhicking wrote:Hi!
You would look inside the function of the plugin around the line 544, check where global $serendipity; is set.
Then you add the code:
Code: Select all
if (!isset($serendipity['smarty'])) {
return false;
}
HTH,
Garvin
Great! Added the code a couple lines before that in the MyMood plugin file serendipity_event_mymood.php and it fixed this issue.
Thanks!
Posted: Wed Sep 13, 2006 10:42 pm
by judebert
Now Garvin, you know I'm gonna take care of this as soon as I get home. Three lines, and even a specific reference on where to insert them? How much simpler could you make it?
Does SPARTACUS automatically update, or do I need to poke it somehow? Same thing for nightly builds?
Posted: Thu Sep 14, 2006 3:49 am
by judebert
Voila!
Posted: Thu Sep 14, 2006 9:44 am
by garvinhicking
Hi!
Sadly because my computer does not run yet ,Spartacus updates still don't happen. If I had the FTP data I could give it to you and instruct you how to update spartacus, but as I can't access the server, I don't have the FTP access here.
Bottom line, official spartacus updates will need to wait until the end of my holiday
Regards,
Garvin