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

CiviCRM should rebuild menus when directory and path config settings change

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Take the following scenario:

      1) A database is moved from server A to server B.
      2) The user loads a civicrm page on server B
      3) CiviCRM attempts to check the directories specified in civicrm_domain.config_backend and confirm that they exist.
      4) The directories don't exist. It attempts to create them, but fails since the home directory on server A is different from server B.
      5) The user clears civicrm_domain.config_backend.
      6) The user navigates to a civicrm page. CiviCRM loads directories and URLs from civicrm.settings.php, confirms that all directories are ok and loads a page. However since the menu has not been rebuilt, the user gets menu items that point to the other domain. This causes issues immediately since the user attempts to go in and set directories and URLs and ends up borking server A instead of setting up server B.

      Perhaps the better solution might be for CiviCRM to create relative urls for its menu items.

        Attachments

          Activity

            People

            • Assignee:
              shailesh Shailesh Lende
              Reporter:
              dalin dave hansen-lange
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m