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
2answers
644 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 ...
2
votes
0answers
729 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 ...
5
votes
5answers
768 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 ...
4
votes
2answers
659 views

Is CiviCRM 4.6.x compatible with PHP 7?

Is CiviCRM 4.6.x compatible with newer version of PHP, 7?
9
votes
1answer
91 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 ...
4
votes
1answer
384 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 ...
3
votes
1answer
273 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 = ...
3
votes
2answers
262 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
6
votes
2answers
274 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 ...
5
votes
2answers
419 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....
11
votes
5answers
540 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?
2
votes
4answers
210 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 ...
1
vote
1answer
278 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 (...
0
votes
1answer
79 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 /...
6
votes
3answers
6k 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 ...
6
votes
2answers
254 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&...
5
votes
0answers
48 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 ...
5
votes
3answers
242 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 ...
5
votes
3answers
740 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 ...
3
votes
2answers
504 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 ...
2
votes
0answers
29 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->...
1
vote
0answers
35 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 ...
1
vote
3answers
59 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 ...
1
vote
1answer
851 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 ...