Questions tagged [php]
PHP is a server-side scripting language designed primarily for web development. CiviCRM is written in PHP.
196
questions
0
votes
1
answer
42
views
Custom PHP not being picked up
I've been pulling my hair out trying to get this working. There is a file in core that throws up errors using the SagePay extension from Circle. I can edit the core .php file and fix the problem. ...
0
votes
1
answer
36
views
How can I add PHP as content with HTML editor?
Using Drupal 7 with CIVI crm 5.x
I'm doing some testing with this:
Hello World'; ?>
Paste it in source code, but then it strips it out like this:
<!--?php echo '<p-->
<p>Hello ...
0
votes
2
answers
242
views
Using Civicrm_api3 in onAjax[Name] plugin function
I created a plugin which provides custom validation for civicrm forms. Part of the jQuery validation on the plugin makes an AJAX call to the plugin. The plugin calls its onAjax[Name] method. In the ...
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
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 ...
0
votes
1
answer
60
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-...
0
votes
1
answer
43
views
Will civicrm support in Laravel
I am familiar with Laravel but integrating CiviCRM was new to me. Is it possible to integrate the CiviCRM in Laravel?
If yes can anyone provide the steps to integrate?
Thanks in advance
0
votes
1
answer
95
views
How to hide these 'deprecated' type messages when implementing PHP 7.4?
Having just upgraded a site to 5.47.2 and noting that PHP 7.4 is recommended I rashly took this seriously :) and ended up with 3 messages that splat themselves over the top of the majority of screensm ...
0
votes
1
answer
41
views
New Extension Tab Zip Support Required Message
After upgrading to PHP 7.2, now receiving this message when trying to add a new Extension
ZIP Support Required
You will not be able to install extensions at this time because your installation of PHP ...
0
votes
1
answer
239
views
Unable to hide PHP 'notice' warning
We are moving our CiviCRM site over from Drupal to Wordpress. We have this fully working on our developer's server (nginx), but on our live server (Apache), we see an error when loading some CiviCRM ...
0
votes
1
answer
55
views
How to get a data for a perticular logged in user ( through API)?
I gave an ACL role to users for data segregation. I want to fetch data from database but data must filter i.e. ACL. How to get data. Also I want a userkey and sitekey?
0
votes
2
answers
102
views
Adding and storing form fields
I figured out how to add form fields using the buildForm hook. I am adding a select element to a participant profile on an event registration form. Do the values from the added fields get saved when ...
0
votes
1
answer
201
views
PHP version matters or not?
I've been running certain 5.6 for a long while and wondering if I ever should migrate to 7.0 or just leave alone. Installation instructions say 7.0 is recommended but so is 5.6
Anyone have opinions ...
0
votes
1
answer
60
views
How to echo "Hello World" in civicrm?
I need to echo "hello world" in civicrm how to do this in any page in civicrm? i'm trying to do this using hooks_civicrm_post but there is no result.
0
votes
1
answer
89
views
Debugging SQL - possible database problem
This is possibly a question with much too deep technical aspects (SQL, PHP and Civi-innards...) for this forum, but I don't know where else to start, so here goes.
I am experiencing mysterious ...
0
votes
1
answer
41
views
Using data from CiviCRM to change filename
Here is what I need to do:
The user uploads an image, and I need to change the filename of the image to be firstname_lastname.filtype.
The first and lastname are stored within CiviCRM, but the ...
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 ...
0
votes
1
answer
16
views
Civievent live page giving error 500
this isn't really an issue, just a quick PSA. I have the latest wordpress and civicrm 5.66.1. When trying to access civievent live/test registration page, I kept getting an error 500. However, I ...
0
votes
1
answer
95
views
CiviCalendar: Array and string offset access syntax with curly braces is deprecated
I'm trying to prepare a site for migration to a new host, and the copy of the site I've set up on the new host is generating masses of warnings that I'm not seeing on the current production ...
0
votes
1
answer
112
views
Select2 in php forms?
I have a simple quickform --
$this->add('text','trial_number','Trial Number',TRUE);
$this->add('date','Trial_Date',ts('Trial Date'),CRM_Core_SelectValues::date(NULL, 'Y M d',15,1) );
...
0
votes
1
answer
63
views
utfmb4 conversion gone wrong - Some columns in the databse have utf8mb4_general_ci others utf8mb4_unicode_ci causing and Illegal mix of collations
I've recently run utf8mb conversion (through API explorer) on civi 5.28. Everything seemed OK, but now whenever I try to access events dashboard I get Illegal mix of collations (utf8mb4_general_ci,...
0
votes
2
answers
75
views
condition on count from chained api call
I am trying to use the api to get all contacts without an address with locationtype billing. For this I use the contact get api, and do a chained address get call. Is there a way to put a condition on ...
0
votes
2
answers
175
views
How to catch Fatal error in civicrm?
I'm getting below error message while exporting csv file of 40k record.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65552 bytes) in /var/www/html/crf-git/modules/...
0
votes
1
answer
53
views
com_civicrm/civicrm/CRM/Core/BAO/SchemaHandler.php on line 730
Do you have any information about the solution of the error found in the image?
Joomla Version: 3.7.4
CiviCRM Version: 4.7.22
0
votes
2
answers
63
views
Logged out periodically for unknown reason and word replacement not working
On one of the CiviCRM sites I've set up, it keeps logging me out every 30 minutes or so. I have set the cookies in the default.settings.php file so that I'm logged out when I close the browser but it'...
0
votes
2
answers
142
views
How do I write unit tests for time based actions?
If I have an delayed action in my code then how on Earth can I unit test this?
For example a membership transition?
0
votes
1
answer
150
views
PHP Warnings in maildir.php
Running Civicrm v4.7.14 on Wordpress v4.7 PHP v 5.6.29
For the last couple of weeks, I've been getting the following PHP warning emails, mostly hourly, from my host's server, after the CRON runs with ...
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/...
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 ...
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 /...
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 * * ...
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
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 ...
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 ...
0
votes
0
answers
20
views
civiEvent calendar not showing details after php 8.1 upgrade
Running civiCRM 5.66.0 on WP 6.3.2 upgraded to php 8.1 over the weekend.
The internal civicEvent calendar no longer displays event titles, or previous events at all.
We are also using the Event ...
0
votes
1
answer
46
views
Undefined array key "email_greeting_display"
I'm trying to visualize a contact (organization) and I'm receiving the following warning in the "Communication preferences" section.
Warning: Undefined array key "...
0
votes
1
answer
49
views
Unable to install CiviCRM on Joomla 4.2.9 and 4.3.0 (updated)
We have been fruitlessly trying to install v 5.60.0 in Joomla. At first we tried php 8.2, but had to give up without success. Back to 8.1 gives no better results.
The latest error with php 8.2 is:
...
0
votes
0
answers
21
views
"Current and Upcoming Events" is missing and trying to ICalendar.tpl.php file that does not exist
Ive been thrust into trying to help a buddy fix his civicrm deployment and I cannot find a way to generate this template necessary to populate that page.
Looking at the errors it is looking for the ...
0
votes
0
answers
45
views
Why does W3 Total Cache serve cached pages to logged in users (Wordpress)?
I'm using a contribution shortcode in a Wordpress page. I need the HTML/XML request to never load from cache for both logged-in and anonymous users.
In W3 Total Cache, I have the "Don't cache ...
0
votes
1
answer
71
views
Error when importing contacts - "Warning: Illegal string offset 'code'"
After importing a CSV of contacts, I'm getting a blank screen with the error message below. Typically, I get a report of how many contacts were skipped due to duplicates. It appears the data is ...
0
votes
1
answer
131
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 /...
0
votes
1
answer
84
views
Very slow mailing job with Mosaico with Imagick and UrlFilter.php errors
I have a problem where my mailing is being sent crazy slow, like hundred emails an hour. At the same time my cpu utilization is of the charts where apache2 is using like 99% of the cpu. In the php ...
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 ...
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
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/...