Results 1 to 7 of 7

Thread: Changing directory

  1. #1
    angolanmade is offline Member
    Join Date
    Dec 2008
    Posts
    8

    Default Changing directory

    I've recenly changed the directory of my sugarcrm install and now im getting the following errors when i try to access the crm in its new directory.


    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /htdocs/apps/crm/include/database/PearDatabase.php on line 54

    Warning: Wrong parameter count for class_exists() in /htdocs/apps/crm/include/utils.php on line 2643

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /htdocs/apps/crm/data/SugarBean.php on line 5310


    previous directory
    mysite.com/crm

    new directory
    mysite.com/apps/crm

    i've updated the config.php file to reflect the new changes

    'site_url' => 'http://mysite.com/apps/crm',

    Any suggestions? thanks in advance

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Changing directory

    Hi angolanmade

    Let us know the version of your SugarCRM installation.

    Kind regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    angolanmade is offline Member
    Join Date
    Dec 2008
    Posts
    8

    Default Re: Changing directory

    as per the config file - 'sugar_version' => '5.1.0c',

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Changing directory

    I suppose the php version of the current server is the 4.x, right?

    PHP Code:
        public static function getInstance($instanceName='')
        {
            
    $GLOBALS['log']->info('call to PearDatabase::getInstance() is deprecated');
            return 
    DBManagerFactory::getInstance($instanceName);
        } 
    /htdocs/apps/crm/include/database/PearDatabase.php on line 54 contain the method signature, which contains the modifiers "public" and "static" which are not compatible with php 4.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    angolanmade is offline Member
    Join Date
    Dec 2008
    Posts
    8

    Default Re: Changing directory

    yes the server is currently running php 4.4.9.

    What do you recommend.

  6. #6
    lobby is offline Member
    Join Date
    Dec 2008
    Posts
    5

    Default Re: Changing directory

    I have just the same problem, but it is PHP Version 5.2.6 running. What else could it be?

  7. #7
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Changing directory

    Quote Originally Posted by lobby View Post
    I have just the same problem, but it is PHP Version 5.2.6 running. What else could it be?
    Are you facing exactly this same issue? The same error message?

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. What's in the cache/ directory?
    By SanderMarechal in forum Developer Help
    Replies: 11
    Last Post: 2010-01-04, 08:48 AM
  2. log directory
    By yongitz in forum General Discussion
    Replies: 5
    Last Post: 2005-12-15, 05:54 AM
  3. Changing permissions on /cache/xml directory: is it right?
    By magesor in forum General Discussion
    Replies: 2
    Last Post: 2005-11-14, 08:50 AM
  4. Replies: 4
    Last Post: 2005-10-31, 03:25 PM
  5. Replies: 1
    Last Post: 2005-10-06, 10:50 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
  •