CRM-4402 Import uses absolute filesystem path instead of relative path

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.2.2
    • Fix Version/s: None
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      The file at:
      /home2/bnaitikv/public_html/crm/administrator/components/com_civicrm/civicrm/civicrm.config.php
      uses an absolute filesystem path for an import. It should use a relative path or use the path setting at:

      <base of Joomla>/components/com_civicrm/civicrm.settings.php
      or
      <base of Joomla>/administrator/components/com_civicrm/civicrm.settings.php

        Attachments

          Activity

          [CRM-4402] Import uses absolute filesystem path instead of relative path
          Donald A. Lobo added a comment -

          any specific reason why that is bad?

          we use an absolute path in that specific file since it is called independent of the CMS (from a cron script)

          lobo

          Sarah Gladstone added a comment -

          There are times when I move or rename my Joomla installation to a different folder. After the move, I manually edit the files:

          <base of Joomla>/components/com_civicrm/civicrm.settings.php
          <base of Joomla>/administrator/components/com_civicrm/civicrm.settings.php

          I usually do this when the main website is not using Joomla or is using a very old version of Joomla. So I install Joomla 1.5 in a staging directory on the server. Then I configure Joomla, CiviCRM, etc and get the stakeholders to try the "staging" website. When I am ready to go live, I backup the old website, clear the "main" folder out, then move the "staging" Joomla into the folder for the main website. This allows me to fully test everything before the "go live" date and only have about 5 minutes of downtime to perform the switch.

          Sarah Gladstone added a comment -

          If you do not change it, then it should be better documented how to move CiviCRM to a new folder on the server.

          Donald A. Lobo added a comment -


          wanna edit and update the docs?

          Sarah Gladstone added a comment -

          Sure! Which document should I update? Or where should I create a new document?

          Donald A. Lobo added a comment -

          http://wiki.civicrm.org/confluence/display/CRMDOC21/Moving+an+Existing+Installation+to+a+New+Server+or+Location

          note that for joomla we recommend doing a new install and then importing your old DB.

          Sarah Gladstone added a comment -

          I updated the doc.

          Why do you recommend doing a new install for Joomla? What are the issues?

            People

            • Assignee:
              Donald A. Lobo
              Reporter:
              Sarah Gladstone

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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