We’re rewarding the question askers & reputations are being recalculated! Read more.

Hot answers tagged

10

Yes, CiviCRM works fine with WordPress on Nginx. However, since Nginx doesn't use .htaccess you'll want to add any changes to your site-specific configuration. For example, there are a few upload directories that have .htaccess files denying access to their contents. To do the same thing in Nginx, you'd want to add a location block to your site's ...


9

No problems here. My local Wordpress dev environment (vvv) uses nginx and I've had no problems with Civi.


8

Detailed install and configuration tutorial was just posted here: https://blog.rudeotter.com/install-civicrm-on-wordpress-with-nginx/


8

You must be digging pretty deep if you're running into Symfony. Its introduction into the stack is fairly new. CiviCRM has been around for over ten years, so some of the technologies are pretty hip and new (like Symfony) and some of the technologies, like Smarty or PEAR DB... well, not so much. I think I've run into Symfony in some code around events (like.....


8

As the author of that message, let me try and clarify ... The mcrypt extension is (only) used to encrypt selected passwords, and "selected" as far as I know usually only includes the smtp password, (which you may not even be using). The message is there that so that if you upgrade your php version and the new one doesn't include mcrypt, you are aware that ...


7

PHP 7 is not supported yet - see CRM-17789 Also: this and this Update (Aug 2017): The information above was correct when it was written. Things have moved on and PHP 7.0 is supported from 4.7.12 onwards. Earlier versions of 4.7 don't run on PHP 7.0 and nor does any released version of 4.6. There are discussions about adding this to 4.6 - see the same ...


7

Summarising the above conversation: The upgrade of PHP to version made the PEAR DB extension unavailable. So the exception "DB Error: extension not found" was thrown. Changing to the database connection URL in the civicrm.settings.php using the prefix mysqli solves the problem.


7

Mailing clicks and opens are registered via scripts in extern (which are quite old) - and don't appear to use the cms environment - as such if the timezone isn't set for php and has defaulted to UTC - this won't show in the warnings - despite it being the issue. To detect this compare the result of php To confirm this is the problem run php -r 'echo ...


7

I encountered the same problem and investigated a bit further... The SparkPost extension does not directly use mcrypt but it does use CRM_Utils_Crypt which makes use of mcrypt if it is available. If you upgrade to php 7.2 without mcrypt and you already have an API key saved, the result is that the extension cannot decrypt the key. That's why the ...


6

The safest bet is probably 5.5. 5.6 ought to work but hasn't been tested as thoroughly. As a core CiviCRM developer I currently use 5.5.9 in my test environment. You should also look at which version is recommended for your CMS, often that is more of a limiting factor.


6

CiviCRM PHP requirements recommends PHP5.5 or greater, and notes PHP5.3.10 is the bare minimum required. As well as this, you want to be sure your PHP version is actively getting security updates, and also consider what PHP versions CiviCRM is tested with. As of Feb 2016, I recommend PHP5.6 - Support ended for PHP5.3 in 2014, and for 5.4 in 2015. PHP 5.5 ...


6

At time of writing, all PRs tests and scheduled tests run under Ubuntu 12.04 (PHP 5.3.10). There is an effort underway to introduce a test node for Ubuntu 16.04 (PHP 7.0) (although details are still a bit in flux). When you inspect the results of a test run, you can get some details (such as the node name and console output). The node names follow a ...


6

Using the Drupal standards in your IDE ought to get you most of the way. For fine-tuning you can see https://wiki.civicrm.org/confluence/display/CRMDOC/PHP+Code+and+Inline+Documentation and also try out the civilint cli tool which is shipped with buildkit.


6

I believe you cannot set id to a button using php however you can define your own class for the button and use JS to set the id for that class. Here is the snippet to add class for button $this->addButtons([[ 'type' => 'next', 'name' => E::ts('Next'), 'isDefault' => TRUE, 'class' => 'custom_class', //adding class for button )); HTH ...


6

PHP 7.2 does not have the mcrypt module, and the Sparkpost extension needs that module. If you can install php7.2-mcrypt as a pecl module Sparkpost will work. If not, I would move to php 7.1 for the time being.


5

With WordPress, 90% of the time it's just the WordPress timezone that needs to be reset. Make sure that's set right as a first step.


5

No, it is planned for 4.8, but could use some help (with funding or investigating issues). https://issues.civicrm.org/jira/browse/CRM-17789


5

For IDE purposes, look at https://github.com/civicrm/coder/ This is a fork of drupal/coder which relaxes a number of conditions. (The coding practices in Civi differed from Drupal in some non-cosmetic ways -- changing them would break functional backward-compatibility.) This is the same rule-set used by civilint, which is the script that runs the civicrm....


5

So a little research takes me to Totten's blog where he lays out the rational for splitting out entity definitions into seperate PHP files. The full definition of the array format is laid out in the hook_civicrm_managed guide and an example .mgd.php file is here


5

Those are the three that we use now, although I'd usually prefer to read the guides rather than the autogenerated API docs, i.e. Symfony Service Container Symfony Event Dispatcher Symfony Console This blog from civicrm.org is probably relevant: The static is dead. Long live the static! To date, most of the Symfony usage has been internal -- e.g. Civi\Core\...


5

It turns out that if you are using Wordpress you need to set the timezone to specific location, e.g. London, rather than using the default UTC offset. When I used the London timezone the problem went away. Configure this in WordPress at Settings > General /wp-admin/options-general.php


5

The SagePay extension from Circle is outdated and is not supported for 5.x version. Mattwire has integrated sagepay payment processor in Eileen's CiviCRM OmniPay Multiprocessor extension. The simplest, easy and recommended solution would be to install the omnipay extension from Matt's git repository(sagepay branch). Move old payment processor from all ...


4

Try again now. I think Tim has resolved an issue that arose with the need for a new intermediate certificate for the SSL certificate replaced on C.o earlier this week: https://issues.civicrm.org/jira/browse/CRM-16191. Please comment on the issue if your error has been resolved.


4

SOLVED: It was a mariadb error on mysql.proc. mysql_upgrade neither ran nor threw an error. Aftert mysql_upgrade, all seems well!


4

The conventional approach Generally, the safe play is to make a file like <myextension>/CRM/MyExtension/MyClass.php: <?php class CRM_MyExtension_MyClass { ...} (Be sure to match the capitalization of files and classes.) Most documentation and tooling is based on CRM_* conventions, and a handful of things in core (such as ...


4

1. CRM_Utils_Cache::create() When looking through the list of cache drivers, you see options like Memcache, Memcached, and Redis. Generally there's little reason why a deployment would use all three -- rather, the typical question this: Do we have any kind of high-speed/shared/memory-based cache? If so, use it. Do we have any kind of SQL-backed cache? If ...


4

The issue was affecting multilingual installations. If the multilingual support is turned off in the settings everything works. Applying the fix solves the problem for multilingual installations. You can see the @monishdeb's fix on github, the fix will be included in the next version. And here's the patchfile I used 131c131 < ->where('...


4

I found the answer in the docs here: https://docs.civicrm.org/dev/en/latest/framework/filesystem/#tip-programmatic-lookup_1 You can use the following: Civi::paths()->getPath("[civicrm.root]/.") or global $civicrm_root;


4

it seems php 7.2 is not compatible with 5.x.x or i do not know how to do the configuration i think downgrade the php would be the best solution but i wonder if there is other answer, and how to do it.... updates: -downgrade php does not help, same error appears -downgrade mysql to 5.5 works!


4

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 the photos below) into your server IP Simple as that (yeah I'm so noob TwT), I wish this can help those who have the same problem like mine, apology for my bad ...


Only top voted, non community-wiki answers of a minimum length are eligible