Results 1 to 9 of 9

Thread: Upgrade to 4.0.1 function.require error

  1. #1
    flipg40 is offline Junior Member
    Join Date
    Jan 2006
    Posts
    3

    Default Upgrade to 4.0.1 function.require error

    The exact error is as follows.

    Fatal error: require_once() [function.require]: Failed opening required '' (include_path='.:') in /usr/local/www/sugarcrm/modules/Administration/RebuildAudit.php on line 30

    I get the same function.require error on other repair scripts as well. It is almost like that function can't be found. Has anyone else seen this? Thanks for any advice.
    Last edited by flipg40; 2006-01-26 at 07:23 PM.

  2. #2
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Upgrade to 4.0.1 function.require error

    Looking into it...
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  3. #3
    flipg40 is offline Junior Member
    Join Date
    Jan 2006
    Posts
    3

    Default Re: Upgrade to 4.0.1 function.require error

    What needs repaired after upgrade with their respective errors. Incase the above mentioned error wasn't enough. Thanks.

    Opportunities Upgrade currency amounts in Opportunitie.

    Rebuild Audit Rebuilds audit table. Fatal error: require_once() [function.require]: Failed opening required '' (include_path='.:') in /usr/local/www/sugarcrm/modules/Administration/RebuildAudit.php on line 30

    Rebuild Extensions Rebuild extensions including extended vardefs, language packs, menus, and administration

    Repair Database Repair database based on values defined in vardefs (MYSQL ONLY). (Selecting Execute SQL I get this error.) Fatal error: require_once() [function.require]: Failed opening required '' (include_path='.:') in /usr/local/www/sugarcrm/modules/Administration/repairDatabase.php on line 65

    Rebuild Config File Rebuild config.php by updating version and adding defaults when not explicitly declared.

    Rebuild Relationships Rebuilds relationship meta data and drops the cache file. Fatal error: require() [function.require]: Failed opening required '' (include_path='.:') in /usr/local/www/sugarcrm/modules/Administration/RebuildRelationship.php on line 37

    Upgrade Custom Labels Upgrade the format of the custom field labels in every language file.
    Clear Chart Data Cache Removes cached data files used by charts.
    Rebuild .htaccess file Rebuilds .htaccess to limit access to certain files directly.
    Apply Daylight Savings Time Fix This mandatory step will update the time handling functionality (MYSQL ONLY).


    Thanks for looking into it Clint. It may be somthing I am doing wrong?

  4. #4
    yph's Avatar
    yph
    yph is offline Sugar Community Member
    Join Date
    Oct 2005
    Posts
    60

    Default Re: Upgrade to 4.0.1 function.require error

    Take a look at this posting:

    http://www.sugarcrm.com/forums/showt...6825#post26825

    A similar fix for RebuildAudit.php that adds a strlen($file) > 0 check should address your issue. Please let us know how it goes.

    Also, if you can attach your include/modules.php file it would be helpful.
    Last edited by yph; 2006-01-27 at 01:59 AM.

  5. #5
    flipg40 is offline Junior Member
    Join Date
    Jan 2006
    Posts
    3

    Default Re: Upgrade to 4.0.1 function.require error

    I have reverted back to the 4.0. I would like to get the upgrade to work so I am creating a test bed for it. Luckily we were not going live with Sugar until today. Thanks for the help guys. I am running Sugar on freebsd 6.0 with php5.1, mysql50. Could this be an issue?


    Chad
    Attached Files Attached Files

  6. #6
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: Upgrade to 4.0.1 function.require error

    Hi all, bug 4412 is tracking this issue and we've assigned it a high priority to fix ASAP going forward.

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  7. #7
    WayneSugar's Avatar
    WayneSugar is offline Sugar Community Member
    Join Date
    Oct 2005
    Posts
    155

    Default Re: Upgrade to 4.0.1 function.require error

    Quote Originally Posted by flipg40
    I have reverted back to the 4.0. I would like to get the upgrade to work so I am creating a test bed for it. Luckily we were not going live with Sugar until today. Thanks for the help guys. I am running Sugar on freebsd 6.0 with php5.1, mysql50. Could this be an issue?


    Chad
    Hey Chad, thanks for sending along the modules.php file. Can you also attach include/modules_override.php and custom/application/Ext/Include/modules.ext.php. Thanks
    Wayne Pan
    Software Eng.

  8. #8
    Aggy is offline Sugar Community Member
    Join Date
    Jun 2005
    Posts
    48

    Default Re: Upgrade to 4.0.1 function.require error

    Hi,
    I'm getting the same error, so here are my files, should they help.

    I've ammended the RebuildAudit.php file to check in a similar way to the fix for RebuildRelationship.php but it didn't fix it, obviously. I'm not a php developer however, so might be my coding.

    Cheers,

    Aggy
    Attached Files Attached Files

  9. #9
    WayneSugar's Avatar
    WayneSugar is offline Sugar Community Member
    Join Date
    Oct 2005
    Posts
    155

    Default Re: Upgrade to 4.0.1 function.require error

    Quote Originally Posted by Aggy
    Hi,
    I'm getting the same error, so here are my files, should they help.

    I've ammended the RebuildAudit.php file to check in a similar way to the fix for RebuildRelationship.php but it didn't fix it, obviously. I'm not a php developer however, so might be my coding.

    Cheers,

    Aggy
    Thank you Aggy! That really helped. It turns out that the ZuckerDocs' Plugin was the culprit of all of this. However, our code should have had better error checking. Nevertheless, the fixes for rebuildrelationships and rebuildaudit tables have been rolled into the next patch. Here is the valid code for RebuildAudit.php
    Code:
    include('include/modules.php');
    
    global $beanFiles;
    echo 'Searching for new audit enabled modules <BR>';
    foreach ($beanFiles as $bean => $file)
    {
    	if(strlen($file) > 0 && file_exists($file)) {
    		require_once($file);
    	    $focus = new $bean();
    		if ($focus->is_AuditEnabled()) {
    			if (!$focus->db->tableExists($focus->get_audit_table_name())) {
    				echo "creating table ".$focus->get_audit_table_name().' for '. $focus->object_name.'.<BR>';
    				$focus->create_audit_table();
    			} else {
    				echo "Audit table for ". $focus->object_name." already exists. skipping...<BR>";	
    			}
    		}
    	}
    }
    echo 'done';
    Wayne Pan
    Software Eng.

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
  •