WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Events Manager] Getting a Parse Error when trying to activate plugin.

[Plugin: Events Manager] Getting a Parse Error when trying to activate plugin.

  • Getting this error when I try to activate the plugin. Using WP 3.0.1 and PHP 5.2

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ‘,’ or ‘;’ in /home/kevin74/public_html/phoenixsportclub/dev/wp-content/plugins/events-manager/ajax.php on line 8

    Is there something that can be removed or needs to be changed to get this to work?

    http://wordpress.org/extend/plugins/events-manager/

Viewing 15 replies - 1 through 15 (of 36 total)
  • Plugin Author Marcus

    @netweblogic

    are you sure you have the latest version of EM (3.0.3)?

    Yea 3.0.3, just downloaded it last night.

    Plugin Author Marcus

    @netweblogic

    I can’t see anything wrong on that line, otherwise I think we’d get a lot more complaints about this. Could you try re-installing?

    Also, if you have any other event plugins installed, at least deactivate them.

    Nope nothing. Pretty much a fresh, installed it maybe a week or two ago. Oh well.

    Plugin Author Marcus

    @netweblogic

    I’m curious as to the problem here…

    Can you break line 8 up into this:

    $booked_seats = $EM_Event->get_bookings()->get_booked_seats();
    $available_seats = $EM_Event->get_bookings()->get_available_seats();
    echo "[{bookedSeats:". $booked_seats. ", ";
    echo "availableSeats:". $available_seats ."}]";

    and inform me of any errors you get?

    Plugin Author Marcus

    @netweblogic

    oh, and update to the newest version 3.0.4 which was released yesterday.

    I have the very same problem. Installed the newest version about an hour ago, no other calendar scripts/plugins running.

    Sadly I still got the same error after breaking up the line like you suggested.

    Plugin Author Marcus

    @netweblogic

    Can you give me the error? I need to know what exactly is breaking it, as it works fine on our tests.

    Thank you for your super quick response!

    It’s indeed the very same, as far as I can judge:

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ‘,’ or ‘;’ in /www/htdocs/w00886f5/larc/wordpress/wp-content/plugins/events-manager/ajax.php on line 8

    … and I get this error when I try to activate the plugin (=fatal error).

    Plugin Author Marcus

    @netweblogic

    much easier to keep on top of it when we get email notifications 🙂

    if you contact me on http://netweblogic.com/contact/ and provide ftp details and admin user credentials I’ll have a look and see

    also, please confirm that you’re having this issue when activating, and/or not on other occassions.

    Yes I was having the problem when trying to activate it. No other plugins were installed. I’ll try breaking that line up and see what happens

    Tried it and still getting the same error.

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/kevin74/public_html/phoenixsportclub/dev/wp-content/plugins/events-manager/ajax.php on line 8

    Plugin Author Marcus

    @netweblogic

    I can’t duplicate this issue, I need a site I can test this on where the problem shows. If you can contact me on the link above I’ll have look.

    So from what it looks like the server didn’t have a specific version of php configured. It was enabled but set on a system default setting, even though the cpanel was showing it running php 5.2. I enabled php 5 and everything seems to be working now.

    Only thing is now I’m having an issue with displaying a list of events. It keeps defaulting to 5 even when set it to display 1 event. Is this a known issue?

Viewing 15 replies - 1 through 15 (of 36 total)
  • The topic ‘[Plugin: Events Manager] Getting a Parse Error when trying to activate plugin.’ is closed to new replies.