Forum

Thread tagged as: Problem, Events

Only admin can add new Events

Hi

Only Admin can add New events in the Events APP. Even if I create a new role with everything checked the new role will not allow the user to add a new event. This is happening on more than one site. One site I know was working when I set it up as I set up a Events only role, has an update effected anything?

All sites a running Perch 3 and all Events Apps are up to date...

This is the diagnostics from the site I need to fix...

Perch: 3.0.1, PHP: 7.0.17, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.0.1), assets (3.0.1), categories (3.0.1), perch_blog (5.5.1), perch_events (1.9.5), perch_forms (1.9)
App runtimes: <?php $apps_list = [ 'perch_blog', 'perch_events', 'perch_forms', ];
PERCH_LOGINPATH: /admin
PERCH_PATH: /home/sites/?????????????/public_html/admin
PERCH_CORE: /home/sites/?????????????/public_html/admin/core
PERCH_RESFILEPATH: /home/sites/?????????????/public_html/admin/resources
Image manipulation: GD
PHP limits: Max upload 128M, Max POST 128M, Memory: 2048M, Total max file upload: 128M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
HTTP_HOST: areafifty1.co.uk
DOCUMENT_ROOT: /home/sites/?????????????/public_html
REQUEST_URI: /admin/core/settings/diagnostics/
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
Mick Stallard

Mick Stallard 0 points

  • 4 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

The first thing to check is if you have the same issue when running the latest version of Perch.

Argh... I thought it was up to date, it wont let me update past 3.0.1 is there a link with instructions to manually update? Then i'll try that.

Drew McLellan

Drew McLellan 2638 points
Perch Support

The information is here: https://grabaperch.com/update

Ignore the above, updated now

I am still having the same problem

Perch: 3.0.4, PHP: 7.0.17, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.0.4), assets (3.0.4), categories (3.0.4), perch_blog (5.5.1), perch_events (1.9.5), perch_forms (1.9)
App runtimes: <?php $apps_list = [ 'perch_blog', 'perch_events', 'perch_forms', ];
PERCH_LOGINPATH: /admin
PERCH_PATH: /home/sites/???/public_html/admin
PERCH_CORE: /home/sites/???/public_html/admin/core
PERCH_RESFILEPATH: /home/sites/???/public_html/admin/resources
Image manipulation: GD
PHP limits: Max upload 128M, Max POST 128M, Memory: 2048M, Total max file upload: 128M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
HTTP_HOST: areafifty1.co.uk
DOCUMENT_ROOT: /home/sites/???/public_html
REQUEST_URI: /admin/core/settings/diagnostics/
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
Drew McLellan

Drew McLellan 2638 points
Perch Support

What's happening when they try to add a new event?

There is no ' + Add event' to be able to add a new event.

If I am logged in as Primary Admin I can add event but no other user can.

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you add this to your config file and then try again, does a privilege then appear within the role options?

define('PERCH_PRIV_ASSIST', true);

Hi Drew,

I have just added that to yhe Config.php file and the role privilages for Events are still the same as they were before...

Access events Manage categories (both are checked)

I tried login in again as the user and there is still no option to add an event.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is your site in dev mode or production mode? If prod, try dev.

It was in production mode.

It is still doing the same thing, assuming I have changed the mode correctly.

I have added the following to my Config.php

define('PERCH_PRODUCTION_MODE', 'PERCH_DEVELOPMENT');

Is this correct?

Drew McLellan

Drew McLellan 2638 points
Perch Support

No:

define('PERCH_PRODUCTION_MODE', PERCH_DEVELOPMENT);

Then visit the page where you expect the Add button to be.

OK, thanks Drew...

I have successfully changed mode to development :-)

in Roles now I have two more options

perch_events.create and perch_events.delete

These were unchecked, so, I have now checked these.

And the Add button now appears and I can add and event as a different user.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Great.

Hi Drew, So how can I get this to work in Production Mode?

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's it - the work's done. You can put things back to how they were.

Excellent, just put it back to production and tested it all works fine :-)

Thanks for your help.

Mick