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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

.htaccess error?

Go to End

3 Posts   1396 Views

Decisive Flow

Community Member, 73 Posts

26 November 2007 at 12:22pm

I'm transferring a silverstripe from my local MAMP server to our web server, initially it didn't work then we realised that's because we needed to add the .htaccess file which somehow didn't get uploaded. But when I add that, I get this error:

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /mnt/gs02/herd03/29059/domains/ on line 18

Any ideas?

the iste is at


Community Member, 21 Posts

26 November 2007 at 2:01pm

Hello Natalie,

I'm guessing (please note, guessing) that it has something to do with the creation of the manifest file on the cache, don't think it's directly related to .htaccess at all.

Judging by the path you install is, i'm also guessing it's in a server with domain reselling and probably has a software managin domains (stuff like cPanel, Plesk, etc), so, my first course of action would be to try to figure out where SS is trying to write the cache (which path) and see if it has permissions to do so.

Another thing it can be, (happens) is due to the upload the file got either corrupted (ManifestBuilder.php) or changed due to the transfer type (binary/text), another thing i would do, which would be the first thing to do actually, would be to see the file contents and compare it with your local version.

I've just checked my ManifestBuilder.php and i've noticed a constant called TEMP_FOLDER which is set with getTempFolder() from Core.php
The function calls several functions which might be blocked due to the use of safe_mode in PHP (which is most likely on, being a Hosting server) worth a check also.

Best regards,


Forum Moderator, 628 Posts

4 December 2007 at 2:25pm

Certainly nothing to do with .htaccess

What version of PHP5 is this server running? If it is earlier than PHP 5.2 then that could be the cause.