12
votes
Accepted
Set [civicrm.files]
You can specifically set the value of [civicrm.files] in civicrm.settings.php with code like this:
global $civicrm_paths;
$civicrm_paths['civicrm.files'] = array(
'url' => 'https://example.com/...
6
votes
How to remove notice at login
This is a preference you can set, but it's not exposed in the web interface. There's a section of civicrm.settings.php that documents it. In case you've upgraded from an older version of CiviCRM ...
6
votes
Accepted
Can not find Civicrm.settings.php
Normally you don't install from github you would get it from https://civicrm.org/download and then follow the instructions at https://docs.civicrm.org/sysadmin/en/latest/install/drupal7
If you are ...
6
votes
How can I find out our civicrm sitekey?
It's found in civicrm.settings.php and will be generated by the installer (or set manually depending on how your CiviCRM instance was configured). You're looking for a line that looks like this:
...
4
votes
Fix For "Incorrect Resource URL" Not Working
We've had basic authentication active on the installation which broke the check. After adding the server IP to the whitelist the error disappeared.
4
votes
Accepted
CiviCRM running very slow on local network
And once again I had found out the answer on my own, took a lot of time though... it is in components and administrator's civicrm.setting.php (both php file!)
just simply change both localhost (see ...
4
votes
Accepted
Where is the civicrm.settings.php file on Wordpress 4.95 with CiviCRM 5.1.x
The /wp-content/plugins/civicrm/civicrm path is for CiviCRM versions older than 4.7. For a new install you should find it under /wp-content/uploads/civicrm
4
votes
Accepted
CiviCRM Database Upgrade White Screen
After hours of trying to figure out the issue, i have been able to fix this by changing the Theme in Drupal.
When i made the Theme into a default theme the upgrade page showed with no issues.
4
votes
Accepted
Can I store local dev SMTP settings in civicrm.settings.php?
Use something like:
$civicrm_setting['Mailing Preferences']['mailing_backend']['smtpPort'] = '587';
I think the group name 'Mailing Preferences' is obsolete and could be 'domain', but the above works.
...
4
votes
Add new custom field column
If you're talking about the contact basic and advanced search results, you can add the field to a profile and set that to be used at Administer > Customise Data and Screens > Search Preferences &...
3
votes
How to remove notice at login
Thanks Jon G for providing the solution to turn off the community messages.
However, as one of the organizers of CiviCamp Brussels 2018, I am very happy with this feature. It's an effective way to ...
3
votes
Copying the CiviCRM installation in a different machine
See documentation on moving an existing installation to a new server or location on this link: https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+...
3
votes
Accepted
“MySQL support not included in PHP”
Your drupal may be using a different mysql driver. CiviCRM recently migrated to requiring mysqli. See https://civicrm.org/blog/totten/psa-please-verify-php-extension-mysqli for more details.
3
votes
timezone in PHP is incorrect
Try setting your preferred timezone in civicrm.settings.php and/or wp-config.php?
ini_set('date.timezone', 'Asia/Calcutta');
You might want to adapt the timezone you set as appropriate to your MySQL ...
3
votes
Accepted
How can I fix [civicrm.root] variable on an addon domain?
tl;dr: Uncomment and fill in the define('CIVICRM_CMSDIR', '/path/to/install/root/'); in civicrm.settings.php.
I traced through the functions that go toward building the URL for loadins crm.ckeditor....
3
votes
Accepted
Correct location of civicrm.settings.php in CiviCRM 4.7 for WordPress
The recommended location is wp-content/uploads/civicrm/civicrm.settings.php.
The deprecated location, still supported as of April 2017, was wp-content/plugins/civicrm/civicrm.settings.php, but this ...
3
votes
3
votes
How to install civix and build an extension in drupal
Have a look at the Developer Guide here: https://docs.civicrm.org/dev/en/latest/ as a start.
If at all possible I would recommend trying to find an expert near you who would be able to give you a ...
3
votes
Accepted
Resource URL problem
In your civicrm.setting.php update the $civicrm_root and template_c path to use /var/sites/j/example.net/public_html instead of /var/sites/c/beta.example.net/public_html/
Thanks
Pradeep
3
votes
Menu problem when web host upgraded from CPanel to Site Tools
I replaced the full URLs in the civicrm.settings.php file with relative URLs as shown below:
FROM
global $civicrm_root;
$civicrm_root = '/home/customer/www/example.org/public_html/sites/all/modules/...
3
votes
SmartyException: "Unable to load template 'file:group2summary.tpl'"
Its a known issue for Smarty3, I have pushed a PR for the https://lab.civicrm.org/extensions/group2summary/-/merge_requests/11
You can apply the patch or comment CIVICRM_SMARTY3_AUTOLOAD_PATH line in ...
2
votes
Changed Resource URL setting, now can't access Civi on Wordpress
If I understand your question correctly, you are asking how to return the settings back to default.
I believe that the default settings for WordPress (in Administer >> System Settings >> Resource ...
2
votes
Accepted
prompted for password too often
changed the base URL in civicrm.settings.php . now works fine .
if (!defined('CIVICRM_UF_BASEURL')) {
define( 'CIVICRM_UF_BASEURL' , 'http://localhost/site/');
}
is changed to
if (!defined(...
2
votes
Accepted
accessing civicrm in lan
you need to update your Base URL with your IP address - because your base URL is pointing to localhost that is why your remote PC is redirecting to localhost
change the BaseURL to your IP address ...
2
votes
Accepted
"Failed to authenticate key" when posting to REST api
Turns out the problem was that I was calling curl without putting quotes around the url.
2
votes
Accepted
Compatibility problem with Joomla 3.8.7 and Civicrm 5.0.1 that affects Cron
I think you are still likely to run into problems on Windows as Aidan mentioned but to give yourself the best chance:
use CiviCRM 5.1.0, which has additional changes to resolve cli.php problems on ...
2
votes
Accepted
How will I maintain versioning of civicrm in github?
It's really bad idea to customize CiviCRM core files when you can do thing using extensions. If you feel your customization fixes core issues than you should try to submit pull request against civicrm-...
2
votes
How do i properly include civicrm.settings.php to use api calls?
I think I found the issue. Command line php was 5.4.16 despite the website using 7.x.
2
votes
Error on CiviCRM Activation. Can't Install CiviCRM
Same happened to me. On installing new test CiviCRM under WordPress. The "CiviCRM Contribution Page Widget" plugin caused same error. Civi 5.27.1, WP 5.4.2, php 7.2.24 on ubuntu 20.04 LTS
2
votes
Accepted
CiviCRM URL issue: CiviCRM theme is not loading after CiviCRM update to 5.26.1 version
can you add below lines in your civicrm.settings.php?
global $civicrm_paths;
$civicrm_paths['civicrm.root']['url'] = CIVICRM_UF_BASEURL . '/sites/all/modules/civicrm';
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
civicrm.settings.php × 110wordpress × 25
drupal × 15
php × 9
installation × 8
civicrm-home × 8
database × 6
joomla × 5
upgrade × 5
settings × 5
drupal-8 × 4
resource-urls × 4
civimail × 3
webform-civicrm × 3
api × 3
error × 3
cron × 3
core × 3
profile × 2
extension × 2
import × 2
4.7 × 2
menu × 2
ckeditor × 2
configuration × 2