17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1060 Views |
-
.htaccess error?

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/decisiveflow.gooduse.co.nz/html/sapphire/core/ManifestBuilder.php on line 18
Any ideas?
the iste is at decisiveflow.gooduse.co.nnz
-
Re: .htaccess error?

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,
-
Re: .htaccess error?

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.
| 1060 Views | ||
|
Page:
1
|
Go to Top |



