Questions tagged [php]

PHP is a server-side scripting language designed primarily for web development. CiviCRM is written in PHP.

Filter by
Sorted by
Tagged with
5 votes
2 answers
665 views

What is the recommended level of PHP for CiviCRM? There seems to be some inconsistencies

See the wiki which says the minimum level is 5.4+ But see this linked page from the wiki which recommends 5.6 with a bare minimum of 5.3.10. See also the system status for release 4.7 which says ...
Andy Clark's user avatar
  • 4,835
3 votes
0 answers
805 views

Does the 'timestamp mismatch' error cause any real problems?

I am getting the following error when I log in to CiviCRM: Timestamps reported by MySQL (eg "2015-11-06 13:44") and PHP (eg "2015-11-06 11:44" ) are mismatched. I have reported this separately ...
William Mortada's user avatar
5 votes
5 answers
885 views

Timestamp mismatch between MySQL and PHP

Every time I log in to CiviCRM I get the following error message: Timestamps reported by MySQL (eg "2015-11-06 13:44") and PHP (eg "2015-11-06 11:44" ) are mismatched. I am using CiviCRM 4.6.10 ...
William Mortada's user avatar
4 votes
2 answers
669 views

Is CiviCRM 4.6.x compatible with PHP 7?

Is CiviCRM 4.6.x compatible with newer version of PHP, 7?
Tapash's user avatar
  • 2,992
9 votes
1 answer
105 views

What versions of PHP are used in CiviCRM's internal QA?

The wiki currently states that CiviCRM has bare minimum (5.3.10) and recommended (>= 5.4) PHP requirements. Knowing what CiviCRM has been tested with can help identify what should be expected to work ...
Chris Burgess's user avatar
4 votes
1 answer
397 views

Uncaught CRM Core_Exception Transaction/Manager.php

Joomla 3.4.3 CiviCRM 4.6.4 Apache/2.4.12 (Unix) 5.5.43-MariaDB PHP 5.4.41 Attempt to quickedit existing entry and get "Network Error -- Unable to reach the server. Please refresh this page in your ...
Charlie Wilder's user avatar
3 votes
1 answer
287 views

Error with CiviVolunteer after upgrading to PHP 7.1

Via permissions page and system status page. Warning: Declaration of CRM_Volunteer_Permission::check($permissions) should be compatible with CRM_Core_Permission::check($permissions, $contactId = ...
themak's user avatar
  • 3,411
3 votes
2 answers
287 views

How to add custom templates (tpls) or php files

What is the 'civi' approach to customising templates and php files? (if this question is a duplicate very happy to remove. I just searched for one after reading Error Message Customization
petednz - fuzion's user avatar
  • 28.3k
11 votes
5 answers
655 views

Is CiviCRM compatible with Nginx?

If I have PHP installed on nginx, and Wordpress installed too, can I still run CiviCRM as a Wordpress Plugin?
leeand00's user avatar
  • 331
7 votes
2 answers
448 views

Get URL of custom image field

I would like to display pictures which are defined as custom "File" fields within an event. I currently to this by generating URLs having the following format: MY_URL?q=civicrm/file&reset=1&...
Ivan's user avatar
  • 167
6 votes
3 answers
8k views

What to do with "mcrypt" message after upgrading to PHP 7.2

What should I do about the following message in my CiviCRM status page, after upgrading to CiviCRM 5.3.0, PHP 7.2 from 5.6, and also upgrading my OS from Debian 8 to Debian 9: PHP Missing Extension ...
Christia's user avatar
  • 2,457
6 votes
2 answers
276 views

What are the minimum and recommended changes to CiviCRM to support PHP 7?

To pragmatically help CiviCRM step-by-step to support PHP7 I would like to know what the minimum and recommended changes to CiviCRM to support PHP 7? This will help developers to identify areas of ...
Richard van Oosterhout's user avatar
5 votes
2 answers
465 views

Class naming and namespaces: best practice as an extension author?

Noting these related questions (1 2 3) and these two wiki pages (1 2) and the psr-0 standard, I remain a bit lost about current best practice in CiviCRM extensions! So if I have an extenstion org....
ErichBSchulz's user avatar
  • 1,571
5 votes
3 answers
768 views

Unable to install extensions: HTTP redirection error

I'm unable to install CiviCRM extensions from CiviCRM » Administer CiviCRM. On the CiviCRM extensions page I get the following error: WARNING: The downloader may be unable to download files which ...
Elijah van der Giessen's user avatar
5 votes
3 answers
265 views

Upgraded to PHP 7.2; no errors but Sparkpost doesn't receive and send CiviMail

I upgraded to PHP 7.2 and received the system warning​ stating "your SMTP password will not be stored encrypted, and if you have recently upgraded from a PHP that stored it with encryption, it will ...
raaboyl's user avatar
  • 185
5 votes
0 answers
54 views

Setting note privacy to groups instead of just author [duplicate]

[On Civicrm 5.19.1, Drupal 7] Is it possible within Civicrm to make a new privacy setting that limits viewing notes to an entire group, and not only the author? We would like all tarification people ...
eics's user avatar
  • 51
3 votes
2 answers
612 views

Where is the exact path to the ConfigAndLog log *file*?

In the latest awesome pattern we can now locate our log service easily: Civi::log()->info('Hello, log!'); And then we can tail the log which is in our ConfigAndLog directory. Chris has enumerated ...
ErichBSchulz's user avatar
  • 1,571
2 votes
0 answers
30 views

CRON Error: Trying to get property of non-object in /.../libraries/joomla/session/handler/joomla.php on line 74 [duplicate]

How do I resolve this error, 'Trying to get property of non-object in /.../libraries/joomla/session/handler/joomla.php on line 74'? Here's line 74 or the joomla.php file, $cookie = $this->input->...
CSDweb's user avatar
  • 71
2 votes
4 answers
228 views

Personalized Drupal login link

I can send out personalized links from CiviCRM, as described here. https://aghstrategies.com/content/how-create-one-click-personalized-links-civicrm-emails They contain the contact id and a checksum ...
commonpike's user avatar
  • 1,181
1 vote
0 answers
63 views

phpseclib version

I'm attempting to add CiviCRM to a site based upon the Open Social Drupal distribution. I'm hitting a brick wall due to a versioning conflict - not with the two systems directly, but to the support ...
Logan Bear's user avatar
1 vote
1 answer
31 views

Map firstname-lastname pairs to IDs

I have a long list of donations that I want to import. My first step was to ensure that all the contacts in the list exist in CiviCRM - that's done, and I spent a while deduplicating the records. ...
Ken Williams's user avatar
1 vote
1 answer
909 views

Call to undefined function dl() error w/Joomla 3.5.1 & PHP 7

I've just installed CiviCRM on a Joomla 3.5.1 site to learn how to use it. I am seeing an issue that I have a question about. As long as I use Php 5.6 the installation works properly. If I try to ...
Greg's user avatar
  • 51
1 vote
3 answers
73 views

best practice for using core base functions (CRM_Utils_System_Base) from an extension?

CRM_Utils_System_Base defines a great set of key functions that look like they should work in any system. What is the correct way to access this functionality within an extension? FYI these are the ...
ErichBSchulz's user avatar
  • 1,571
1 vote
1 answer
295 views

Creating a custom (select) field and update option values from php

I use Wordpress with CiviCRM. I would like to create a custom select field and populate the option values with php. After investigating the forum and the documentation I think I should create a hook (...
Csaba's user avatar
  • 173
0 votes
1 answer
80 views

Undefined array key "merge_same_household"

I'm trying to export contacts from the list in CiviCRM but got a visual warning which does not let me proceed: Warning: Undefined array key "merge_same_household" in /bitnami/wordpress/wp-...
Suri Gang's Hallen's user avatar
0 votes
1 answer
136 views

Getting "set_time_limit() has been disabled for security reasons" when importing a CSV file into contacts

I'm getting "set_time_limit() has been disabled for security reasons" when importing a CSV file into my contacts. The exact warning is "set_time_limit() has been disabled for security reasons in /...
Patrick's user avatar
  • 137