Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Parse error: parse error, unexpected T_STATIC ...

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1823 Views
  • Tkop
    Avatar
    28 Posts

    Parse error: parse error, unexpected T_STATIC ... Link to this post

    I'm moving my silverstripe site from my local test server to the hosting server (godaddy) and am getting the following error. Does anyone know what it is? I think I saw some topic that looked liked it but can't find it any more?

    Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/g/l/a/gla1morris/html/glamorris/sapphire/core/ManifestBuilder.php on line 18

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Parse error: parse error, unexpected T_STATIC ... Link to this post

    Are you using PHP5 on this server?

    Cheers,
    Sean

  • Tkop
    Avatar
    28 Posts

    Re: Parse error: parse error, unexpected T_STATIC ... Link to this post

    No the site was running php4.3.11.
    That was the problem. I knew I had to be on php5 but I
    was waiting for the hosting company to make the change
    or tell me how to make the change.

    For other people. Do a search on goDaddy, one of the
    posts describes the change needed to go to
    php5 (in the .htaccess file).

    Problem resolved.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Parse error: parse error, unexpected T_STATIC ... Link to this post

    Great to hear.

    Cheers,
    Sean

    1823 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.