Skip to main content

Questions tagged [php]

PHP is a server-side scripting language designed primarily for web development. CiviCRM is written in PHP.

35 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
71 views

Update sequence for verrry old versions of CiviCRM, Wordpress and PHP

I'm tasked with updating an old installation of CiviCRM for another org - they have CiviCRM 4.6.3 and WordPress 4.5.18 running on a shared server that's on PHP 5.4. I don't yet know if it'll be ...
liblogger's user avatar
  • 1,004
3 votes
2 answers
104 views

I get a WSOD when I use the search function on CiviCRM

CiviCRM was working fine until I downloaded an extension called CiviRules. I looked into the API for field UFMatch, clicked around in there, and pressed execute (got no warning that it was going to ...
Janine's user avatar
  • 31
3 votes
0 answers
808 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 ...
William Mortada's user avatar
2 votes
1 answer
28 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
35 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
2 votes
0 answers
83 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
2 votes
1 answer
102 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
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: $...
yurg's user avatar
  • 2,053
2 votes
0 answers
45 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 ...
Logan Bear's user avatar
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 ...
KarinG - Semper IT's user avatar
1 vote
1 answer
19 views

Overriding core php file that define basic class HTML_Quickform in order to add a new method to CRM_Core_Form

The QuickForm.php file that I want to override is located in civicrm/packages/HTML/Quickform. I set my override directory to [civicrm.files]/override_php and put a copy of the originale file in ...
Syxys's user avatar
  • 23
1 vote
1 answer
81 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
0 answers
67 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
0 answers
107 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,050
1 vote
0 answers
51 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
  • 919
1 vote
0 answers
83 views

"You do not have permission to access this content" error after inputting data into an HTML form

I am working with an arts organization in my town and they recently migrated their civiCRM application (which is serving as a plugin to their wordpress website) from GoDaddy to InMotion. We are ...
pkollasch's user avatar
1 vote
0 answers
73 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 ...
Logan Bear's user avatar
1 vote
0 answers
27 views

How to use symfony and doctrine 2 framework for building an extension?

I created an extension using core php and CiviCRM tool(civix). I want to use a symfony(framework) and doctrine(ORM). Beacuse ORM provide some methods to store and retrieve methods are there. Symfony ...
deepak's user avatar
  • 197
1 vote
0 answers
32 views

Assigning a php associative array to JS?

I am trying to assign a php array to js. // On the Server: CRM_Core_Resources::singleton()->addVars('myNamespace', array('foo' => 'bar')); // In the JS file or inline script CRM.alert(CRM....
deepak's user avatar
  • 197
1 vote
0 answers
145 views

PHP Missing Extension "mcrypt" in Joomla

In my panel civicrm display mistake: "PHP Missing Extension "mcrypt". I am add screen with this post. In screen show this mistake. Pleas help me to fix this bug. PHP Missing Extension mcrypt joomla
Вася Пупкин's user avatar
1 vote
0 answers
24 views

Formatting search queries from Civi

Can anyone tell me where I can find the php or css that affects how search profiles are formatted? I want to alter how it looks on the webpage because it clashes with the flow of the website. Any ...
DerpyBirds's user avatar
1 vote
0 answers
56 views

Migrate Jooomla installation to new server

Having a terrible time when changing server and updating Joomla and Civicrm. Apologize for the length of this post, but thought is would be helpful to anyone who can address my issues. Here's the ...
GrannyKat's user avatar
  • 503
1 vote
0 answers
186 views

Duplicate Entry UI_External_Identifier MySQL Error

Everytime I try to import a backup of my CiviCRM sql database, I always get an error: #1062 - Duplicate entry '' for key 'UI_external_identifier' in phpmyadmin (4.7.0, PHP version: 7.1.4, mysql 5). I ...
Kristine's user avatar
  • 1,173
1 vote
0 answers
93 views

How to spoof users to unit test ACL logic

Starting to think about unit testing access control permission logic in API calls. Is there an established pattern for this? Within CiviUnitTestCase and ACLPermissionTest there are these snips: ...
ErichBSchulz's user avatar
  • 1,571
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: /...
Gustavo's user avatar
  • 11
1 vote
0 answers
116 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 ...
Andyg8's user avatar
  • 1,611
0 votes
0 answers
26 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
0 votes
0 answers
23 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
0 votes
0 answers
41 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
0 votes
1 answer
68 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
80 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
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
0 votes
0 answers
57 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
  • 419
0 votes
1 answer
98 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
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 ...
G H's user avatar
  • 1,146