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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Parse error: parse error, unexpected T_STATIC ...


Go to End


4 Posts   2176 Views

Avatar
Tkop

28 Posts

1 August 2007 at 10:36am

Edited: 01/08/2007 10:37am

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

Forum Moderator, 922 Posts

1 August 2007 at 1:59pm

Are you using PHP5 on this server?

Cheers,
Sean

Avatar
Tkop

28 Posts

1 August 2007 at 3:36pm

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

Forum Moderator, 922 Posts

1 August 2007 at 5:32pm

Great to hear. :-)

Cheers,
Sean