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

T_VAR or } ManifestBuilder.php on line 18


Reply


2 Posts   1127 Views

Avatar
mpmx

Community Member, 1 Post

22 January 2008 at 12:16am

Hi,

We setup a Silverstripe site 6 months ago and it had been working good, thanks. Now, without any changes the site is unavailable and displays the following message:

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/site/public_html/sapphire/core/ManifestBuilder.php on line 18

The site is using PHP 4.4.7. Searching the forum I see comments about PHP5.2. We installed on 4.4.7 and haven't changed the server or Silverstripe install. How can we get it working again...?

Already present in .htaccess
AddHandler application/x-httpd-php5 .php

Thanks

Avatar
dio5

Community Member, 501 Posts

22 January 2008 at 4:11am

So, you must have php5 too, because SS doesn't work in php4 at all AFAIK.

(You're using AddHandler application/x-httpd-php5 .php to switch on PHP5).

I don't think I'm of any use for your specific problem, but it might be useful to mention your SS-version here.

Took a look at my ManifestBuilder.php file (latest version) and I'm not having anything on line 18 at all.

I would also recommend that you'd upgrade if your SS installation is 6 months old. There have been tons of improvements now.