Page 1 of 1
MyMood plugin install error
Posted: Wed Sep 20, 2006 10:18 am
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?

Posted: Wed Sep 20, 2006 10:42 am
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
it gives me the same error as i said above
what the.....
i tried with Firefox & with IE and same problem on both

Posted: Wed Sep 20, 2006 10:43 am
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
Posted: Wed Sep 20, 2006 11:05 am
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...
Posted: Wed Sep 20, 2006 11:16 am
by garvinhicking
hi!
there's a ")" missing before the "{" in that line! maybe juderbert can commit a fix to cvs as well?
Regards,
garvin
Posted: Wed Sep 20, 2006 11:38 am
by chrisT33
it's worknig, but there were 2 * ) missing...
so the correct line #529 is:
if (!isset($serendipity['smarty'])) {
thanks a lot garvinhicking
Posted: Wed Sep 20, 2006 7:58 pm
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!
Posted: Thu Sep 21, 2006 4:56 am
by judebert
Have done.