MyMood plugin install error

Creating and modifying plugins.
Post Reply
chrisT33
Regular
Posts: 43
Joined: Wed Sep 20, 2006 9:36 am

MyMood plugin install error

Post by chrisT33 »

hello...


i've downloaded MyMood plugin from here: http://spartacus.s9y.org/cvs/additional ... _mymood.zi p i've uploaded, and when i go in my admin panel --> Configure Plugins --> install a new event plugin i see this error:

Code: Select all

Parse error: syntax error, unexpected T_RETURN in /home/discuta/public_html/cristi/blog/plugins/serendipity_event_bbcode/serendipity_event_mymood/serendipity_event_mymood.php on line 530

i didn't modify not a single line from the plugin :?



does anyone knows what's my problem here? :(
chrisT33
Regular
Posts: 43
Joined: Wed Sep 20, 2006 9:36 am

Post by chrisT33 »

i now deleted the plugin from the server to test some other plugins, but i cannot access anymore the Event Plugins panel to add new plugins :shock:


it gives me the same error as i said above :shock:


what the..... :x


i tried with Firefox & with IE and same problem on both :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

That is a very strange path loctaion mentioned above! Why is the mymood plugin inside the bbcode plugin directory? It needs to be on its own! Please move that directory outside of the bbcode plugin dir...

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/
chrisT33
Regular
Posts: 43
Joined: Wed Sep 20, 2006 9:36 am

Post by chrisT33 »

oooo damn :( i now see it... i put it elsewhere... :( i need to sleep :|


anyway i put it now how it should be but the error is still there:


Parse error: syntax error, unexpected T_RETURN in /.../blog/plugins/serendipity_event_mymood/serendipity_event_mymood.php on line 530



and here are the lines 525-535:

525. function f_display_moods($e_id) {
526. global $serendipity;
527.
528. # bail if there is no way to display (pdf plugin, for example)
529. if (!isset($serendipity['smarty'] {
530. return false;
531. }
532.
533. $moods = $this->get_entry_moods($e_id);
534.
545. # bail if there are no entries...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

hi!

there's a ")" missing before the "{" in that line! maybe juderbert can commit a fix to cvs as well? ;)

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/
chrisT33
Regular
Posts: 43
Joined: Wed Sep 20, 2006 9:36 am

Post by chrisT33 »

it's worknig, but there were 2 * ) missing...


so the correct line #529 is:


if (!isset($serendipity['smarty'])) {



thanks a lot garvinhicking
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Will do, Garvin.

Aren't you supposed to be on vacation? I admire your commitment, but don't burn out on us! Get some rest!
Judebert
---
Website | Wishlist | PayPal
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Have done.
Judebert
---
Website | Wishlist | PayPal
Post Reply