Results 1 to 5 of 5

Thread: Upgraded PHP, Unexpected character in input

  1. #1
    JustinK101 is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    78

    Default Upgraded PHP, Unexpected character in input

    We just upgrade PHP from 5.1.6 to 5.2.11. We are now getting the following PHP error at the top of sugar:

    Warning: Unexpected character in input: '' (ASCII=2) state=1 in /var/www/html/crm/include/utils/user_utils.php(86) : eval()'d code on line 1

    Warning: Unexpected character in input: ' in /var/www/html/crm/include/utils/user_utils.php(86) : eval()'d code on line 1

    We are running a very old version of Sugar (Version 4.5.0h (Build 1239), but cannot upgrade due to custom integrations. Any ideas how to fix this error?

  2. #2
    mapm's Avatar
    mapm is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Portugal
    Posts
    239

    Default Re: Upgraded PHP, Unexpected character in input

    I had the same problem and I commented that line of code, it worked for me in 4.5.1.d
    --
    Mário Pereira Martins

    Javali - Administração e Desenvolvimento de Sistemas Informáticos, Lda.
    Madan Parque Edifício VI Campus da FCT/UNL
    Quinta da Torre 2829-516 Caparica Portugal
    Phone: +351 212949666 Fax: +351 212948313
    http://www.javali.pt

  3. #3
    JustinK101 is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    78

    Default Re: Upgraded PHP, Unexpected character in input

    LOL

    Ok, any idea what the code does?

  4. #4
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Upgraded PHP, Unexpected character in input

    You really should re-evaluate this matter.

    That version of PHP is not supported by version 4.5, hence the error. See here for the official list of supported versions:

    http://www.sugarcrm.com/crm/products...tforms/45.html

    While making the adjustment to that file might get you past the current error, it may also be the opening to a pandora's box full of problems.

    Some folks on the forums like to advocate fixes along those lines, but I generally discourage people from that approach because in reality, nobody knows what other issues may come up afterwards. The only real solution, in my opinion, is to use a supported version of the platform, unless of course you don't mind exposing yourself to other potential problems which may or may not have a solution.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  5. #5
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Upgraded PHP, Unexpected character in input

    Hi,

    That PHP version is not supported by Sugar 4.5.x unfortunately. The codes check license issues and logic for that depends on a PHP version.

    You need to downgrade the PHP.
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unexpected session timeout
    By lvangool in forum Help
    Replies: 4
    Last Post: 2011-11-30, 07:33 PM
  2. Unexpected character in input.
    By Quacktop in forum Help
    Replies: 7
    Last Post: 2009-06-24, 09:01 AM
  3. Unexpected character in input warning
    By rashid in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2009-06-02, 07:45 PM
  4. MVC_utils & unexpected $end
    By gocasco in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2009-03-28, 03:16 PM
  5. Replies: 9
    Last Post: 2008-08-05, 05:27 PM

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
  •