Jump to:

23358 Posts in 17875 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » warning: Unexpected character in input?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1431 Views
  • Trenatos
    Avatar
    Community Member
    15 Posts

    warning: Unexpected character in input? Link to this post

    This is weird.. But sometimes I get this error when I try to open my website: "warning: Unexpected character in input: ''' ASCII=39 state=1 in tmpsilverstripe-cache-hermes-bosweb-web222-b2224-ipg.marcusfernstromcommanifest-main on line 5315"

    It seems to happen RANDOMLY, which causes me even more confusion. Hit reload and it works fine O_o
    Anyone have an idea what is going on..?

    I'm sorry if similar questions has been asked before, but the search function for the forum is really horrible, so hard to adjust searches..

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: warning: Unexpected character in input? Link to this post

    Hi Trenatos,

    I honestly don't know, but Imight suspect...
    a)data after a closing php tag, personally I don't close my php tags in (?>)
    b)somehow, somewhere you have a dodgy character in a file... I use TextPad alot and if I accidentally hold Alt oir Ctrl with a keypress it inserts a non-ASCII character into the text and saves it.

    hope this helps

  • Trenatos
    Avatar
    Community Member
    15 Posts

    Re: warning: Unexpected character in input? Link to this post

    Thing is that it seems to happen randomly.
    If it happened every time I opened a page I would suspect that as well, but the random aspect makes me very confused..
    I'll see if it continues, I might wipe and install a fresh copy..

  • frankmullenger
    Avatar
    Forum Moderator
    51 Posts

    Re: warning: Unexpected character in input? Link to this post

    I had a similar error, it was due to a parse error in one of my PHP files (http://www.php.net/manual/en/function.token-get-all.php#79502). Basically I had an enum with: 'Something' => "Enum('Onething, Anotherthing', 'Onething)"

    And I was missing an ' before the last parenthesis.

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