Questions tagged [php]

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

25 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
41 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 ...
user avatar
  • 1,004
3 votes
2 answers
86 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 ...
user avatar
  • 31
2 votes
0 answers
60 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: $...
user avatar
  • 1,350
2 votes
0 answers
39 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 ...
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 ...
user avatar
2 votes
0 answers
751 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 ...
user avatar
1 vote
0 answers
64 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 ...
user avatar
1 vote
1 answer
132 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 ...
user avatar
  • 81
1 vote
0 answers
39 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 ...
user avatar
  • 565
1 vote
0 answers
55 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 ...
user avatar
1 vote
0 answers
42 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 ...
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 ...
user avatar
  • 197
1 vote
0 answers
25 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....
user avatar
  • 197
1 vote
0 answers
134 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
user avatar
1 vote
0 answers
23 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 ...
user avatar
1 vote
0 answers
49 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 ...
user avatar
  • 473
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 ...
user avatar
  • 1,109
1 vote
0 answers
83 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: ...
user avatar
  • 1,561
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: /...
user avatar
  • 11
1 vote
0 answers
113 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 ...
user avatar
  • 1,561
0 votes
0 answers
18 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 ...
user avatar
0 votes
0 answers
14 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 ...
user avatar
  • 355
0 votes
0 answers
15 views

How should I configure default time zones for Wordpress, CiviCRM, PHP, and MySQL?

Wordpress's time zone is set to "New York", PHP is set to "UTF", and MySQL is set to a UK time zone. Is the proper configuration to set each of these to "New York", or ...
user avatar
  • 355
0 votes
1 answer
24 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 ...
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 ...
user avatar
  • 1,106