Page 1 of 5 12345 LastLast
Results 1 to 10 of 44

Thread: unexpected $end in include/utils/mvc_utils.php(48) : eval()'d code on line 1

  1. #1
    anjanesh is offline Member
    Join Date
    Feb 2009
    Posts
    13

    Default unexpected $end in include/utils/mvc_utils.php(48) : eval()'d code on line 1

    My host moved to a new server and now all of a sudden Sugar CRM isnt running.
    (The www data & MySQL data seem to have migrated without differences)

    I get this
    Code:
    Parse error: syntax error, unexpected $end in /home/username/domains/domain.com/public_html/include/utils/mvc_utils.php(48) : eval()'d code on line 1
    
    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/username/domains/domain.com/public_html/include/utils/mvc_utils.php(48) : eval()'d code:1) in /home/username/domains/domain.com/public_html/include/MVC/SugarApplication.php on line 384
    
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/username/domains/domain.com/public_html/include/utils/mvc_utils.php(48) : eval()'d code:1) in /home/username/domains/domain.com/public_html/include/MVC/SugarApplication.php on line 384
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/username/domains/domain.com/public_html/include/utils/mvc_utils.php(48) : eval()'d code:1) in /home/username/domains/domain.com/public_html/include/utils.php on line 2498
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/username/domains/domain.com/public_html/include/utils/mvc_utils.php(48) : eval()'d code:1) in /home/username/domains/domain.com/public_html/include/MVC/SugarApplication.php on line 125
    I tried a test-reinstall
    http://domain.com/temp/sugar/install.php
    Code:
    Parse error: syntax error, unexpected $end in /home/username/domains/domain.com/public_html/temp/sugar/include/utils/mvc_utils.php(48) : eval()'d code on line 1
    
    Parse error: syntax error, unexpected $end in /home/username/domains/domain.com/public_html/temp/sugar/include/utils/mvc_utils.php(48) : eval()'d code on line 1
    Sugar CRM was running flawlessly so far.

    Any idea what went wrong ?

    Linux | Apache 2.0 | PHP 5.2.9 | MySQL 5.0.67 | SugarCE-Full-5.2.0a
    Last edited by anjanesh; 2009-02-28 at 06:33 PM.

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: unexpected $end in include/utils/mvc_utils.php(48) : eval()'d code on line 1

    I would simply rename your sugar directory to something else, unzip a new full sugarcrm install into your production directory and copy over the custom/ directory and the config.php file from your old files and try that. Most likely something was lissed or currupted during the copy.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    anjanesh is offline Member
    Join Date
    Feb 2009
    Posts
    13

    Default Re: unexpected $end in include/utils/mvc_utils.php(48) : eval()'d code on line 1

    I would simply rename your sugar directory to something else, unzip a new full sugarcrm install into your production directory and copy over the custom/ directory and the config.php file from your old files and try that. Most likely something was lissed or currupted during the copy.
    - Tried that already. Same errors.
    None of the data is corrupt.

    I even installed a new Sugar with a fresh database which worked showing the unexpected $end on every line.
    But after installing, it shows the same errors in the login page (default home page) !
    Code:
    Parse error: syntax error, unexpected $end in /home/username/domains/domain.com/public_html/include/utils/mvc_utils.php(48) : eval()'d code on line 1
    
    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/username/domains/domain.com/public_html/include/utils/mvc_utils.php(48) : eval()'d code:1) in /home/username/domains/domain.com/public_html/include/MVC/SugarApplication.php on line 384
    
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/username/domains/domain.com/public_html/include/utils/mvc_utils.php(48) : eval()'d code:1) in /home/username/domains/domain.com/public_html/include/MVC/SugarApplication.php on line 384
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/username/domains/domain.com/public_html/include/utils/mvc_utils.php(48) : eval()'d code:1) in /home/username/domains/domain.com/public_html/include/utils.php on line 2498
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/username/domains/domain.com/public_html/include/utils/mvc_utils.php(48) : eval()'d code:1) in /home/username/domains/domain.com/public_html/include/MVC/SugarApplication.php on line 125
    This definitely has something to do with the server setup - even though the new sugar installation passed all tests.

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: unexpected $end in include/utils/mvc_utils.php(48) : eval()'d code on line 1

    OK, If your files are not currupt somehow then the only other thing that might cause that error that I can think of is the SHORT_OPEN_TAG directive in your PHP.INI file. Try setting it to 'on' like this

    short_open_tag = On

    I doubt thats it but I can't think of anything else that I have ever seen cause that.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    anjanesh is offline Member
    Join Date
    Feb 2009
    Posts
    13

    Default Re: unexpected $end in include/utils/mvc_utils.php(48) : eval()'d code on line 1

    short_open_tag is On. I checked with the sysadmin of the host - he said
    I did a side-by-side comparison of our PHP configurations and they are exactly identical. Is it possible that SugarCRM is not yet compatible with PHP 5.2.9? We upgraded <new-server-name> to 5.2.9 while <old-server-name> was 5.2.8.
    Is there any reason why Sugar wont run on PHP 5.2.9 ?
    http://www.sugarcrm.com/crm/products...platforms.html

  6. #6
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: unexpected $end in include/utils/mvc_utils.php(48) : eval()'d code on line 1

    It's possible but unlikley. At least for this problem. I could test that late rthis weekend.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  7. #7
    anjanesh is offline Member
    Join Date
    Feb 2009
    Posts
    13

    Default Re: unexpected $end in include/utils/mvc_utils.php(48) : eval()'d code on line 1

    I also tested Sugar on my Windows machine : Windows XP SP2 32-bit | Apache 2.2.11 | PHP 5.3.0 beta 1 | MySQL 5.1.30.

    Downloaded sugarforge.org/frs/download.php/5087/SugarCE-5.2.0a.zip

    http://localhost/sugar/install.php
    It works - but on all pages I get right on top :
    Parse error: parse error in D:\htdocs\sugar\include\utils\mvc_utils.php(48) : eval()'d code on line 1

    Once the setup is complete - on the Perform Page :
    Code:
    Creating Sugar configuration file (config.php)
    
    Creating Sugar application tables, audit tables and relationship metadata
    ................................................
    
    Creating default Sugar data
    
         Creating default users...   done
         Creating default scheduler jobs...   
    Deprecated: Function ereg() is deprecated in D:\htdocs\sugar\include\TimeDate.php on line 308
    
    Deprecated: Function ereg() is deprecated in D:\htdocs\sugar\include\TimeDate.php on line 308
    
    Deprecated: Function ereg() is deprecated in D:\htdocs\sugar\include\TimeDate.php on line 308
    
    Deprecated: Function ereg() is deprecated in D:\htdocs\sugar\include\TimeDate.php on line 308
    
    Deprecated: Function ereg() is deprecated in D:\htdocs\sugar\include\TimeDate.php on line 308
    
    Deprecated: Function ereg() is deprecated in D:\htdocs\sugar\include\TimeDate.php on line 308
    
    Deprecated: Function ereg() is deprecated in D:\htdocs\sugar\include\TimeDate.php on line 308
    
    Deprecated: Function ereg() is deprecated in D:\htdocs\sugar\include\TimeDate.php on line 308
    
    Deprecated: Function ereg() is deprecated in D:\htdocs\sugar\include\TimeDate.php on line 308
    
    Deprecated: Function ereg() is deprecated in D:\htdocs\sugar\include\TimeDate.php on line 308
    
    Deprecated: Function ereg() is deprecated in D:\htdocs\sugar\include\TimeDate.php on line 308
    
    Deprecated: Function ereg() is deprecated in D:\htdocs\sugar\include\TimeDate.php on line 308
    
    Deprecated: Function ereg() is deprecated in D:\htdocs\sugar\include\TimeDate.php on line 308
    done
    
    The setup of Sugar 5.2.0a is now complete!
    Total time: 8.7221989631653 seconds.
    Approximate memory used: 20400216 bytes.
    Even though the parse error in mvc_utils.php still shows up on all the pages, Sugar works after installation without session issues.

  8. #8
    anjanesh is offline Member
    Join Date
    Feb 2009
    Posts
    13

    Default Re: unexpected $end in include/utils/mvc_utils.php(48) : eval()'d code on line 1

    Apparently this is all because of the parse error in sugar\include\utils\mvc_utils.php
    So I simply replaced eval($msi10) with @eval($msi10) and its all working. session_start failed due to the output of the parse error. Now its working everywhere.

  9. #9
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: unexpected $end in include/utils/mvc_utils.php(48) : eval()'d code on line 1

    I can't help but notice that you're running PHP with deprecated messages on. This is an extremely high level of error reporting, with an application that just recently fixes most of its NOTICE messages. Maybe the problem has something to do with that.

    Since you're ignoring errors with '@', I assume you should be willing to live with Sugar running on less then DEPRECATED.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  10. #10
    anjanesh is offline Member
    Join Date
    Feb 2009
    Posts
    13

    Default Re: unexpected $end in include/utils/mvc_utils.php(48) : eval()'d code on line 1

    Since you're ignoring errors with '@', I assume you should be willing to live with Sugar running on less then DEPRECATED.
    I had to get the online sugar running asap.

Page 1 of 5 12345 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. mvc_utils.php crypted code ?
    By lougaou in forum Developer Help
    Replies: 6
    Last Post: 2009-09-17, 08:19 PM
  2. Replies: 0
    Last Post: 2007-08-29, 10:32 AM
  3. Replies: 3
    Last Post: 2006-10-04, 06:28 PM
  4. Error En /include/utils.php
    By perweb in forum Espaņol
    Replies: 0
    Last Post: 2006-01-23, 11:06 PM
  5. Replies: 5
    Last Post: 2006-01-23, 05:14 AM

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
  •