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 CiviEvent (Moderator: Yashodha Chaku) »
  • tell a friend in template causes error
Pages: [1] 2

Author Topic: tell a friend in template causes error  (Read 7326 times)

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
tell a friend in template causes error
May 14, 2013, 01:50:43 pm
I'm unable to reproduce on demo site.
Running 4.3.3 mysql 5.5 as admin (user 1). trying to make any change to tell a friend in event template (even disable) causes error: "You do not have permission to access this page".
Here is part of the backtrace details:
Code: [Select]
**next call**
file:
/home/shofar/public_html/beta/sites/all/modules/civicrm/CRM/Event/Form/ManageEvent.php
line:               117
function:           fatal
class:              CRM_Core_Error
type:               ::
args:               Array
(
     [0] => You do not have permission to access this page
)


**next call**
file:
/home/shofar/public_html/beta/sites/all/modules/civicrm/CRM/Friend/Form/Event.php
line:               50
function:           preProcess
class:              CRM_Event_Form_ManageEvent
object:             CRM_Friend_Form_Event Object
(
     [_friendId:CRM_Friend_Form_Event:private] =>
     [_id] => 3
     [_first:protected] =>
     [_single:protected] => 1
     [_action:protected] => 2
     [_isTemplate:protected] =>
     [_templateId:protected] =>
     [_cancelURL:protected] =>
     [_campaignID:protected] =>
     [_state:protected] =>
     [_name:protected] => Event
     [_title:protected] =>
     [_options:protected] =>
     [_renderer:protected] =>
     [_actions] => Array
         (
         )

     [controller] => CRM_Core_Controller_Simple Object
         (
             [_title:protected] => Tell a Friend
             [_key] => b9e85df64eba482b93e9efb29cc8e444_1849
             [_scope:protected] =>
CRM_Friend_Form_Event_b9e85df64eba482b93e9efb29cc8e444_1849
             [_stateMachine:protected] => CRM_Core_StateMachine Object
                 (
                     [_controller:protected] => CRM_Core_Controller_Simple
Object
  *RECURSION*
                     [_states:protected] => Array
                         (
                             [Event] => CRM_Core_State Object
                                 (
                                     [_name:protected] => Event
                                     [_type:protected] => 3
                                     [_back:protected] =>
                                     [_next:protected] =>
                                     [_stateMachine:protected] =>
CRM_Core_StateMachine Object
  *RECURSION*
                                 )

                         )

                     [_pages:protected] => Array
                         (
                             [CRM_Friend_Form_Event] =>
                         )

                     [_pageNames:protected] => Array
                         (
                             [0] => Event
                         )

                     [_action:protected] => 0
                     [_name:protected] =>
                 )

             [_embedded:protected] =>
             [_skipRedirection:p...
type:               ->
args:               Array
(
)


**next call**
file:
/home/shofar/public_html/beta/sites/all/modules/civicrm/CRM/Core/Form.php
line:               336
function:           preProcess
class:              CRM_Friend_Form_Event
object:             CRM_Friend_Form_Event Object
(
     [_friendId:CRM_Friend_Form_Event:private] =>
     [_id] => 3
     [_first:protected] =>
     [_single:protected] => 1
     [_action:protected] => 2
     [_isTemplate:protected] =>
     [_templateId:protected] =>
     [_cancelURL:protected] =>
     [_campaignID:protected] =>
     [_state:protected] =>
     [_name:protected] => Event
     [_title:protected] =>
     [_options:protected] =>
     [_renderer:protected] =>
     [_actions] => Array
         (
         )

     [controller] => CRM_Core_Controller_Simple Object
         (
             [_title:protected] => Tell a Friend
             [_key] => b9e85df64eba482b93e9efb29cc8e444_1849
             [_scope:protected] =>
CRM_Friend_Form_Event_b9e85df64eba482b93e9efb29cc8e444_1849
             [_stateMachine:protected] => CRM_Core_StateMachine Object
                 (
                     [_controller:protected] => CRM_Core_Controller_Simple
Object
  *RECURSION*
                     [_states:protected] => Array
                         (
                             [Event] => CRM_Core_State Object
                                 (
                                     [_name:protected] => Event
                                     [_type:protected] => 3
                                     [_back:protected] =>
                                     [_next:protected] =>
                                     [_stateMachine:protected] =>
CRM_Core_StateMachine Object
  *RECURSION*
                                 )

                         )

                     [_pages:protected] => Array
                         (
                             [CRM_Friend_Form_Event] =>
                         )

                     [_pageNames:protected] => Array
                         (
                             [0] => Event
                         )

                     [_action:protected] => 0
                     [_name:protected] =>
                 )

             [_embedded:protected] =>
             [_skipRedirection:p...
type:               ->
args:               Array
(
)


**next call**
file:
/home/shofar/public_html/beta/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php
line:               121
function:           buildForm
class:              CRM_Core_Form
object:             CRM_Friend_Form_Event Object
(
     [_friendId:CRM_Friend_Form_Event:private] =>
     [_id] => 3
     [_first:protected] =>
     [_single:protected] => 1
     [_action:protected] => 2
     [_isTemplate:protected] =>
     [_templateId:protected] =>
     [_cancelURL:protected] =>
     [_campaignID:protected] =>
     [_state:protected] =>
     [_name:protected] => Event
     [_title:protected] =>
     [_options:protected] =>
     [_renderer:protected] =>
     [_actions] => Array
         (
         )

     [controller] => CRM_Core_Controller_Simple Object
         (
             [_title:protected] => Tell a Friend
             [_key] => b9e85df64eba482b93e9efb29cc8e444_1849
             [_scope:protected] =>
CRM_Friend_Form_Event_b9e85df64eba482b93e9efb29cc8e444_1849
             [_stateMachine:protected] => CRM_Core_StateMachine Object
                 (
                     [_controller:protected] => CRM_Core_Controller_Simple
Object
  *RECURSION*
                     [_states:protected] => Array
                         (
                             [Event] => CRM_Core_State Object
                                 (
                                     [_name:protected] => Event
                                     [_type:protected] => 3
                                     [_back:protected] =>
                                     [_next:protected] =>
                                     [_stateMachine:protected] =>
CRM_Core_StateMachine Object
  *RECURSION*
                                 )

                         )

                     [_pages:protected] => Array
                         (
                             [CRM_Friend_Form_Event] =>
                         )

                     [_pageNames:protected] => Array
                         (
                             [0] => Event
                         )

                     [_action:protected] => 0
                     [_name:protected] =>
                 )

             [_embedded:protected] =>
             [_skipRedirection:p...
type:               ->
args:               Array
(
)



sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: tell a friend in template causes error
May 14, 2013, 01:51:14 pm
more backtrace:
Code: [Select]
**next call**
file:
/home/shofar/public_html/beta/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php
line:               203
function:           perform
class:              CRM_Core_QuickForm_Action_Upload
object:             CRM_Core_QuickForm_Action_Upload Object
(
     [_uploadNames:protected] => Array
         (
             [0] => attachFile_1
             [1] => attachFile_2
             [2] => attachFile_3
             [3] => uploadFile
         )

     [_uploadDir:protected] =>
/home/shofar/public_html/beta/sites/default/files/civicrm/upload/
     [_stateMachine:protected] => CRM_Core_StateMachine Object
         (
             [_controller:protected] => CRM_Core_Controller_Simple Object
                 (
                     [_title:protected] => Tell a Friend
                     [_key] => b9e85df64eba482b93e9efb29cc8e444_1849
                     [_scope:protected] =>
CRM_Friend_Form_Event_b9e85df64eba482b93e9efb29cc8e444_1849
                     [_stateMachine:protected] => CRM_Core_StateMachine Object
  *RECURSION*
                     [_embedded:protected] =>
                     [_skipRedirection:protected] =>
                     [_print] => 0
                     [_generateQFKey] => 1
                     [_QFResponseType] => html
                     [_parent:protected] =>
                     [_destination] =>
                     [_pages] => Array
                         (
                             [Event] => CRM_Friend_Form_Event Object
                                 (

[_friendId:CRM_Friend_Form_Event:private]
=>
                                     [_id] => 3
                                     [_first:protected] =>
                                     [_single:protected] => 1
                                     [_action:protected] => 2
                                     [_isTemplate:protected] =>
                                     [_templateId:protected] =>
                                     [_cancelURL:protected] =>
                                     [_campaignID:protected] =>
                                     [_state:protected] =>
                                     [_name:protected] => Event
                                     [_ti...
type:               ->
args:               Array
(
     [0] => CRM_Friend_Form_Event Object
         (
             [_friendId:CRM_Friend_Form_Event:private] =>
             [_id] => 3
             [_first:protected] =>
             [_single:protected] => 1
             [_action:protected] => 2
             [_isTemplate:protected] =>
             [_templateId:protected] =>
             [_cancelURL:protected] =>
             [_campaignID:protected] =>
             [_state:protected] =>
             [_name:protected] => Event
             [_title:protected] =>
             [_options:protected] =>
             [_renderer:protected] =>
             [_actions] => Array
                 (
                 )

             [controller] => CRM_Core_Controller_Simple Object
                 (
                     [_title:protected] => Tell a Friend
                     [_key] => b9e85df64eba482b93e9efb29cc8e444_1849
                     [_scope:protected] =>
CRM_Friend_Form_Event_b9e85df64eba482b93e9efb29cc8e444_1849
                     [_stateMachine:protected] => CRM_Core_StateMachine Object
                         (
                             [_controller:protected] =>
CRM_Core_Controller_Simple Object
  *RECURSION*
                             [_states:protected] => Array
                                 (
                                     [Event] => CRM_Core_State Object
                                         (
                                             [_name:protected] => Event
                                             [_type:protected] => 3
                                             [_back:protected] =>
                                             [_next:protected] =>
                                             [_stateMachine:protected] =>
CRM_Core_StateMachine Object
  *RECURSION*
                                         )

                                 )

                             [_pages:protected] => Array
                                 (
                                     [CRM_Friend_Form_Event] =>
          ...

**next call**
file:
/home/shofar/public_html/beta/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php
line:               103
function:           handle
class:              HTML_QuickForm_Controller
object:             CRM_Core_Controller_Simple Object
(
     [_title:protected] => Tell a Friend
     [_key] => b9e85df64eba482b93e9efb29cc8e444_1849
     [_scope:protected] =>
CRM_Friend_Form_Event_b9e85df64eba482b93e9efb29cc8e444_1849
     [_stateMachine:protected] => CRM_Core_StateMachine Object
         (
             [_controller:protected] => CRM_Core_Controller_Simple Object
  *RECURSION*
             [_states:protected] => Array
                 (
                     [Event] => CRM_Core_State Object
                         (
                             [_name:protected] => Event
                             [_type:protected] => 3
                             [_back:protected] =>
                             [_next:protected] =>
                             [_stateMachine:protected] =>
CRM_Core_StateMachine Object
  *RECURSION*
                         )

                 )

             [_pages:protected] => Array
                 (
                     [CRM_Friend_Form_Event] =>
                 )

             [_pageNames:protected] => Array
                 (
                     [0] => Event
                 )

             [_action:protected] => 0
             [_name:protected] =>
         )

     [_embedded:protected] =>
     [_skipRedirection:protected] =>
     [_print] => 0
     [_generateQFKey] => 1
     [_QFResponseType] => html
     [_parent:protected] =>
     [_destination] =>
     [_pages] => Array
         (
             [Event] => CRM_Friend_Form_Event Object
                 (
                     [_friendId:CRM_Friend_Form_Event:private] =>
                     [_id] => 3
                     [_first:protected] =>
                     [_single:protected] => 1
                     [_action:protected] => 2
                     [_isTemplate:protected] =>
                     [_templateId:protected] =>
                     [_cancelURL:protected] =>
                     [_campaignID:protected] =>
                     [_state:protected] =>
                     [_name:protected] => Event
              ...
type:               ->
args:               Array
(
     [0] => CRM_Friend_Form_Event Object
         (
             [_friendId:CRM_Friend_Form_Event:private] =>
             [_id] => 3
             [_first:protected] =>
             [_single:protected] => 1
             [_action:protected] => 2
             [_isTemplate:protected] =>
             [_templateId:protected] =>
             [_cancelURL:protected] =>
             [_campaignID:protected] =>
             [_state:protected] =>
             [_name:protected] => Event
             [_title:protected] =>
             [_options:protected] =>
             [_renderer:protected] =>
             [_actions] => Array
                 (
                 )

             [controller] => CRM_Core_Controller_Simple Object
                 (
                     [_title:protected] => Tell a Friend
                     [_key] => b9e85df64eba482b93e9efb29cc8e444_1849
                     [_scope:protected] =>
CRM_Friend_Form_Event_b9e85df64eba482b93e9efb29cc8e444_1849
                     [_stateMachine:protected] => CRM_Core_StateMachine Object
                         (
                             [_controller:protected] =>
CRM_Core_Controller_Simple Object
  *RECURSION*
                             [_states:protected] => Array
                                 (
                                     [Event] => CRM_Core_State Object
                                         (
                                             [_name:protected] => Event
                                             [_type:protected] => 3
                                             [_back:protected] =>
                                             [_next:protected] =>
                                             [_stateMachine:protected] =>
CRM_Core_StateMachine Object
  *RECURSION*
                                         )

                                 )

                             [_pages:protected] => Array
                                 (
                                     [CRM_Friend_Form_Event] =>
          ...

**next call**
file:
/home/shofar/public_html/beta/sites/all/modules/civicrm/CRM/Core/Controller.php
line:               316
function:           handle
class:              HTML_QuickForm_Page
object:             CRM_Friend_Form_Event Object
(
     [_friendId:CRM_Friend_Form_Event:private] =>
     [_id] => 3
     [_first:protected] =>
     [_single:protected] => 1
     [_action:protected] => 2
     [_isTemplate:protected] =>
     [_templateId:protected] =>
     [_cancelURL:protected] =>
     [_campaignID:protected] =>
     [_state:protected] =>
     [_name:protected] => Event
     [_title:protected] =>
     [_options:protected] =>
     [_renderer:protected] =>
     [_actions] => Array
         (
         )

     [controller] => CRM_Core_Controller_Simple Object
         (
             [_title:protected] => Tell a Friend
             [_key] => b9e85df64eba482b93e9efb29cc8e444_1849
             [_scope:protected] =>
CRM_Friend_Form_Event_b9e85df64eba482b93e9efb29cc8e444_1849
             [_stateMachine:protected] => CRM_Core_StateMachine Object
                 (
                     [_controller:protected] => CRM_Core_Controller_Simple
Object
  *RECURSION*
                     [_states:protected] => Array
                         (
                             [Event] => CRM_Core_State Object
                                 (
                                     [_name:protected] => Event
                                     [_type:protected] => 3
                                     [_back:protected] =>
                                     [_next:protected] =>
                                     [_stateMachine:protected] =>
CRM_Core_StateMachine Object
  *RECURSION*
                                 )

                         )

                     [_pages:protected] => Array
                         (
                             [CRM_Friend_Form_Event] =>
                         )

                     [_pageNames:protected] => Array
                         (
                             [0] => Event
                         )

                     [_action:protected] => 0
                     [_name:protected] =>
                 )

             [_embedded:protected] =>
             [_skipRedirection:p...
type:               ->
args:               Array
(
     [0] => upload
)


**next call**
file:
/home/shofar/public_html/beta/sites/all/modules/civicrm/CRM/Utils/Wrapper.php
line:               117
function:           run
class:              CRM_Core_Controller
object:             CRM_Core_Controller_Simple Object
(
     [_title:protected] => Tell a Friend
     [_key] => b9e85df64eba482b93e9efb29cc8e444_1849
     [_scope:protected] =>
CRM_Friend_Form_Event_b9e85df64eba482b93e9efb29cc8e444_1849
     [_stateMachine:protected] => CRM_Core_StateMachine Object
         (
             [_controller:protected] => CRM_Core_Controller_Simple Object
  *RECURSION*
             [_states:protected] => Array
                 (
                     [Event] => CRM_Core_State Object
                         (
                             [_name:protected] => Event
                             [_type:protected] => 3
                             [_back:protected] =>
                             [_next:protected] =>
                             [_stateMachine:protected] =>
CRM_Core_StateMachine Object
  *RECURSION*
                         )

                 )

             [_pages:protected] => Array
                 (
                     [CRM_Friend_Form_Event] =>
                 )

             [_pageNames:protected] => Array
                 (
                     [0] => Event
                 )

             [_action:protected] => 0
             [_name:protected] =>
         )

     [_embedded:protected] =>
     [_skipRedirection:protected] =>
     [_print] => 0
     [_generateQFKey] => 1
     [_QFResponseType] => html
     [_parent:protected] =>
     [_destination] =>
     [_pages] => Array
         (
             [Event] => CRM_Friend_Form_Event Object
                 (
                     [_friendId:CRM_Friend_Form_Event:private] =>
                     [_id] => 3
                     [_first:protected] =>
                     [_single:protected] => 1
                     [_action:protected] => 2
                     [_isTemplate:protected] =>
                     [_templateId:protected] =>
                     [_cancelURL:protected] =>
                     [_campaignID:protected] =>
                     [_state:protected] =>
                     [_name:protected] => Event
              ...
type:               ->
args:               Array
(
)


**next call**
file:
/home/shofar/public_html/beta/sites/all/modules/civicrm/CRM/Core/Invoke.php
line:               266
function:           run
class:              CRM_Utils_Wrapper
object:             CRM_Utils_Wrapper Object
(
     [_controller:protected] => CRM_Core_Controller_Simple Object
         (
             [_title:protected] => Tell a Friend
             [_key] => b9e85df64eba482b93e9efb29cc8e444_1849
             [_scope:protected] =>
CRM_Friend_Form_Event_b9e85df64eba482b93e9efb29cc8e444_1849
             [_stateMachine:protected] => CRM_Core_StateMachine Object
                 (
                     [_controller:protected] => CRM_Core_Controller_Simple
Object
  *RECURSION*
                     [_states:protected] => Array
                         (
                             [Event] => CRM_Core_State Object
                                 (
                                     [_name:protected] => Event
                                     [_type:protected] => 3
                                     [_back:protected] =>
                                     [_next:protected] =>
                                     [_stateMachine:protected] =>
CRM_Core_StateMachine Object
  *RECURSION*
                                 )

                         )

                     [_pages:protected] => Array
                         (
                             [CRM_Friend_Form_Event] =>
                         )

                     [_pageNames:protected] => Array
                         (
                             [0] => Event
                         )

                     [_action:protected] => 0
                     [_name:protected] =>
                 )

             [_embedded:protected] =>
             [_skipRedirection:protected] =>
             [_print] => 0
             [_generateQFKey] => 1
             [_QFResponseType] => html
             [_parent:protected] =>
             [_destination] =>
             [_pages] => Array
                 (
                     [Event] => CRM_Friend_Form_Event Object
                         (
                             [_friendId:CRM_Friend_Form_Event:private] =>
                             [_id] => 3
                             [_fir...
type:               ->
args:               Array
(
     [0] => CRM_Friend_Form_Event
     [1] => Tell a Friend
     [2] =>
)


**next call**
file:
/home/shofar/public_html/beta/sites/all/modules/civicrm/CRM/Core/Invoke.php
line:               70
function:           runItem
class:              CRM_Core_Invoke
type:               ::
args:               Array
(
     [0] => Array
         (
             [id] => 253
             [domain_id] => 1
             [path] => civicrm/event/manage/friend
             [title] => Tell a Friend
             [access_callback] => Array
                 (
                     [0] => CRM_Core_Permission
                     [1] => checkMenu
                 )

             [access_arguments] => Array
                 (
                     [0] => Array
                         (
                             [0] => access CiviEvent
                         )

                     [1] => and
                 )

             [page_callback] => CRM_Friend_Form_Event
             [breadcrumb] => Array
                 (
                     [0] => Array
                         (
                             [title] => CiviCRM
                             [url] => /civicrm?reset=1
                         )

                     [1] => Array
                         (
                             [title] => CiviEvent Dashboard
                             [url] => /civicrm/event?reset=1
                         )

                     [2] => Array
                         (
                             [title] => Manage Events
                             [url] => /civicrm/event/manage?reset=1
                         )

                 )

             [component_id] => 1
             [is_ssl] => 1
             [weight] => 940
             [type] => 1
             [page_type] => 0
             [page_arguments] =>
         )

)


**next call**
file:
/home/shofar/public_html/beta/sites/all/modules/civicrm/CRM/Core/Invoke.php
line:               52
function:           _invoke
class:              CRM_Core_Invoke
type:               ::
args:               Array
(
     [0] => Array
         (
             [0] => civicrm
             [1] => event
             [2] => manage
             [3] => friend
         )

)

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: tell a friend in template causes error
May 16, 2013, 06:33:44 pm
Any thoughts on how to debug? Not sure why upload is called with tell a a friend.

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: tell a friend in template causes error
May 16, 2013, 07:25:36 pm

you will need to add some debugging code here:

CRM/Event/BAO/Event.php, function checkPermission

and figure out why that call is returning false even for admin user

are u using event acls?

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

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: tell a friend in template causes error
May 16, 2013, 08:29:49 pm
I did have some ACL stuff set up but I tried to 1) add full access in drupal (I assume that overrides ACL) and also 2) disabled ACL entirely HOWEVER ....

Tried to debug and found 2 things that appear to me as a system builder / not a developer:
1. var_dump($eventId) showed 'string(1) "7"' but the event ID was 26. Note that THERE IS NO EVENT ID number 7 IN DB!

Also ....
2. I see a couple of calls that potentially seem redundant:
 if (CRM_Core_Permission::check('edit all events')) {
        $permissions[CRM_Core_Permission::EDIT] = array_keys($allEvents);
 if (CRM_Core_Permission::check('edit all events')) {
        $permissions[CRM_Core_Permission::VIEW] = array_keys($allEvents);

Could referenced EventID be messed up somehow?  I could see why that might not matter very often but since the event is deleted it would trigger even for Admin.....  Can't debug further right now ...

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: tell a friend in template causes error
May 16, 2013, 08:30:20 pm
NOTE - I am no longer testing on a  template.  this is also a problem on an event....

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
REPRODUCEABLE ON DEMO
May 16, 2013, 10:45:00 pm
Ok, can reproduce on demo. Create several events. Then delete them. Create a new event and toggle tell a friend. Looks like eventId used for check permission is incorrect so checks permission of deleted event.

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: tell a friend in template causes error
May 17, 2013, 06:35:44 am

can you give the url of one that fails now. a bit faster for us to jump on it and take a look now

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

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: tell a friend in template causes error
May 17, 2013, 06:39:32 am
Location   http://beta.xxx/civicrm/event/manage/friend
Referrer   http://beta.xxx/civicrm/event/manage/friend?reset=1&action=update&id=26

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: tell a friend in template causes error
May 17, 2013, 06:43:15 am

i meant the demo url and event id where u managed to reproduce the issue

thanx

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

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: tell a friend in template causes error
May 17, 2013, 07:17:02 am
Oh sorry. yeah the demo has been wiped. Im not at my desk now. Had to create a bunch of events to bump up eventid  then delete. Im pretty sure it is just sending wrong event id. Also I think permission function saw event id as a string. Perhaps a type conversion issue?   Not sure I can test today. 

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: tell a friend in template causes error
May 17, 2013, 05:28:19 pm
sonicthoughts :

We 'll investigate this and get back to you on this soon.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
REPRODUCED ON DEMO - tell a friend in EVENT causes error
May 20, 2013, 09:33:43 am
Ok, I reproduced it. 
Created 10 test events probably didn't need that many (goal was to bump event ID increment)
Deleted test event 1 to 5
Tried to disable "Tell A Friend" on Event 9
Caused an error:
Sorry but we are not able to provide this at the moment.
You do not have permission to access this page

I think it is the event ID handling.

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: tell a friend in template causes error
May 20, 2013, 10:03:56 am

hey shawn:

can u please file an issue for this. i'll take a look at it later this morning and hopefully have a fix for it by the time the issue is filed :)

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

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Logged Issue: tell a friend in template causes error
May 20, 2013, 10:13:31 am
ok - http://issues.civicrm.org/jira/browse/CRM-12667

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • tell a friend in template causes error

This forum was archived on 2017-11-26.