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) »
  • Can't see public mailings if not logged in
Pages: 1 [2]

Author Topic: Can't see public mailings if not logged in  (Read 2216 times)

kennedy

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 5
  • CiviCRM version: 4.5.5
  • CMS version: Drupal
  • PHP version: 5.3.10
Re: Can't see public mailings if not logged in
February 19, 2014, 10:53:20 pm
Hi Lobo, see attached screen capture for error details when both anonymous and authenticated users try to optOut/unsubscribe while viewing newsletter on browser, screen capture from version 4.4.4 and seems to be the same issue with version 4.4.3. I don't know if i am able to submit a patch for this, not good in programming.
« Last Edit: February 19, 2014, 11:22:49 pm by kennedy »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Can't see public mailings if not logged in
February 22, 2014, 06:39:31 pm
I've replicated the bug locally and tested Eileen's suggested patch. The PR for 4.4.5 is here awaiting final review by Kurund:
https://github.com/civicrm/civicrm-core/pull/2547

You should be able to patch your 4.4.4 site if you want to from:
https://github.com/civicrm/civicrm-core/pull/2547.patch
Protect your investment in CiviCRM by  becoming a Member!

petbos157

  • I’m new here
  • *
  • Posts: 26
  • Karma: 2
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1.71
  • PHP version: 5.3.3
Re: Can't see public mailings if not logged in
February 27, 2014, 05:31:01 am
Same here. We upgraded to 4.4.4 and anonymous users cannot see the public mailing.

When an anonymous users want to view a mailing (ex. /civicrm/mailing/view?reset=1&id=427 )
then the following error-messages appaers.

Within the 'ConfigAnLog' file :
Feb 27 14:10:25  [info] CiviMail will not send email to a non-existent contact: 0

Within the httpd-logfile :
[Thu Feb 27 14:10:25 2014] [error] [client 10.1.0.21] PHP Fatal error:  Call to a member function getHTMLBody() on a non-object in /var/www/html/cms/sites/all/modules/civicrm/CRM/Mailing/Page/View.php on line 154

The suggested patch solved the problem.
Thank you !!!!
 
« Last Edit: February 27, 2014, 06:00:09 am by petbos157 »

galgeek

  • I’m new here
  • *
  • Posts: 24
  • Karma: 1
  • CiviCRM version: 4.6.0
  • CMS version: drupal 7.36
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Can't see public mailings if not logged in
April 03, 2014, 06:28:59 pm
This patch works for my 4.4.4 site, too.

I wonder if this might be a related issue: Opt Out and Unsubscribe requests have recently been failing with a fatal error. The initial Opt Out page renders fine; confirming the request produces the error.

some details, thanks to the CiviCRM error reporting extension...

REDIRECT_QUERY_STRING:reset=1&jid=303&qid=24820&h=e77e221d66201edc%C3%A2%EF%BF%BD%EF%BF%BD&confirm=1
REDIRECT_URL:       /civicrm/mailing/optout
GATEWAY_INTERFACE:  CGI/1.1
SERVER_PROTOCOL:    HTTP/1.1
REQUEST_METHOD:     POST
QUERY_STRING:       reset=1&jid=303&qid=24820&h=e77e221d66201edc%C3%A2%EF%BF%BD%EF%BF%BD&confirm=1
REQUEST_URI:        /civicrm/mailing/optout?reset=1&jid=303&qid=24820&h=e77e221d66201edc%C3%A2%EF%BF%BD%EF%BF%BD&confirm=1
SCRIPT_NAME:        /index.php
PHP_SELF:           /index.php
REQUEST_TIME:       1396572088
argv:               Array
(
   
  • => reset=1&jid=303&qid=24820&h=e77e221d66201edc%C3%A2%EF%BF%BD%EF%BF%BD&confirm=1

)

argc:               1

***BACKTRACE***
#0 /home/.../www/www/sites/default/civicrm/custom_ext/ca.bidon.reporterror/reporterror.php(207): reporterror_civicrm_generatereport("...", (Array:2), NULL)
#1 /home/.../www/www/sites/all/modules/civicrm/CRM/Core/Error.php(306): reporterror_civicrm_handler((Array:2))
#2 /home/.../www/www/sites/all/modules/civicrm/CRM/Mailing/Page/Common.php(54): CRM_Core_Error::fatal("There was an error in your request")
#3 /home/.../www/www/sites/all/modules/civicrm/CRM/Mailing/Page/Optout.php(38): CRM_Mailing_Page_Common->run()
#4 /home/.../www/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(323): CRM_Mailing_Page_Optout->run((Array:3), NULL)
#5 /home/.../www/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(72): CRM_Core_Invoke::runItem((Array:15))
#6 /home/.../www/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3))
#7 /home/.../www/www/sites/all/modules/civicrm/drupal/civicrm.module(456): CRM_Core_Invoke::invoke((Array:3))
#8 [internal function](): civicrm_invoke("mailing", "optout")
#9 /home/.../www/www/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:2))
#10 /home/.../www/www/index.php(21): menu_execute_active_handler()
#11 {main}

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Can't see public mailings if not logged in

This forum was archived on 2017-11-26.