Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

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

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

Parse error: parse error, unexpected T_STATIC ...


Reply

4 Posts   1842 Views

Avatar
Tkop

1 August 2007 at 10:36am (Last edited: 1 August 2007 10:37am), 28 Posts

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

Avatar
Sean

1 August 2007 at 1:59pm Forum Moderator, 921 Posts

Are you using PHP5 on this server?

Cheers,
Sean

Avatar
Tkop

1 August 2007 at 3:36pm 28 Posts

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.

Avatar
Sean

1 August 2007 at 5:32pm Forum Moderator, 921 Posts

Great to hear. :-)

Cheers,
Sean