Jump to:

4951 Posts in 14058 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » SS 2.4b - Unexpected character in input: '\\' (ASCII=92) state=1 (SSViewer)

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: 2612 Views
  • Cristian
    Avatar
    Community Member
    8 Posts

    SS 2.4b - Unexpected character in input: '\\' (ASCII=92) state=1 (SSViewer) Link to this post

    Hi everyone,

    I desperately need some help here..

    I install SS without any trouble, but when I try to get into the admin I got an error:

    Here is the error in the log:
    PHP Warning: Unexpected character in input: '\\' (ASCII=92) state=1 in /var/www/vhosts/ .. /httpdocs/sapphire/core/SSViewer.php on line 390

    But in the browser I got this error: (I’m pretty sure it’s not the true error but more something related to the hosting and the getTemplateContent in SSViewer.php.

    I have also check the phpinfo and everything look fine, the magic quote seem fine.
    magic_quotes_gpc   On   On
    magic_quotes_runtime   Off   Off
    magic_quotes_sybase   Off   Off

    The site is running on PHP 5.2.12 and on the apache2 module.

    Thanks for your help!

  • Pigeon
    Avatar
    Community Member
    243 Posts

    Re: SS 2.4b - Unexpected character in input: '\\' (ASCII=92) state=1 (SSViewer) Link to this post

    Hmm,

    This is a long shot, but i have only ever experienced that php error when there has been an incomplete upload of a file. Perhaps try re-uploading it?

  • Cristian
    Avatar
    Community Member
    8 Posts

    Re: SS 2.4b - Unexpected character in input: '\\' (ASCII=92) state=1 (SSViewer) Link to this post

    Thanks for your help but I figure out what was not working..

    The server config was not right, the /tmp folder from (sys_get_temp_dir()) was not visible from the php code and was not writable.

    And the hosting compagny was saying everything is fine.. but they turn off the php safe mode and then everything works!

    so I can exactly tell what they did on their side but for sure it was related to the fact that the tmp folder was not writable.

    -Cris

  • Cristian
    Avatar
    Community Member
    8 Posts

    Re: SS 2.4b - Unexpected character in input: '\\' (ASCII=92) state=1 (SSViewer) Link to this post

    Just a follow up in case someone got a similar bug with 2.4

    it was 2 bug

    1- the hosting got some problem on their config with the plesk manager, it was managing the persmission of the tmp folder wrong.
    so the /tmp folder was not writable by the webserver.

    also safe mode was on.

    2- I found a bug in my code, I got a db field enum but forgot an ' at the end of my string.

    I feel so good now that I found the problem! hope it can help someone else!

    -Cristian

  • yoyo23
    Avatar
    Community Member
    1 Post

    Re: SS 2.4b - Unexpected character in input: '\\' (ASCII=92) state=1 (SSViewer) Link to this post

    Had the same Problem after I uploaded my Page to a hosting provider.

    Problem was that "asp_tags" was turned on in the php.ini file.

    Chris

    2612 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.