CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using CiviSMTP (Moderator: shane) »
  • IMPORTANT: Patch for SOAP authenticate in Wordpress, CiviCRM 4.3+
Pages: [1]

Author Topic: IMPORTANT: Patch for SOAP authenticate in Wordpress, CiviCRM 4.3+  (Read 2061 times)

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
IMPORTANT: Patch for SOAP authenticate in Wordpress, CiviCRM 4.3+
July 03, 2013, 11:39:32 pm
When testing account settings I get:

Civimail User Check : could not authenticate because: Call to undefined function wp_authenticate()





CiviCRM 4.3.0
WordPres 3.5.1
« Last Edit: July 04, 2013, 01:52:52 pm by shane »

alleyla

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5.2
Re: Cannot authenticate Wordpress soap_user
July 04, 2013, 09:43:33 am
We are looking into it.

alleyla

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5.2
Re: Cannot authenticate Wordpress soap_user
July 04, 2013, 01:21:57 pm
Here's an unofficial patch that will fix the issue. We will submit a bug with CiviCRM and possibly this fix will make it into the next release.

You will need to edit 2 files:

1. <your_wp_location>/wp-content/plugins/civicrm/civicrm/CRM/Utils/SoapServer

apply the changes in attached patch file CRM_Utils_SoapServer.php.diff.txt

2. <your_wp_location>/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php

apply the changes in attached patch file CRM_Utils_System_WordPress.php.diff.txt

Email us  support@civismtp.com if you have any issues with this fix.

alleyla

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5.2
Re: Cannot authenticate Wordpress soap_user
July 04, 2013, 01:51:01 pm
We have filed a bug with proposed fix here:

http://issues.civicrm.org/jira/browse/CRM-13007

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Re: IMPORTANT: Patch for SOAP authenticate in Wordpress, CiviCRM 4.3+
July 04, 2013, 06:48:55 pm
Thanks again for the quick turnaround. I have applied and tested these patches and they work. I am now authenticated and test  email works.

alleyla

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5.2
Re: IMPORTANT: Patch for SOAP authenticate in Wordpress, CiviCRM 4.3+
July 04, 2013, 07:02:02 pm
Wonderful news, glad it worked!

ericp

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: Latest
  • CMS version: WordPress
  • MySQL version: Latest
  • PHP version: Latest
Re: IMPORTANT: Patch for SOAP authenticate in Wordpress, CiviCRM 4.3+
July 04, 2013, 09:00:11 pm
I can confirm as well that the patches do indeed work. Thanks for the speedy, holiday response!

alleyla

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5.2
Re: IMPORTANT: Patch for SOAP authenticate in Wordpress, CiviCRM 4.3+
July 11, 2014, 09:25:05 am
Note, this issue is still present in CiviCRM 4.4.3+

However you only need to apply the changes described above for the SoapServer.php file.

Go to <path_to_wordpress>/wp-content/plugins/civicrm/civicrm/CRM/Utils/SoapServer.php

and change line 128 from
Code: [Select]
if ($this->ufClass == 'CRM_Utils_System_Joomla'){to
Code: [Select]
if ($this->ufClass == 'CRM_Utils_System_Joomla' || $this->ufClass == 'CRM_Utils_System_WordPress'){
« Last Edit: November 17, 2014, 04:52:16 pm by alleyla »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using CiviSMTP (Moderator: shane) »
  • IMPORTANT: Patch for SOAP authenticate in Wordpress, CiviCRM 4.3+

This forum was archived on 2017-11-26.