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) »
  • CiviEvent permissions problem [Resolved]
Pages: [1]

Author Topic: CiviEvent permissions problem [Resolved]  (Read 12674 times)

benmoreassynt

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Joomla 2.5.19/Wordpress 3.8
  • MySQL version: 5.5.35
  • PHP version: 5.3.10
CiviEvent permissions problem [Resolved]
May 27, 2013, 12:17:23 pm
Hi,

Cleaning up a database that had some problems after an upgrade. I'm now left with a single remaining problem. I cannot get any event to be accessible from the public part of the site.

The error report is:
Code: [Select]
Sorry but we are not able to provide this at the moment.
You do not have permission to access this page

Return to home page.

This is visible for superusers and regular users.

I've tried everything in order to try to fix the permissions, in case it was something simple I was missing.

For instance
1. Disabled all CiviCRM ACL controls
2. Set the Joomla permissions for 'public' to 'allow' for everything.

In particular, I've made sure that CiviCRM is accessible to public users, and that CiviEvent has correct permissions. However seeing as even the superadmin is blocked, it seems obvious that something is incorrect.

CiviEvents settings for 'Public'
CiviEvent: access CiviEvent         Allowed
CiviEvent: edit event participants         Not Allowed
CiviEvent: edit all events         Not Allowed
CiviEvent: register for events         Allowed
CiviEvent: view event info         Allowed
CiviEvent: view event participants         Not Allowed
CiviEvent: delete in CiviEvent         Not Allowed

Any ideas? Could this be related to a database issue whereby default install settings have been lost and need to be restored? That would be possible with this install, where I've had to spend a lot of time fixing the database schema and data.
« Last Edit: May 29, 2013, 02:46:03 pm by benmoreassynt »

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: CiviEvent permissions problem
May 27, 2013, 04:49:25 pm

please ensure you have the

register for events

permission enabled for event registation. u do not need access CiviEvent for this

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

benmoreassynt

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Joomla 2.5.19/Wordpress 3.8
  • MySQL version: 5.5.35
  • PHP version: 5.3.10
Re: CiviEvent permissions problem
May 28, 2013, 07:10:10 am
Quote from: Donald Lobo on May 27, 2013, 04:49:25 pm

please ensure you have the

register for events

permission enabled

Hi This is the setting I have for user 'public':

Code: [Select]
CiviEvent: register for events         Allowed
Also see attachment.

You can view a problem page at: http://newcdh.trwa.ca/index.php?option=com_civicrm&task=civicrm/event/info&reset=1&id=35 (it applies to all events)

benmoreassynt

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Joomla 2.5.19/Wordpress 3.8
  • MySQL version: 5.5.35
  • PHP version: 5.3.10
Re: CiviEvent permissions problem
May 29, 2013, 01:48:14 pm
Failing suggestions for a fix, could someone give me an idea of where the problem might get introduced? For instance ... is this definitely a CiviCRM error, or could it be a general Joomla error?

It seems that any CiviCRM component that should be accessible from outside the administrator area of Joomla returns the 'permission denied' result. Attempts to make contributions, renew memberships have the same result.

This probably won't help, but for what it's worth
Code: [Select]
CRM_Core_Permission::event(CRM_Core_Permission::VIEW, $this->id);appears to always return false.

Is there some way in which CiviCRM could have been globally disabled from access via the website front end?

Updated: I also note that past events work and are publicly accessible. The problem appears to only apply to any newly created events/
« Last Edit: May 29, 2013, 02:10:01 pm by benmoreassynt »

benmoreassynt

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Joomla 2.5.19/Wordpress 3.8
  • MySQL version: 5.5.35
  • PHP version: 5.3.10
Re: CiviEvent permissions problem [Resolved]
May 29, 2013, 02:45:32 pm
Ok ... I've worked it out...

As part of various other changes, I had removed CivCRM database from sharing a DB with Joomla into it's own database.

When doing so, I needed to update the settings file in both /components/ and /administrator/components/ . But I had only done the latter.

Because the original database tables still exisited, I had the front-end site still using the old database, and the backend using the new database. Deleting old database tables and clearing cache revealed the real problem.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • CiviEvent permissions problem [Resolved]

This forum was archived on 2017-11-26.