10
votes
Accepted
Is CiviCRM compatible with Nginx?
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 ...
9
votes
Is CiviCRM compatible with Nginx?
No problems here. My local Wordpress dev environment (vvv) uses nginx and I've had no problems with Civi.
9
votes
How much symfony do I need to learn if I am going to be a CiviCRM core hacker?
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 ...
9
votes
Accepted
SOLVED: 'DB Error: extension not found' after PHP upgrade to version 7.0
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 ...
8
votes
Is CiviCRM compatible with Nginx?
Detailed install and configuration tutorial was just posted here:
https://blog.rudeotter.com/install-civicrm-on-wordpress-with-nginx/
8
votes
What to do with "mcrypt" message after upgrading to PHP 7.2
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, (...
7
votes
Accepted
Unexpected T_CLONE, expecting T_STRING (PHP 7, Drupal 7, Ubuntu 16.04)
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 ...
7
votes
Accepted
Why do click and open reports show times in UTC rather than the site's timezone?
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 - ...
7
votes
Accepted
Upgraded to PHP 7.2; no errors but Sparkpost doesn't receive and send CiviMail
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 ...
7
votes
Upgraded to PHP 7.2; no errors but Sparkpost doesn't receive and send CiviMail
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 ...
6
votes
Accepted
Recommended version of PHP?
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 ...
6
votes
What is the recommended level of PHP for CiviCRM? There seems to be some inconsistencies
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 ...
6
votes
Accepted
What versions of PHP are used in CiviCRM's internal QA?
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 ...
6
votes
Are there up-to-date CiviCRM coding standards available?
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 ...
6
votes
Accepted
How much symfony do I need to learn if I am going to be a CiviCRM core hacker?
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
...
6
votes
timestamp mismatch
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 ...
6
votes
Accepted
How to set a id attribute to button?
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->...
5
votes
Accepted
How do I correct mismatched Timestamps for MySQL and PHP without access to server?
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
votes
Accepted
Is CiviCRM 4.6.x compatible with PHP 7?
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
votes
Are there up-to-date CiviCRM coding standards available?
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-...
5
votes
Accepted
Class naming and namespaces: best practice as an extension author?
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 ...
5
votes
Accepted
What are `*.mgd.php` files for?
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 ...
5
votes
Custom PHP not being picked up
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,...
4
votes
Unable to install extensions: HTTP redirection error
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/...
4
votes
Uncaught CRM Core_Exception Transaction/Manager.php
SOLVED: It was a mariadb error on mysql.proc. mysql_upgrade neither ran nor threw an error. Aftert mysql_upgrade, all seems well!
4
votes
What are the minimum and recommended changes to CiviCRM to support PHP 7?
None any more - as of 4.7.12, CiviCRM supports PHP7
4
votes
Accepted
How to let extension users choose cache system?
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 -...
4
votes
Accepted
Mailing stopped working after CiviCRM, PHP and Drupal upgrade
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.
...
4
votes
How to get CiviCRM root via PHP?
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]/.")
...
4
votes
Accepted
SQL Syntax Error - When starting civicrm with joomla
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....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
php × 176wordpress × 30
drupal × 19
extension × 17
mysql × 17
api × 16
error × 16
joomla × 13
coding-standards × 9
database × 7
hooks × 7
timezone × 7
php7 × 7
civimail × 6
upgrade × 6
civicrm-home × 6
civicrm.settings.php × 6
installation × 5
cron × 5
civievent × 4
contacts × 4
webform-civicrm × 4
email × 4
developer × 4
forms × 4