Results 1 to 10 of 10

Thread: Error: Unexpected character in input: ''' (ASCII=39) state=1

  1. #1
    mipapage is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Spain
    Posts
    90

    Exclamation Parse error: Unexpected character in input: ''' (ASCII=39) state=1

    Hey all,

    We had this error creep up last week when we upgraded to 5.0.0c, so we rolled back to 5.0.0b for the time being.

    Now though, it seems we're having it with 5.0.0b. Any ideas what it could be?


    Warning: Unexpected character in input: ''' (ASCII=39) state=1 in
    /sugar/cache/modules/Opportunities/Opportunityvardefs.php on line 1177

    Parse error: syntax error, unexpected $end, expecting ')' in
    /sugar/cache/modules/Opportunities/Opportunityvardefs.php on line 1177


    It happens with various modules, always the cache files. I'd guess that the cache files aren't building and being saved in an incomplete state, could this be it?
    Last edited by mipapage; 2008-04-30 at 02:18 PM.
    Sugar 6.XX Pro Onsite
    Apache 2.0, PHP 5.25, mySQL 5.0
    64-bit OS, Red-Hat, 16G ram, dual quad core.
    xcache op-code cache, mod_deflate, memory_limit = 360M, max_execution_time = 120
    > 40 users, ~500,000 leads, same #opps, 1 account, 1 contact, 2M calls.

  2. #2
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: Error: Unexpected character in input: ''' (ASCII=39) state=1

    Sounds like a file corruption.
    Have you gone to the Admin-> Repair and cleared the cache and rebuilt the connections? If not try that first.

    If this error shows in the same file or files. Then I would try editing them and looking for something weird like a control character.

    Hope this helps,

    Paris

  3. #3
    mipapage is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Spain
    Posts
    90

    Default Re: Error: Unexpected character in input: ''' (ASCII=39) state=1

    Thanks for the reply, Paris.

    I have cleared the cache and done repairs, unfortunately that didn't help.

    I have also downloaded the files in question after seeing one of these errors reported and not found any issues. Quite strange, really.
    Sugar 6.XX Pro Onsite
    Apache 2.0, PHP 5.25, mySQL 5.0
    64-bit OS, Red-Hat, 16G ram, dual quad core.
    xcache op-code cache, mod_deflate, memory_limit = 360M, max_execution_time = 120
    > 40 users, ~500,000 leads, same #opps, 1 account, 1 contact, 2M calls.

  4. #4
    fjhuerte is offline Senior Member
    Join Date
    Jun 2008
    Posts
    38

    Default Re: Error: Unexpected character in input: ''' (ASCII=39) state=1

    i have experienced this error too.
    after rebuilding the codes, this unexpected character input error occurs
    why is this writing garbage files? what is causing these?

    fjhuerte
    Last edited by fjhuerte; 2008-07-21 at 02:29 AM.

  5. #5
    fjhuerte is offline Senior Member
    Join Date
    Jun 2008
    Posts
    38

    Default Re: Error: Unexpected character in input: ''' (ASCII=39) state=1

    I have solved my prob..
    it was caused by permissions and the vss files included in the folders.


    fjhuerte

  6. #6
    SpacemanSpiff is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    19

    Default Re: Error: Unexpected character in input: ''' (ASCII=39) state=1

    OK, I admit, I might be being a bit stupid here... but what are VSS files?????

  7. #7
    chad.hutchins is offline Sugar Community Member
    Join Date
    May 2007
    Location
    Texas
    Posts
    141

    Default Re: Error: Unexpected character in input: ''' (ASCII=39) state=1

    I am having the same problems and they pop up in multiple modules. They occur in the Accounts and Contacts most often for us.

    Fortunately, we can just tell our users to refresh the the page and it usually resolves it temporarily, but it is starting to annoy our users.

    Just wanted to give this a bump...

  8. #8
    chad.hutchins is offline Sugar Community Member
    Join Date
    May 2007
    Location
    Texas
    Posts
    141

    Default Re: Error: Unexpected character in input: ''' (ASCII=39) state=1

    Does anyone know what triggers Sugar to regenerate the cached vardef pages?

    Is it possible that one user is on Sugar and somehow they trigger Sugar to regenerate a cached vardef file, then when another user tries to access that a page that requires that cached vardef file the cached vardef file hasn't completed regenerating itself, so it appears to have syntax errors. Is this even possible? I'm just trying to throw out anything I can think of.

    Anyone else?

  9. #9
    chad.hutchins is offline Sugar Community Member
    Join Date
    May 2007
    Location
    Texas
    Posts
    141

    Thumbs up Re: Error: Unexpected character in input: ''' (ASCII=39) state=1

    I can now repeat the problem. I am sure there are multiple ways, but here is the way I found to repeat it:

    Have two browser tabs or windows open. Point one to the Reports module and the other to any given account page. Create a custom report that looks at the Accounts module. Run the report then select 'Export'. (I do this because it is a function that takes several seconds to run) While the report is still running, open up /custom/modules/accounts/tpls/DetailViewHeader.php and make any sort of change in the code and save it. While the report is still running, refresh the tab/window that is showing the account. Immediately after refreshing that page, the report will break with our infamous error.

    Like I said, there are multiple ways to cause the bug: anything that causes the cache file of a module to be rebuilt at the same time another user is trying to access a page that involves the same module will cause the bug to occur. It seems that the user is allowed access to an incomplete cache file (one that is caught in the middle of being rebuilt), so it throws the syntax error.

    SOLUTIONS: We need to find a way to block (as in pause the process until the cache file is completely rebuilt) a user from accessing a page that requires cache files that are in the middle of being rebuilt.

    Can anyone else repeat this?

    Sugar, is it possible that this is actually the root cause of the problem?
    Last edited by chad.hutchins; 2008-08-05 at 02:38 PM.

  10. #10
    chad.hutchins is offline Sugar Community Member
    Join Date
    May 2007
    Location
    Texas
    Posts
    141

    Talking Re: Error: Unexpected character in input: ''' (ASCII=39) state=1

    Turning off Developer mode has seemed to solve this problem!

    Thanks to mipapage.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •