Jump to:

4873 Posts in 7242 Topics by 1471 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Install problems

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 1346 Views
  • EasyLivin
    Avatar
    Community Member
    1 Post

    Install problems Link to this post

    When I try to install SilverStrpe I get this message "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING in /kunden/159279_97618/webseiten/micro/sapphire/core/SSViewer.php on line 304" and inststallation stops...

    I'm using Silverstripe version 2.4

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Install problems Link to this post

    Hi there, which server setup are you using including PHP
    version?

  • abyss
    Avatar
    Community Member
    5 Posts

    Re: Install problems Link to this post

    Hi,

    I ran into the same issue during installation using a clean Silverstrip 2.4.1 installation package on a Server hosted at Domainfactory.

    Some of my settings:
    - PHP 5.3.1 (Server API CGI/FastCGI on a Linux OS)
    - safe_mode: off, asp_tags: off

    Error message:
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING in sapphire/core/SSViewer.php on line 321

    What worked for me:
    I wrapped a multiline comment around the single line comments located around code line 321:

    // $content = "<!-- getTemplateContent() :: identifier: $identifier -->". $content;
    // Adds an i18n namespace to all <% _t(...) %> calls without an existing one
    // to avoid confusion when using the include in different contexts.
    // Entities without a namespace are deprecated, but widely used.

    this code finally worked (think it´s the closing %> in the comment which cause trouble ...

    // $content = "<!-- getTemplateContent() :: identifier: $identifier -->". $content;
    /*
    // Adds an i18n namespace to all <% _t(...) %> calls without an existing one
    // to avoid confusion when using the include in different contexts.
    // Entities without a namespace are deprecated, but widely used.
    */

    If this is really the issue, this should be fixed in SVN as well.

    Cheers

    P.S.: Forgot to mention that a previous installation on my local Windows 7 (64bit) computer with XAMPP 1.7.3 worked without any issues (works with the original and modified SSViewer.php file)

  • abyss
    Avatar
    Community Member
    5 Posts

    Re: Install problems Link to this post

    Among others, this bug is fixed in SilverStripe v2.4.2

    1346 Views
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.