Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » .htaccess error?

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

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

Page: 1
Go to End
Author Topic: 1172 Views
  • Decisive Flow
    Community Member
    73 Posts

    .htaccess error? Link to this post

    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

  • rbarreiros
    Community Member
    21 Posts

    Re: .htaccess error? Link to this post

    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,

  • Sigurd
    Forum Moderator
    628 Posts

    Re: .htaccess error? Link to this post

    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.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.