Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-8568

Extentions causes problems when moving site

    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 ) )

      { - CRM_Utils_File::createDir( $tmp ); + CRM_Utils_File::createDir( $tmp ,false); }

      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' );

        Attachments

          Activity

            People

            • Assignee:
              mover Michał Mach
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: