Portable Directory Path Variables Real-time List












1















Wordpress: 5.0.3



CiviCRM: Upgraded from 4.7x to 5.9.0



Everything is working, but now I'm getting these status notices about portable path variables. From my status page:




To maximize portability, consider using a variable in each directory
(eg "[cms.root]" or "[civicrm.files]").




It would be great if a list of existing path variables and what they currently point to were actually made available on the "Directory Paths" and "Resource URLs" admin pages. Anything I can do to reduce possible mistakes makes me less anxious about updating my existing paths to the new preferred method.



Sort of Like this:




List of available path variables with their current real-time paths:



[cms.root] --> /home/myusername/mysite.org/wp-content/plugins/civicrm/



[civicrm.files] --> /home/myusername/mysite.org/wp-content/plugins/civicrm/uploads/files/



[cms.other.path] --> /home/myusername/mysite.org/wp-content/plugins/civicrm/whatever/



Also tips on whether to add a slash when using something like:



Example temp file location: [cms.root]uploads/temp/




Is this in the works?



Cheers in advance.










share|improve this question





























    1















    Wordpress: 5.0.3



    CiviCRM: Upgraded from 4.7x to 5.9.0



    Everything is working, but now I'm getting these status notices about portable path variables. From my status page:




    To maximize portability, consider using a variable in each directory
    (eg "[cms.root]" or "[civicrm.files]").




    It would be great if a list of existing path variables and what they currently point to were actually made available on the "Directory Paths" and "Resource URLs" admin pages. Anything I can do to reduce possible mistakes makes me less anxious about updating my existing paths to the new preferred method.



    Sort of Like this:




    List of available path variables with their current real-time paths:



    [cms.root] --> /home/myusername/mysite.org/wp-content/plugins/civicrm/



    [civicrm.files] --> /home/myusername/mysite.org/wp-content/plugins/civicrm/uploads/files/



    [cms.other.path] --> /home/myusername/mysite.org/wp-content/plugins/civicrm/whatever/



    Also tips on whether to add a slash when using something like:



    Example temp file location: [cms.root]uploads/temp/




    Is this in the works?



    Cheers in advance.










    share|improve this question



























      1












      1








      1








      Wordpress: 5.0.3



      CiviCRM: Upgraded from 4.7x to 5.9.0



      Everything is working, but now I'm getting these status notices about portable path variables. From my status page:




      To maximize portability, consider using a variable in each directory
      (eg "[cms.root]" or "[civicrm.files]").




      It would be great if a list of existing path variables and what they currently point to were actually made available on the "Directory Paths" and "Resource URLs" admin pages. Anything I can do to reduce possible mistakes makes me less anxious about updating my existing paths to the new preferred method.



      Sort of Like this:




      List of available path variables with their current real-time paths:



      [cms.root] --> /home/myusername/mysite.org/wp-content/plugins/civicrm/



      [civicrm.files] --> /home/myusername/mysite.org/wp-content/plugins/civicrm/uploads/files/



      [cms.other.path] --> /home/myusername/mysite.org/wp-content/plugins/civicrm/whatever/



      Also tips on whether to add a slash when using something like:



      Example temp file location: [cms.root]uploads/temp/




      Is this in the works?



      Cheers in advance.










      share|improve this question
















      Wordpress: 5.0.3



      CiviCRM: Upgraded from 4.7x to 5.9.0



      Everything is working, but now I'm getting these status notices about portable path variables. From my status page:




      To maximize portability, consider using a variable in each directory
      (eg "[cms.root]" or "[civicrm.files]").




      It would be great if a list of existing path variables and what they currently point to were actually made available on the "Directory Paths" and "Resource URLs" admin pages. Anything I can do to reduce possible mistakes makes me less anxious about updating my existing paths to the new preferred method.



      Sort of Like this:




      List of available path variables with their current real-time paths:



      [cms.root] --> /home/myusername/mysite.org/wp-content/plugins/civicrm/



      [civicrm.files] --> /home/myusername/mysite.org/wp-content/plugins/civicrm/uploads/files/



      [cms.other.path] --> /home/myusername/mysite.org/wp-content/plugins/civicrm/whatever/



      Also tips on whether to add a slash when using something like:



      Example temp file location: [cms.root]uploads/temp/




      Is this in the works?



      Cheers in advance.







      directory resource-urls






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 15 at 17:47







      Chris

















      asked Jan 15 at 17:42









      ChrisChris

      1348




      1348






















          2 Answers
          2






          active

          oldest

          votes


















          4














          If you click the help icon in the help text at the top of the page, it shows you the current values.



          enter image description here






          share|improve this answer
























          • Thanks. This has opened another can of worms, so I've opened a separate SE CiviCRM question. I wonder if there is a minor bug.

            – Chris
            Jan 15 at 20:45





















          1














          Can you make sure in Directories and Resource url settings you are using real-time paths rather hardcoded paths in all text fields on the form. eg [cms.root]uploads/temp/ and not using /home/myusername/mysite.org/wp-content/plugins/civicrm/



          Some organisation define this settings in civicrm.settings.php if thats the case in yours than you will need to update your civicrm.settings.php file.




          Note: After doing the change make sure everything is working fine specially cron job and online signup/registration forms.




          HTH



          Pradeep






          share|improve this answer
























          • Thanks for you reply! Regardless of how the variables are achieved (default or in a settings file), if they're simply listed with their current (real-time) values somewhere in the admin page where they're needed, fewer mistakes will be made, right? Also, variables that are derived from a settings file could be noted as such.

            – Chris
            Jan 15 at 18:01













          • Yes, And it will be less pain to update these paths when site is moved or migrated to different path/server as [cms.root] etc will be derived from your apache and civicrm.settings file.

            – Pradeep Nayak
            Jan 15 at 18:15











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "605"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcivicrm.stackexchange.com%2fquestions%2f28072%2fportable-directory-path-variables-real-time-list%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          If you click the help icon in the help text at the top of the page, it shows you the current values.



          enter image description here






          share|improve this answer
























          • Thanks. This has opened another can of worms, so I've opened a separate SE CiviCRM question. I wonder if there is a minor bug.

            – Chris
            Jan 15 at 20:45


















          4














          If you click the help icon in the help text at the top of the page, it shows you the current values.



          enter image description here






          share|improve this answer
























          • Thanks. This has opened another can of worms, so I've opened a separate SE CiviCRM question. I wonder if there is a minor bug.

            – Chris
            Jan 15 at 20:45
















          4












          4








          4







          If you click the help icon in the help text at the top of the page, it shows you the current values.



          enter image description here






          share|improve this answer













          If you click the help icon in the help text at the top of the page, it shows you the current values.



          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 15 at 18:51









          AidanAidan

          6,104426




          6,104426













          • Thanks. This has opened another can of worms, so I've opened a separate SE CiviCRM question. I wonder if there is a minor bug.

            – Chris
            Jan 15 at 20:45





















          • Thanks. This has opened another can of worms, so I've opened a separate SE CiviCRM question. I wonder if there is a minor bug.

            – Chris
            Jan 15 at 20:45



















          Thanks. This has opened another can of worms, so I've opened a separate SE CiviCRM question. I wonder if there is a minor bug.

          – Chris
          Jan 15 at 20:45







          Thanks. This has opened another can of worms, so I've opened a separate SE CiviCRM question. I wonder if there is a minor bug.

          – Chris
          Jan 15 at 20:45













          1














          Can you make sure in Directories and Resource url settings you are using real-time paths rather hardcoded paths in all text fields on the form. eg [cms.root]uploads/temp/ and not using /home/myusername/mysite.org/wp-content/plugins/civicrm/



          Some organisation define this settings in civicrm.settings.php if thats the case in yours than you will need to update your civicrm.settings.php file.




          Note: After doing the change make sure everything is working fine specially cron job and online signup/registration forms.




          HTH



          Pradeep






          share|improve this answer
























          • Thanks for you reply! Regardless of how the variables are achieved (default or in a settings file), if they're simply listed with their current (real-time) values somewhere in the admin page where they're needed, fewer mistakes will be made, right? Also, variables that are derived from a settings file could be noted as such.

            – Chris
            Jan 15 at 18:01













          • Yes, And it will be less pain to update these paths when site is moved or migrated to different path/server as [cms.root] etc will be derived from your apache and civicrm.settings file.

            – Pradeep Nayak
            Jan 15 at 18:15
















          1














          Can you make sure in Directories and Resource url settings you are using real-time paths rather hardcoded paths in all text fields on the form. eg [cms.root]uploads/temp/ and not using /home/myusername/mysite.org/wp-content/plugins/civicrm/



          Some organisation define this settings in civicrm.settings.php if thats the case in yours than you will need to update your civicrm.settings.php file.




          Note: After doing the change make sure everything is working fine specially cron job and online signup/registration forms.




          HTH



          Pradeep






          share|improve this answer
























          • Thanks for you reply! Regardless of how the variables are achieved (default or in a settings file), if they're simply listed with their current (real-time) values somewhere in the admin page where they're needed, fewer mistakes will be made, right? Also, variables that are derived from a settings file could be noted as such.

            – Chris
            Jan 15 at 18:01













          • Yes, And it will be less pain to update these paths when site is moved or migrated to different path/server as [cms.root] etc will be derived from your apache and civicrm.settings file.

            – Pradeep Nayak
            Jan 15 at 18:15














          1












          1








          1







          Can you make sure in Directories and Resource url settings you are using real-time paths rather hardcoded paths in all text fields on the form. eg [cms.root]uploads/temp/ and not using /home/myusername/mysite.org/wp-content/plugins/civicrm/



          Some organisation define this settings in civicrm.settings.php if thats the case in yours than you will need to update your civicrm.settings.php file.




          Note: After doing the change make sure everything is working fine specially cron job and online signup/registration forms.




          HTH



          Pradeep






          share|improve this answer













          Can you make sure in Directories and Resource url settings you are using real-time paths rather hardcoded paths in all text fields on the form. eg [cms.root]uploads/temp/ and not using /home/myusername/mysite.org/wp-content/plugins/civicrm/



          Some organisation define this settings in civicrm.settings.php if thats the case in yours than you will need to update your civicrm.settings.php file.




          Note: After doing the change make sure everything is working fine specially cron job and online signup/registration forms.




          HTH



          Pradeep







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 15 at 17:57









          Pradeep NayakPradeep Nayak

          11.3k1520




          11.3k1520













          • Thanks for you reply! Regardless of how the variables are achieved (default or in a settings file), if they're simply listed with their current (real-time) values somewhere in the admin page where they're needed, fewer mistakes will be made, right? Also, variables that are derived from a settings file could be noted as such.

            – Chris
            Jan 15 at 18:01













          • Yes, And it will be less pain to update these paths when site is moved or migrated to different path/server as [cms.root] etc will be derived from your apache and civicrm.settings file.

            – Pradeep Nayak
            Jan 15 at 18:15



















          • Thanks for you reply! Regardless of how the variables are achieved (default or in a settings file), if they're simply listed with their current (real-time) values somewhere in the admin page where they're needed, fewer mistakes will be made, right? Also, variables that are derived from a settings file could be noted as such.

            – Chris
            Jan 15 at 18:01













          • Yes, And it will be less pain to update these paths when site is moved or migrated to different path/server as [cms.root] etc will be derived from your apache and civicrm.settings file.

            – Pradeep Nayak
            Jan 15 at 18:15

















          Thanks for you reply! Regardless of how the variables are achieved (default or in a settings file), if they're simply listed with their current (real-time) values somewhere in the admin page where they're needed, fewer mistakes will be made, right? Also, variables that are derived from a settings file could be noted as such.

          – Chris
          Jan 15 at 18:01







          Thanks for you reply! Regardless of how the variables are achieved (default or in a settings file), if they're simply listed with their current (real-time) values somewhere in the admin page where they're needed, fewer mistakes will be made, right? Also, variables that are derived from a settings file could be noted as such.

          – Chris
          Jan 15 at 18:01















          Yes, And it will be less pain to update these paths when site is moved or migrated to different path/server as [cms.root] etc will be derived from your apache and civicrm.settings file.

          – Pradeep Nayak
          Jan 15 at 18:15





          Yes, And it will be less pain to update these paths when site is moved or migrated to different path/server as [cms.root] etc will be derived from your apache and civicrm.settings file.

          – Pradeep Nayak
          Jan 15 at 18:15


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to CiviCRM Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcivicrm.stackexchange.com%2fquestions%2f28072%2fportable-directory-path-variables-real-time-list%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          Npm cannot find a required file even through it is in the searched directory