Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.4.4
-
Fix Version/s: 3.4.6
-
Component/s: Core CiviCRM
-
Labels:None
Description
I seem to have a lot of problems moving sites since the extensions were introduced - this patch would prevent the loop where you can't update get to Settings - Update Directory Path and URL because the extensions directory from the old server doesn't exist
Index: CRM/Core/Extensions.php
===================================================================
— CRM/Core/Extensions.php (revision 35439)
+++ CRM/Core/Extensions.php (working copy)
@@ -120,10 +120,10 @@
require_once 'CRM/Utils/File.php';
if( is_writable( $this->_extDir ) ) {
if ( !file_exists( $tmp ) )
if ( !file_exists( $cache ) )
{ - CRM_Utils_File::createDir( $cache ); + CRM_Utils_File::createDir( $cache,false ); } } else {
$url = CRM_Utils_System::url( 'civicrm/admin/setting/path', 'reset=1&destination=/civicrm/admin/extensions?reset=1' );