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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Notice: Undefined variable: context in CRM_Mailing_Page_AJAX::getContactMailings
Pages: [1]

Author Topic: Notice: Undefined variable: context in CRM_Mailing_Page_AJAX::getContactMailings  (Read 348 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Notice: Undefined variable: context in CRM_Mailing_Page_AJAX::getContactMailings
December 17, 2014, 04:26:33 pm
The notice I get in 4.5.3 is ...

Notice: Undefined variable: context in CRM_Mailing_Page_AJAX::getContactMailings() (line 87 of /CRM/Mailing/Page/AJAX.php).

That line is ...

Code: [Select]
    $params['context'] = $context;
But the $context variable is never set. In analogous files (/CRM/Activity/Page/AJAX.php and /CRM/Batch/Page/AJAX.php) $context is set using ...

Code: [Select]
    $context = CRM_Utils_Type::escape(CRM_Utils_Array::value('context', $_GET), 'String');
or

Code: [Select]
    $context   =
      isset($_REQUEST['context']) ? CRM_Utils_Type::escape($_REQUEST['context'], 'String') : NULL;

Should $context be set or made NULL? How should it be set?

Thanks,

Ken

Barnacle

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
    • White Fuse Media
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.3
Re: Notice: Undefined variable: context in CRM_Mailing_Page_AJAX::getContactMailings
February 09, 2015, 02:43:41 am
Did you ever find a fix for this? I am getting the same error in 4.5.2
--
http://whitefusemedia.com/

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Notice: Undefined variable: context in CRM_Mailing_Page_AJAX::getContactMailings
February 11, 2015, 06:17:40 pm
Hi @Barnacle,

No response yet I'm afraid.

Ken

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Notice: Undefined variable: context in CRM_Mailing_Page_AJAX::getContactMailings

This forum was archived on 2017-11-26.