Results 1 to 5 of 5

Thread: Help! Parse error: syntax error, unexpected $end

  1. #1
    olivia.alves is offline Junior Member
    Join Date
    May 2009
    Posts
    1

    Default Help! Parse error: syntax error, unexpected $end

    Hello.

    Yesterday we have a server migration where now we have Linux with PHP 5.2.9. We have SugarOpenSource Version 4.5.1 (Build 1197).

    Since this migration, we are having a hard time to log into the application. the following errors come up all the time:

    Parse error: syntax error, unexpected $end in /home/storage/e/9d/df/alejandro-info/public_html/sugarcrm/include/utils/user_utils.php(90) : eval()'d code on line 1

    AND

    Fatal error: Call to undefined function authuserstatus() in /home/storage/e/9d/df/alejandro-info/public_html/sugarcrm/include/utils.php on line 2739

    I have done everything i could find here.. can anyone help me??

    Thanks!!

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

    Default Re: Help! Parse error: syntax error, unexpected $end

    PHP 5.2.9 is not compatible with your version of Sugar.

    You need to either upgrade to Sugar 5.2e or downgrade your version of PHP
    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)
    ______________________________________________

  3. #3
    markkelly is offline Member
    Join Date
    Feb 2007
    Posts
    7

    Default Re: Help! Parse error: syntax error, unexpected $end

    I downloaded SUgarCrm 4.5.1 and uploaded it. When I log into SugarCrm and click enter, I get the following error message:

    Parse error: syntax error, unexpected $end in /home/aden/public_html/SugarCrm/SugarOS-Full-4.5.1/include/utils/user_utils.php(90) : eval()'d code on line 1

    Fatal error: Call to undefined function authuserstatus() in /home/aden/public_html/SugarCrm/SugarOS-Full-4.5.1/include/utils.php on line 2739

    I got some errors and my hosting provider sent me this email:

    "According to my reading on the sugarcrm forums, 4.5.1 isn't compatible with php 5.2.9 and newer (their response to someone posting with the same error I see on your installation). I'm also seeing the same error despite switching between php4 and php5 as default, which leads me to believe that perhaps they may require a version which isn't supported by cpanel."

    What can I instruct my hosting provider to do to make SugarCrm 4.5.1 work with php5, or is it another problem?

    I also opened up my sql file (opened in notepad) that I need access to and here is the first few lines that my shed some light on my problem...here it is:
    -- phpMyAdmin SQL Dump
    -- version 2.11.9.5
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generation Time: Nov 17, 2009 at 03:50 AM
    -- Server version: 5.1.30
    -- PHP Version: 5.2.6

    SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

    /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
    /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
    /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
    /*!40101 SET NAMES utf8 */;
    --
    -- Database: `eagleade_aden1CRM`



    Thanks!

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

    Default Re: Help! Parse error: syntax error, unexpected $end

    You need to ask them if they support older versions of PHP, preferably something in the 4.x range, and if so, how do you enable support for it for the Sugar install.

    Give this a look for valid versions:

    http://www.sugarcrm.com/crm/products...forms/451.html
    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
    markkelly is offline Member
    Join Date
    Feb 2007
    Posts
    7

    Default Re: Help! Parse error: syntax error, unexpected $end

    Thanks for the reply! They told me they tried php 4.0 and 5.0 and had the same problem with both. I will check out the link you provided and pass that on to them.

    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2009-04-09, 08:46 PM
  2. Parse error: syntax error, unexpected T_STRING, Accountvardefs.php
    By jefft in forum Installation and Upgrade Help
    Replies: 6
    Last Post: 2009-02-12, 10:35 PM
  3. Replies: 1
    Last Post: 2009-02-12, 04:33 PM
  4. Replies: 2
    Last Post: 2008-08-06, 11:26 AM
  5. Parse error: syntax error, unexpected '=', expecting ')' in config.php
    By mariana.malta in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-10-21, 03:38 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
  •