Questions tagged [php]
PHP is a server-side scripting language designed primarily for web development. CiviCRM is written in PHP.
196
questions
4
votes
1
answer
94
views
How to let extension users choose cache system?
CiviCRM contains some useful caching infrastructure (confluence wiki and related question).
If I am creating a module and I would like to allow users to override the default Civi::cache() ...
1
vote
2
answers
88
views
configuration variables: where is the documentation?
This is changing between 4.6 and 4.7.
Where is the best place to see what each setting does?
9
votes
1
answer
102
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 ...
1
vote
0
answers
15
views
Email cant get retrieved in php
I use php in webform to redirect to an URL after the form is submitted
$email = [submission:values:civicrm_1_contact_1_fieldset_fieldset:civicrm_1_contact_1_email_email:nolabel];
header('Location: /...
3
votes
1
answer
496
views
Message: "CiviCRM does not have permission to write temp files" after login into back-end Joomla
My host updated PHP to 5.5. last night. Now, I can't login to my Joomla back-end because of an error. It says that CiviCRM does not have permission to write temp files.
What can I do to make sure ...
0
votes
1
answer
240
views
Fatal Error on ClassLoader.php : undefined function stream_resolve_include_path()
Has anyone received the following Fatal Error when installing CiviCRM?
Fatal error: Call to undefined function stream_resolve_include_path() in
/var/www/html/devCivi/modules/civicrm/CRM/Core/...
1
vote
3
answers
255
views
Where is include_path set?
I try to get rid of this persistent and annoying warning message:
Warning: is_dir(): open_basedir restriction in effect.
File(/usr/share/pear/api/v3) is not within the allowed path(s):
(/var/...
2
votes
1
answer
285
views
Dependency on php5.6-simplexml goes unchecked, is that a bug?
I'm trying to install CiviCRM 4.7.10 on Ubuntu 16.04/WordPress 4.6.1/PHP 5.6.
After completing the installation, when I try to open the CiviCRM node in the WordPress admin menu, I get an error 500 ...
0
votes
1
answer
149
views
Profile sync using CiviCRM WordPress Profile Sync
Following use-case:
CiviCRM has many contacts, including contacts of individuals with the same primary email address (e.g. one corporate email, two
individuals (contacts) working there) -> forget ...
2
votes
1
answer
147
views
"MySQL support not included in PHP error" in CiviCRM-4.7.10-wordpress
I'm getting the error "MySQL support not included in PHP" in the CiviCRM installer wordpress page.
My setup is:
Ubuntu 16.04
Wordpress 4.6.1
CiviCRM 4.7.10
php 7.0 with mysqli php extension ...
7
votes
2
answers
64
views
Are there up-to-date CiviCRM coding standards available?
I am using NetBeans 8.1 under Windows to develop/debug some CiviCRM code. Previous attempts at getting the contribution accepted ran into trouble as they failed to comply with the coding standards. ...
2
votes
0
answers
62
views
Find contacts with multiple relationships of same type
We try to gather total number of users of same Relationship Type but different number of Relationships (mean, user can be a Member of no / 1 / 2 3 .. etc. Organisations).
Here's a code we use:
$...
0
votes
1
answer
1k
views
Copy old WAMP directory to new installation of WAMP
Can anyone assist with the following scenario please...
-I had a local install of Wordpress and CiviCRM using WAMP.
-PC died but I was able to retrieve the Hard Drive and install in another PC as a ...
0
votes
2
answers
37
views
iATS Extension Working, but Throwing Errors
iATS 1.5.3 is throwing the following errors (1.5.0 was too) on Civi 4.7.10 running under Drupal 7.50 on CentOS:
Notice: Undefined index: config_backend in _iats_civicrm_domain_info() (line 202 of /...
1
vote
3
answers
176
views
Upgrade to 4.6.16+ caused site to fail with error
The upgrade from 4.6.10 to 4.6.16 ran and pronounced itself successful, but after re-enabling the modules The site reports an error which shows via Drush as:
WD menu: CRM_Core_Exception: Invalid ...
0
votes
1
answer
773
views
Configuring cron using PHP cli method results in Permission denied
Centos 7 with selinux set to permissive. Using apache as the user and confirmed apache has execute permissions to the folder and file in plugins/civicrm/civicrm/bin/cli.php
The crontab entry -
1 * * ...
1
vote
0
answers
115
views
What are the recommended disable_functions for Civicrm, if any?
I've seen various security checklists suggesting the use of disable_functions in php.ini, giving a wide variety of functions to disable.
Is this a good practice with Civicrm, and if so, what are the ...
2
votes
0
answers
44
views
Trying to understand CiviAccounts workflow
I've read the CiviAccounts Data Flow document and I'm trying to figure out the order things get done.
Here's my situation: My organization collects membership dues at a national level. But part of ...
3
votes
2
answers
283
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
2
votes
0
answers
58
views
What is the minimum PHP version for CiviVolunteer?
Some screens for CiviVolunteer on PHP 5.3.x - e.g.
/civicrm/volunteer/loghours?reset=1&action=add&vid=2&snippet=json
produce a 500 Error (pop up text: 'Network' error; please refresh and ...
1
vote
1
answer
474
views
MySQL support not included in PHP - Wordpress Heroku
Got this error on heroku wordpress with ClearDB Mysql Connected. Everything works expect this:
Any ideas? Thanks.
0
votes
1
answer
219
views
CRM_Utils_Array::value how to set value to a hook_buildForm?
There is a https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_buildForm manual page, but not sure I've got it right.
Say, there is a value in a custom function, which should be set as ...
1
vote
2
answers
199
views
Coding Custom Report
I'm having some trouble coding a custom report. I found the following tutorial which was helpful, but I'm having trouble with the actual coding as I am still new to civiCRM developing, and I haven't ...
0
votes
1
answer
125
views
Joomla timezone mismatch
For some reason Civi is using UTC and not the Joomla time. The system, and php and mysql times are reporting correctly (Brisbane)
.
For Mysql I have run the following to get its time;
SELECT NOW() ...
0
votes
0
answers
46
views
CiviCRM 4.7 WP and CentOS 6 PHP repo
I am in complete disagreement with Coleman that this is off-topic and should be shoved out to the General Unix and Linux StackExchange. As I seem to be unable to communicate with Coleman through ...
0
votes
1
answer
43
views
CiviCase Error.. Help!
I am getting an error when I click manage case. Looks like it has something to do with custom fields for a custom field type (DLSE Claim).
Wordpress 4.4.2
CiviCRM 4.6.11
This happened after ...
3
votes
1
answer
84
views
Fatal error on CiviEvent dashboard in 4.7 using PHP 5.3.5
Just tried the 4.7 upgrade and found it was giving a fatal error when I tried to acces either the event dashboard ( /civicrm/event?reset=1 ) and Manage Events ( /civicrm/event/manage?reset=1 ).
Fatal ...
0
votes
1
answer
243
views
Getting an error 500 (PHP memory allocation) when adding event participant
We've got a 4.6.10 CiviCRM site which has been running without fuss for a while. Now, when adding an event participant, we get an error 500. The process of adding the participant works fine (they ...
0
votes
1
answer
79
views
CiviCRM 4.2.7 (drupal 6) - errors after web host upgrade to PHP 5.5
Recently we switched servers within our webhost. When doing so, the PHP version went to 5.5 from 5.3. We then started to see some errors when making submissions within CiviCRM (most do work, but some ...
3
votes
0
answers
794
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
1
answer
311
views
How do I correct mismatched Timestamps for MySQL and PHP without access to server?
I'm using civiCRM 4.6.2 under Wordpress.
The PHP and MySQL timezone settings are reported as incompatible, MySQL as 12:38 (which is the current clock time here in Zurich) and PHP as 10:38. However, ...
0
votes
1
answer
55
views
Array String Error Code in Webform Integration
Help, please! I'm getting the following error code:
Notice: Array to string conversion in wf_crm_admin_component::preprocessComponentsForm() (line 555 of /home/makom/www/www/sites/all/modules/...
4
votes
2
answers
43
views
Why does the mailer processQueue method 'shuffle' the array of possible locks?
https://github.com/civicrm/civicrm-core/blob/a2976e7c0c2515379e98ee9b5ebcf51acde4e540/CRM/Mailing/BAO/Mailing.php#L2867
$lockArray = range(1, $mailerJobsMax);
shuffle($lockArray);
// check if ...
1
vote
1
answer
221
views
Installed CiviCRM in Wordpress via ftp, but it doesn't appear in plugin directory
I have Wordpress 4.2.5 running, with PHP 5.4. I am installing CiviCRM 4.6.8. I followed the directions here: http://wiki.civicrm.org/confluence/display/CRMDOC/WordPress+Installation+Guide+for+CiviCRM+...
1
vote
2
answers
143
views
Inserting a calculated value
Currently I am working on a civicrm-wordpress plugin.
I have two custom fields displayed for a contact:
- Date of consent
- Age at recruit
When the user enters the date of consent I would like to ...
5
votes
1
answer
105
views
Recommended version of PHP?
What PHP version would you recommend for running CiviCRM version 4.6.8?
I was using an old version of PHP (4.3.3), but that is no longer sufficient to run CiviCRM and 5.4+ is recommended in the ...
0
votes
2
answers
143
views
How do I increase the backtrace line length
Log files include a backtrace which is very helpful for debugging but I find the lines get truncated so I cannot see all the values. After about 200 characters I usually see an ellipsis ... and the ...
1
vote
4
answers
100
views
If I use php to display a count from my database am I causing a security problem?
I would like to count and display on my front page how many people have signed a civi petition. This I have been able to do using php as below. What I am wondering is if I am causing any kind of ...
2
votes
2
answers
57
views
is there an easy local install method for civics and all dependent software
I'm investigating civicrm for a work use at the ngo where I work.
We don't have in-house It team who can help install it. So I'm trying to do so myself.
I have some experience using Ubuntu and basic ...
4
votes
1
answer
395
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 ...
2
votes
1
answer
80
views
Fill Address/Phone enityRef
I'm writing an extension to customize the create new activity page. I need to add the 'With Contact' address and phone number to the page. When editing the /civicrm/CRM/Activity/Form/Activity.php how ...
1
vote
1
answer
290
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 (...
1
vote
1
answer
151
views
How to send email from CiviCRM and Wordpress
I am trying to send an email from CiviCRM and Wordpress. The test mailings work, but the scheduled mailings never go beyond being scheduled. I done some research online and I think I have to setup a ...
3
votes
1
answer
91
views
Why does PHP Contribution API not filter on contact_id in 4.6.2?
We recentely upgrade from 4.5.x to 4.6.2 and after that the following API call from PHP does not filter on contact_id and return all contributions for all contacts.
$params = array(
'contact_id' =...
2
votes
1
answer
346
views
Why can't I export my report to pdf?
I have a problem (well, in fact, more than one Why can't I export a Contact Detail report to CSV?) with civiReport.
I can't export my contact report to pdf.
At first, when I clicked I only got a ...
1
vote
1
answer
143
views
Error while saving new contribution
I have recently migrated my CiviCRM installation from one server to another server.
Now facing an issue in saving new contribution. If I save the contribution without checked "Send Receipt?" it will ...