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

CiviCRM Resource URL causing issues on initial install with WP

    Details

    • Documentation Required?:
      User and Admin Doc
    • Funding Source:
      Contributed Code

      Description

      On initial install starting with 4.7 the CiviCRM Resource URL is set as [civicrm.root]/

      On multiple hosts this causes resources to attempt to load with the foillowing url:

      http://kcrist.wpengine.com/nas/content/live/kcrist/wp-content/plugins/civicrm/civicrm/bower_components/jquery/dist/jquery.min.js?r=9G2Ju
      

      instead of

      http://kcrist.wpengine.com/wp-content/plugins/civicrm/civicrm/bower_components/jquery/dist/jquery.min.js?r=9G2Ju
      

      This function is adding the path to the files to the domain.

      I have reproduced this locally and on multiple hosts.

      Work around is to add

      $civicrm_setting['URL Preferences']['userFrameworkResourceURL'] = 'https://domain.org/wp-content/plugins/civicrm/civicrm/';
      

      to civicrm.settings.php or manually override via Resorce URLs in the admin.

      also noted in http://civicrm.stackexchange.com/questions/9776/word-press-install-missing-civicrm-settings-php-dashboard-unavailable-no-menus/9792 and CRM-18009

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcristiano Kevin Cristiano
                Reporter:
                kcristiano Kevin Cristiano
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: