• Just installed p2 on my blog and am getting this whenever I try to get to my blog:

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /nfs/c01/h09/mnt/10381/domains/domainname.com/html/blog/wp-content/themes/p2/functions.php on line 50

    Here’s what line 50 looks like:

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

    Anybody else get this error and resolve it?

Viewing 8 replies - 1 through 8 (of 8 total)
  • First thing to do is reupload a fresh copy of the theme; the first one didn’t completely upload.

    Thread Starter spazowham

    (@spazowham)

    I should mention that reuploading the theme was the first thing I did.

    A fresh copy from the authors site or the theme repository?

    The theme may not be compatible with your version of wordpress. What’s the theme support page say?

    Thread Starter spazowham

    (@spazowham)

    3.0.1 is supported.

    Looks like there’s a more serious problem with my install – undergoing this process now: https://codex.www.ads-software.com/Restoring_Your_Database_From_Backup

    Thanks for staying on this thread – your help is appreciated.

    I’ve got the same situation.
    I reverted back but am hoping someone can help me fix the functions.php

    When I update p2 my site crashes and I get this error:
    I’ve tried it automatically and manually, same error message:

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in

    ***\wp-content\themes\p2\functions.php on line 50

    The T_OBJECT_OPERATOR error is most likely a PHP4 compatibility issue. I’d strongly suggest updating to PHP5 since WordPress will be dropping support for PHP4 in the coming year (more info here).

    In the meantime if anyone wants to patch this and other PHP5 object notations in P2 I’m sure people unable to switch from PHP4 will be grateful.

    inspiraven

    (@inspiraven)

    ?? Yeah, I’m stuck with PHP4. I too would love to see a patch for compatibility

    Lance Willett

    (@lancewillett)

    @inspiraven I’d strongly suggest upgrading to PHP5 since WordPress will soon be dropping support for PHP4 (see my reply above).

    To be clear: if someone is willing to patch P2 for backwards compatibility we’ll be willing to update the theme. Otherwise we don’t have plans to add the support as it’s in everyone’s best interest to upgrade to the latest stable version of PHP (5.2.x as of today).

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘T Object Operator’ is closed to new replies.