Portable Directory Path Variables Real-time List
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
add a comment |
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
add a comment |
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
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
directory resource-urls
edited 9 hours ago
Chris
asked 9 hours ago
ChrisChris
1348
1348
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
If you click the help icon in the help text at the top of the page, it shows you the current values.
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
6 hours ago
add a comment |
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
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
9 hours ago
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
9 hours ago
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
If you click the help icon in the help text at the top of the page, it shows you the current values.
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
6 hours ago
add a comment |
If you click the help icon in the help text at the top of the page, it shows you the current values.
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
6 hours ago
add a comment |
If you click the help icon in the help text at the top of the page, it shows you the current values.
If you click the help icon in the help text at the top of the page, it shows you the current values.
answered 8 hours ago
Aidan♦Aidan
5,879426
5,879426
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
6 hours ago
add a comment |
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
6 hours ago
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
6 hours ago
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
6 hours ago
add a comment |
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
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
9 hours ago
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
9 hours ago
add a comment |
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
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
9 hours ago
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
9 hours ago
add a comment |
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
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
answered 9 hours ago
Pradeep NayakPradeep Nayak
10.1k1519
10.1k1519
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
9 hours ago
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
9 hours ago
add a comment |
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
9 hours ago
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
9 hours ago
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
9 hours ago
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
9 hours ago
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
9 hours ago
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
9 hours ago
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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