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) »
  • View Mail in Browser
Pages: [1]

Author Topic: View Mail in Browser  (Read 1326 times)

jennybertha

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 1
  • CiviCRM version: 4.4.4.
  • CMS version: joomla 3.x
  • MySQL version: 5.2.7
  • PHP version: 5.2
View Mail in Browser
January 11, 2012, 10:31:32 am
Hello,

I am sending a mailer to a small number of contact, and I want to add the Permalink token.  This token takes the user to view the mailing directly from the browser.

The token appears in the mailing, however when the user clicks on it, it sends to a page which says You do not have permission to execute this url.

The mailing is set to public, but even when I log on to the site, it still tells me I cannot access the page.

Any suggestions, Please

Thank you,

Jennifer

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: View Mail in Browser
January 11, 2012, 03:06:29 pm

This is potentially a bug in the joomla version. You might want to check and fix the code at:

components/com_civicrm/civicrm.php, function civicrm_check_permission

This should not be an issue with J 1.6+ which have better permissioning integration with CiviCRM

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

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: View Mail in Browser Fatal Error
March 02, 2012, 09:04:11 am
JUst hitting this now:
Joomla 2.5.1 / Civi4.1.1

When clicking the mail permalink two things are notable.

heres the link:
Quote
http//www.domain.com/index.php?option=com_civicrm&task=civicrm/mailing/view&reset=1&id=14&Itemid=179
1. IS a missing colon from the url generated
eg: it has "http//www" instead of "http://www"

2. There is an error permission issue: the backtrace says:
Code: [Select]
/home/domainxx/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 303
/home/domainxx/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php, fatal, 502
/home/domainxx/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System.php, permissionDenied, 185
/home/domainxx/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, permissionDenied, 147
/home/domainxx/public_html/components/com_civicrm/civicrm.php, invoke, 79
/home/domainxx/public_html/components/com_civicrm/civicrm.php, civicrm_invoke, 24
/home/domainxx/public_html/libraries/joomla/application/component/helper.php, require_once, 388
/home/domainxx/public_html/libraries/joomla/application/component/helper.php, executeComponent, 357
/home/domainxx/public_html/includes/application.php, renderComponent, 187
/home/domainxx/public_html/index.php, dispatch, 42


So this is where the fun starts:
Code: [Select]
            // check that we are permissioned to access this page
            if ( ! CRM_Core_Permission::checkMenuItem( $item ) ) {
                CRM_Utils_System::permissionDenied( );
                return;
            }

Joomlas page/Itemid issue?
A quick known public menu Itemid shoved on the end of the URL doesnt resolve it so I expect its deeper than that.....


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • View Mail in Browser

This forum was archived on 2017-11-26.