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 (Moderator: Piotr Szotkowski) »
  • Drupal WSOD on unrecognized email address subscription
Pages: [1]

Author Topic: Drupal WSOD on unrecognized email address subscription  (Read 1435 times)

bcaldwell

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
    • Pushing7
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.31
  • PHP version: 5.3.10
Drupal WSOD on unrecognized email address subscription
March 06, 2012, 02:02:20 pm
Hello,

Am trying to troubleshoot an error I'm seeing with the civicrm/mailing/subscribe pages.

For email addresses that are already in the system, the form works as expected. However, I'd like to allow anonymous users to subscribe to specific mailings. In cases where an unrecognized email is added, I get the dreaded Drupal  white screen of death...

For now, I've restricted access to the subscribe pages to registered users. However, the same behavior comes up if a registerd user (including the admin user) enters an address that CiviCRM doesn't already know about.

Here's the error that appears in the logs:

[Tue Mar 06 15:35:42 2012] [error] [client 24.196.137.28] PHP Fatal error:  Call to undefined function _civicrm_api3_store_values() in .../sites/all/modules/civicrm/api/v3/DeprecatedUtils.php on line 718, referer: http://<site>/civicrm/mailing/subscribe

My hope was that CiviCRM would create an entry for the unknown contact and subscribe them, but it seems that this isn't the case.

Hopefully, I'm just missing something simple related to permission here, but please let me know if you have any suggestions about what might be going on.

Thanks!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal WSOD on unrecognized email address subscription
March 06, 2012, 05:17:50 pm

can u please try this patch and see if it works (pretty sure it will take u a bit further along at least)

Code: [Select]

Index: api/v3/DeprecatedUtils.php
===================================================================
--- api/v3/DeprecatedUtils.php  (revision 38974)
+++ api/v3/DeprecatedUtils.php  (working copy)
@@ -25,6 +25,8 @@
   +--------------------------------------------------------------------+
 */
 
+require_once 'api/v3/utils.php';
+
 /*
  * These functions have been deprecated out of API v3 Utils folder as they are not part of the
  * API. Calling API functions directly is not supported & these functions are not called by any

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Joseph Lacey

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 3.x, 4.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.1
  • PHP version: 5.2, 5.3
Re: Drupal WSOD on unrecognized email address subscription
March 20, 2012, 06:13:05 am
Patch works for Drupal 7.12, CiviCRM 4.1.1.  The php function call error no longer occurs, and email addresses not already in the CRM are added and successfully subscribed to the mailing group.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Drupal WSOD on unrecognized email address subscription

This forum was archived on 2017-11-26.