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) »
  • No Permissions on Create Event in 3.2
Pages: [1]

Author Topic: No Permissions on Create Event in 3.2  (Read 1223 times)

pbarmak

  • I post occasionally
  • **
  • Posts: 111
  • Karma: 3
  • CiviCRM version: 3.3.5
  • CMS version: Pressflow 6.19
  • MySQL version: 5.1
  • PHP version: 5.2.10
No Permissions on Create Event in 3.2
August 02, 2010, 09:53:38 am
Not sure if this is the right forum for this, but I'm having permissions issues on creating a new event.

After filling in the basic information, I click "Continue >>" and I immediately get the "You do not have permission to access this page" error.  Now, I can see in the database that the civicrm_event record was created (so it gets past that part), but I can't get any further on the UI.  And, if I go to Manage Events, the new event does not show up (even though it's in the db with is_active=1).  In the Event Dashboard, however, I see rows under "Event Summary" but they have blank Titles under the "Event" field.

I also tried to go the Edit Event page directly for the event (http://crm.forwardedge.org/civicrm/event/manage/location?reset=1&action=update&id=4), but that brings up the permission error page as well.

Has anything changed in permissions in 3.2 stable?  I can't seem to figure out where this is happening or why.  I've cleared cache, logged out/in, removed files from ./default/files/civicrm, and tried downgrading back to 3.2 beta, but nothing seems to fix the issue.

It seems only related to Events - I can create contributions and contacts.

I'm using the Drupal admin user (all privileges) and permissons on the drupal side seem fine.

And, no, I'm not seeing this behavior on the demo site ...

Any pointers on what is triggering this error?

darrick

  • I’m new here
  • *
  • Posts: 5
  • Karma: 1
Re: No Permissions on Create Event in 3.2
August 24, 2010, 09:52:44 pm
I have this same problem.  I tracked it down it down to here in the civicrm/CRM/Event/Event.php file. 

    /**
     * make sure that the user has permission to access this event
     *
     * @param int $id   the id of the event
     * @param int $name the name or title of the event
     *
     * @return string   the permission that the user has (or null)
     * @access public
     * @static
     */
    static function checkPermission( $eventId = null, $type = CRM_Core_Permission::VIEW )
    {
        static $permissions = null;
        //$permissions = null;

        if ( empty($permissions) ) {
            require_once 'CRM/ACL/API.php';
            require_once 'CRM/Event/PseudoConstant.php';
            $allEvents = CRM_Event_PseudoConstant::event( null, true );
            $createdEvents = array( );
            $allEvents[$eventId] = "Fix Me";   <---------- ADDED THIS TO MAKE IT WORK.

darrick

  • I’m new here
  • *
  • Posts: 5
  • Karma: 1
Re: No Permissions on Create Event in 3.2
August 25, 2010, 09:57:55 am
I tracked this down further to the use of memcache and filed a bug report: http://issues.civicrm.org/jira/browse/CRM-6734

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: No Permissions on Create Event in 3.2
May 28, 2014, 06:20:39 pm
Yes, thank you. I just wanted to put in that I just ran into pretty much the same issue. It was also memcache related.

So if someone else is having this issue and comes across this topic, go look at your civicrm.settings.php file and see if turning memcache off in it (change to 0 instead of 1) solves the problem. It did for us.

Now we've got to go clean up all the events we tried to post, but couldn't complete.  ;)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • No Permissions on Create Event in 3.2

This forum was archived on 2017-11-26.