• EricWordPress

    (@ericwordpress)


    Hi.

    I’m a veteran WordPress installer (and user), with well over 100 installations over the last 5 years.

    I tried installing and activating P2, as I would do any theme, and I immediately get the following error message:

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in breakingnews.pro/wp-content/themes/p2/functions.php on line 56

    I tried uninstalling and re-installing twice. I also tried downloading the installer .ZIP file again, in case I had a corrupted file. No matter what I try, I get the same error message.

    I’m running WordPress 3.1.1

    This theme looks fantastic and absolutely perfect for my need. Any help you can provide would be greatly appreciated! Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • mgiulio

    (@giuliom)

    Hi, are you running on PHP 4? See these posts:

    If you can’t switch to PHP5 a quick patch could be(not tested) the replacement of the offending line with the following two lines:

    $userdata = get_userdata( $values['id'] );
    $username = $userdata->user_login;

    But I guess you will get some other similar errors.

    Thread Starter EricWordPress

    (@ericwordpress)

    Hi Giuliom. Thank you for your reply. I really appreciate your thoughts.

    I am running PHP 5.2.14

    I have been combing support forums for a solution. No luck yet.

    Thanks, again, for your help. Feel free to chime in with any other ideas to try.

    — Eric

    K-Fella

    (@k-fella)

    What does line 56 read?

    mgiulio

    (@giuliom)

    @k-fella:
    $username = get_userdata( $values['id'] )->user_login;

    mgiulio

    (@giuliom)

    I tested the P2 activation on a WP 3.1/PHP 5.3.3: no problems.

    Thread Starter EricWordPress

    (@ericwordpress)

    Hi K-Fella and Giuliom.

    Other users are reporting the very same problem, as noted here:

    http://wordpress.org/support/topic/parse-error-syntax-error-with-latest-version-123?replies=4

    Same P2 (1.2.3) and same PHP (5.2.14).

    It seems user “atkima” figured out the solution, but didn’t report what it was. And I have been unable to track him down for an answer.

    P2 would be absolutely perfect for my needs. I REALLY appreciate any and all help. Thanks so much!

    — Eric

    I’m having what may be a related problem. I just updated to 3.1.2 and updated several plugins. Now I cannot even get to the webpage. When I enter the URL, I get this error message:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /nfs/c07/h01/mnt/102165/domains/inmozartsfootsteps.com/html/wp-content/plugins/wp-recaptcha/recaptcha.php on line 8

    The site is inmozartsfootsteps.com

    I would really appreciate someone’s help. This site is for a business I run by myself and right now, I’m dead in the water!

    Thanks
    David

    i am having the same problem… i downloaded a plugin and then i tried to put the code in my theme functions and when i updated this pop up:

    Parse error: syntax error, unexpected ‘<‘ in /home/freedomf/public_html/wp-content/themes/tycoon/functions.php on line 9

    ————–

    i totally new to wordpress and have no idea how to fix this or any idea what would cause this…

    i cant even login to my admin page…

    Please help!

    Thank you
    Juan B.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal activation error — parse error: syntax error — please help!’ is closed to new replies.