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
0 votes
1 answer
25 views

Write failed: No space left on device

We currently have CiviCRM installed in a Bitnami solution in WordPress from a VM in Azure. In the last few days we have experienced problems logging in and when trying to access phpmyadmin we received ...
Suri Gang's Hallen's user avatar
0 votes
1 answer
35 views

Cannot access CiviCRM: "Undefined property: CRM_Core_Config"

With CiviCRM 5.69.2 on WordPress 6.4.2 and PHP 8.1, I'm getting the following when trying to access CiviCRM: There has been a critical error on this website. Please check your site admin email inbox ...
Justin Young's user avatar
2 votes
1 answer
81 views

fatal error in "Smarty" after 5.69.2 upgrade

After upgrading CiviCRM to 5.69.2 (along with several extensions), I'm occasionally getting the following error: Fatal error: Type of SmartyCompilerException::$line must be int (as in class Exception)...
bobl's user avatar
  • 131
0 votes
0 answers
23 views

cron job with error php Warning - Undefined property: CRM_Core_DAO::$contribution_id

I'm curing a Joomla instance CiviCRM. Just updated from Joomla 3 to joomla 4.4.1 with CiviCRM 5.68.1. Updated too the server debian version from 11 to 12. configured cron task with cv version v0.3....
Christophe M.'s user avatar
2 votes
1 answer
21 views

cron job with error php deprecation - str_replace(): Passing null to parameter

I'm curing a Joomla instance CiviCRM. Just updated from Joomla 3 to joomla 4.4.1 with CiviCRM 5.68.1. Updated too the server debian version from 11 to 12. configured cron task with cv version v0.3....
Christophe M.'s user avatar
2 votes
0 answers
27 views

PHP mail() not working with HTML messages in CiviCRM 5.68

After installing CiviCRM 5.68 if I try to send a mail formatted in HTML the mail is delivered with the name of the sender completely mispelled (e.g. [email protected] instead ...
Marco Mercinelli's user avatar
1 vote
1 answer
41 views

CIVICRM: Custom Field that uses financial type id

I'm new to Civicrm PHP and extension development so I'm sorry if this is a dumb question. ^-^ I'm making an extension that creates a new custom field group, the custom field group is meant to ...
BellaDoll's user avatar
0 votes
0 answers
18 views

Uncaught PHP Exception - DB Error: no such field

Dears, Any idea on how to find the origin of this issue ? Site says 'unexpected error, please try again later' ... [Fri Dec 01 00:00:01.474392 2023] [error] [pid 319782] mod_proxy_fcgi.c(887): [client ...
Stefaan H's user avatar
1 vote
1 answer
76 views

CIVICRM WP critical error after migrating to PHP 8.1

I am running CIVICRM on WordPress 6.4.1 with PHP 7.4. Upgraded both platforms to the latest versions. After changing php version from 7.4 to 8.1, I get a WP critical error. After enabling WP debug,...
Association K's user avatar
0 votes
1 answer
17 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 ...
user15536's user avatar
1 vote
1 answer
96 views

CSV Download from a custom pop up

I have a function that lists score for a dog: <h3>Your Dog's Scores</h3> {crmButton href="#" class="button-name" title="Download CSV" icon="icon-class-...
Norm Dressler's user avatar
0 votes
0 answers
32 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 ...
John Bradford's user avatar
1 vote
3 answers
116 views

Safe way to upgrade to PHP 8.1

CiviCRM 5.66 now calls for PHP 8.1. What's a safe way to do this upgrade? Using cPanel I changed to 8.1 while logged in to a test site, and all was well - I'm sure I've done this the same way before ...
Andy Clark's user avatar
  • 4,775
1 vote
1 answer
56 views

DB Error: extension not found

I'm running CiviCRM 5.63.1 on a Joomla 4 environment and using PHP 8.0.28. cli.php keeps failing with these errors: [code] => -25 [message] => DB Error: extension not found [mode] => 16 [...
Paul Butler's user avatar
1 vote
1 answer
45 views

membershiprenewallink can't find membershiptype

everybody Sorry if it's a newbie question, I hope you could help anyway. My site (drupal 9 + civi + php 8.1) is actually working for anonymous users; as soon as a user login the WSoD appears (The ...
Alessandro Bronzo's user avatar
1 vote
1 answer
84 views

Undefined variable $store in Joomla.php on line 56 - CRM_Core_Permission_Joomla error

I am experiencing an issue with Joomla integration while using CiviCRM. I am getting the following error on line 56 of the "Joomla.php" file: PHP Warning: Undefined variable $store in /home/...
Fatih ATEŞ's user avatar
0 votes
1 answer
57 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 "...
Suri Gang's Hallen's user avatar
0 votes
1 answer
74 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
65 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: ...
Lifeboy's user avatar
  • 101
2 votes
0 answers
75 views

Not able to upgrade civicrm from 5.33 to 5.60

I'm trying to upgrade civicrm from 5.33 to 5.60 and facing below issue and not able to go forward. Any help is much appreciated [Error: Finish core DB updates 5.60.0] CRM_Core_Exception: Parameter &...
Srinivas Narula's user avatar
1 vote
0 answers
58 views

civicrm wordpress installation fails with: You have requested a non-existent service "spec_gatherer"

I'm trying to install Civicrm on Wordpress within this docker setup: https://lab.3sd.io/tools/civicrm-docker/ I tried the michaelmcandrew/civicrm:5.59.2-wordpress-php8.1 and civicrm:5.56.0-wordpress-...
yksflip's user avatar
  • 11
1 vote
1 answer
55 views

CiviCRM - Mailpoet plugin conflict with Html2Text

We upgraded CiviCRM to the most recent version back in November and had the problem in the related ticket with ANY report failing when ANY filter was enabled. The error was: Error thrown Call to ...
astroned's user avatar
2 votes
1 answer
88 views

How can I Add a File to an Activity in API v4?

I create activities using the API, and now I need to add an uploaded file (meaning it was uploaded in a Drupal form) to the activity. I tried this: $results = \Civi\Api4\Activity::create() ->...
Hershel's user avatar
  • 735
2 votes
1 answer
83 views

PHP Cannot Find File From Vendor Directory

After upgrading to PHP 8 (8.0.25) my CiviCRM install fails to be able to find /var/www/user/web/vendor/civicrm/civicrm-core/install/langs.php. This happens whenever I try and go to a /admin* page in ...
Drupal Learner's user avatar
2 votes
2 answers
79 views

Cannot run scheduled jobs - cli.php errors out with uninformative "Error"

I upgraded to 5.56.0 from 5.55.2, run in Joomla 3.10, and power with php 7.4.32 and apache httpd 2.4.54. The very next cron run produced "Error". Running by hand also produces "Error&...
Charlie Wilder's user avatar
2 votes
1 answer
544 views

Class "IntlDateFormatter" not found after install

Just did a clean install of Joomla 4.23 with Civi 5.54.0 running on PhP 8.0 via xampp. Install went fine including databasee upgrade but can't get to CiviCRM dashboard. Error message is 'Class "...
GrannyKat's user avatar
0 votes
1 answer
106 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 ...
somnolentsurfer's user avatar
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
Rajesh Baskaran's user avatar
1 vote
2 answers
55 views

Php Standalone Skript doesnt Query Database, APIv4 Simple Example

I tried to write a Standalone PHP-Skript for CiviCRM and looked after the Simple Example, but unfortunately it doesnt return something. <?php require_once '/var/www/html/wp-content/plugins/civicrm/...
gzwg's user avatar
  • 37
1 vote
1 answer
122 views

PHP 7.4 error, PHP 8 Fatal Error - TypeError: array_flip() related to Search Prefrences

I'm running against a fatal error when I attempt to update my user profile on a drupal9/civicrm5.49.5 setup (url path: /user/1/edit/profile/1). The error message is as follows: The website encountered ...
cray146's user avatar
  • 153
0 votes
1 answer
115 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 ...
Andy Clark's user avatar
  • 4,775
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 ...
NikolaeVarius's user avatar
1 vote
1 answer
25 views

Is there any way to apply two "NOT Like" conditions in Civicrm API?

Hi I am using Civicrm api v3. I am trying NOT Like condition with single condition it is working. But i need to apply two conditions with string1 and string2. $contribution = civicrm_api3('...
jagjeet's user avatar
  • 101
0 votes
0 answers
52 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 ...
dsmith63's user avatar
  • 387
1 vote
1 answer
58 views

CiviCRM WordPress Upgrade to 5.44.0 Error

When upgrading I get this error: Fatal error: Cannot redeclare Matrix\adjoint() (previously declared in /home/xxxxxxxx/public_html/wp-content/plugins/civicrm/civicrm/vendor/markbaker/matrix/classes/...
Paul Williams's user avatar
1 vote
1 answer
30 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
0 votes
1 answer
77 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 ...
flantascience's user avatar
1 vote
2 answers
43 views

CRM Core Exception Could not find valid session key form error

I know there are lots of threads on this with no clear solution. Posting again for any new input. Using cicivCRM 5.39.0.
emptyhometax's user avatar
0 votes
1 answer
120 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) ); ...
Norm Dressler's user avatar
1 vote
0 answers
103 views

Contributions in WordPress causing fatal errors

WordPress v5.6.1 CiviCRM 5.34.0 php 7.3 No custom extensions that affect contributions except CiviDiscount. When I try to add a new contribution or view contributions, I get an error and the log ...
Rose Lanigan's user avatar
  • 1,010
1 vote
1 answer
366 views

An active PHP session was detected

I'm running CiviCRM v5.32.2 and the CiviCRM WP REST API v0.1 plugin in Wordpress v5.6. In Wordpress Site Health Status i get this warning: An active PHP session was detected A PHP session was created ...
gebseng's user avatar
  • 81
0 votes
1 answer
65 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,...
Marko's user avatar
  • 867
2 votes
1 answer
65 views

DB error for sort_name when adding contacts with long names in 2 bytes UTF8 characters

The problem occurs when I try to add a contact (in the example it's an organization) with long name in Cyrillic (multiple words in it's name). I get the nativecode=1406 ** Data too long for column '...
Marko's user avatar
  • 867
3 votes
1 answer
26 views

membershipTypeValues hook not updating membership price

On my civicrm contribution page I have a field that I want to use to calculate the membership price. Currently Im trying to use the membershipTypeValues hook to edit the price after the contribution ...
Jeremy's user avatar
  • 31
1 vote
0 answers
47 views

moving DB to a new server - PHP errors

I have been attempting to move a civi install to a new site with little success. I know I have managed this before with another site, so I am especially mystified. I have reviewed the the guide at ...
kapn's user avatar
  • 897
1 vote
2 answers
159 views

Help to renew membership using the API

I would like to programatically renew memberships when a transaction has been completed in Woocommerce. I want my members to have a more consistent experience and since I do a lot through the ...
Norm Dressler's user avatar
1 vote
1 answer
76 views

Removing "List-Unsubscribe" from civimail headers (for when getting seemingly random unsubscribes)

There is a "header" entry automatically put into mailnigs from civimail (also when using flexmailer / mosaico) which some email clients use to enable unsubscribing (or opting out) from mailing lists. ...
Marsh's user avatar
  • 650
0 votes
1 answer
135 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
3 votes
1 answer
182 views

Exhausted memory error

I am getting reports from users of blank screens when going to register for an event. This does not happen for most users. The PHP error log says: PHP Fatal error: Allowed memory size of 536870912 ...
Edward Peters's user avatar
6 votes
1 answer
212 views

packages/Net/UserAgent/Detect/APC.php flagged as malicious by Wordfence Firewall

Our Wordpress firewall Wordfence has flagged packages/Net/UserAgent/Detect/APC.php as possibly a malicious file. Based on past experience, I assume this is a false positive. However, I posted it ...
George Lozier's user avatar

1
2 3 4 5