PDF plugin & MyMood error

Creating and modifying plugins.
Post Reply
NetWhiz
Regular
Posts: 6
Joined: Wed Sep 13, 2006 4:04 pm

PDF plugin & MyMood error

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

Re: PDF plugin & MyMood error

Post 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
# 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/
NetWhiz
Regular
Posts: 6
Joined: Wed Sep 13, 2006 4:04 pm

Post by NetWhiz »

Where would I start to look to fix this myself until you get one done?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
NetWhiz
Regular
Posts: 6
Joined: Wed Sep 13, 2006 4:04 pm

Post 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!
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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?
Judebert
---
Website | Wishlist | PayPal
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Voila!
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!

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
# 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/
Post Reply