Questions tagged [php]
PHP is a server-side scripting language designed primarily for web development. CiviCRM is written in PHP.
196
questions
1
vote
1
answer
907
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 ...
2
votes
2
answers
465
views
How to reset CiviCRM?
When writing a re-initialisation script / extension or drupal module, how would you reset CiviCRM back to clean installation state? Is it possible to install "minimal" without components and their ...
5
votes
1
answer
3k
views
Unexpected T_CLONE, expecting T_STRING (PHP 7, Drupal 7, Ubuntu 16.04)
On an Ubuntu 16.04 VM with PHP 7.x, I am seeing the following error when enabling CiviCRM in Drupal 7:
ParseError: syntax error, unexpected 'clone' (T_CLONE), expecting identifier (T_STRING) or '(' ...
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 ...
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.
5
votes
3
answers
294
views
Add custom field and populated with array/data from a non-civicrm table
newby here with a quick question about custom fields.
Is it possible to set up a custom field that queries a non-civicrm table?
Hoping to create an autocomplete dropdown menu that does a SELECT on a ...
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 ...
6
votes
2
answers
275
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 ...
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() ...
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 ...
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 ...
5
votes
2
answers
659
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 ...
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 ...
3
votes
3
answers
146
views
civix civicrm:ping not printing any output
I am running CiviCRM on Mac OSX 10.11.3, using the latest Bitnami CiviCRM/Drupal stack (bitnami-civicrm-4.6.11-0-osx-x86_64).
I have civix-15.04.1 installed as instructed (under $HOME/civix), and ...
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 ...
2
votes
2
answers
80
views
When exporting contacts using custom selected fields, results in "Undefined Index ...Mapping.php Line 622"
When trying to export a list of Contacts selecting a previously defined set of Export Fields, system throws this error:"Notice: Undefined index: in /home/.../Core/BAO/Mapping.php on line 622"
When ...
4
votes
2
answers
668
views
Is CiviCRM 4.6.x compatible with PHP 7?
Is CiviCRM 4.6.x compatible with newer version of PHP, 7?
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 ...
3
votes
0
answers
793
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 ...
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 ...
5
votes
5
answers
858
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 ...
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
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
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 ...
0
votes
3
answers
158
views
is there a jobboard in civiCRM
new to civiCRM;-)
is there a jobboard in civiCRM
or to ask it in other words: does civiCRM has a board constructed more in the realm of an Applicant Tracking System OR does it allow to function as ...
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 ...
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
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 ...
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, ...
2
votes
4
answers
224
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 ...
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 ...
5
votes
3
answers
763
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 ...
11
votes
5
answers
643
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?