We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Problem, Events

Events app no 'add event'

Afternoon! Could've sworn I'd posted this already but it seems I must've written it and forgot to press 'send'…! Story of my life lately :D

Anyway, I've upgraded a client site to 3.0.11 and they have Gallery, Events and Blog apps. Gallery and Blog seem fine, but the events app is having what may be a similar permissions issue to this one http://forum.grabaperch.com/forum/11-20-2017-form-permission-issue in that the '+Add event' button isn't appearing for non-admin users.

The permissions I'm offered in Roles are:

  1. Access events
  2. Manage categories

And they can access and edit events ok, just not create a new one as that button's missing from the main Event page.

Let me know if you need any more info to debug this and I'll send it straight over.

Thanks for taking a look :)

Perch: 3.0.11, PHP: 7.1.8, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (3.0.11), assets (3.0.11), categories (3.0.11), perch_blog (5.6.1), perch_events (1.9.5), perch_gallery (2.8.9), perch_members (1.6.1), perch_backup (1.2)
App runtimes: <?php $apps_list = [ 'perch_blog', 'perch_gallery', 'perch_events', 'perch_members', ];
PERCH_PATH: /Users/martin/Sites/sharow.n-yorks.sch.uk/web/cms
PERCH_CORE: /Users/martin/Sites/sharow.n-yorks.sch.uk/web/cms/core
PERCH_RESFILEPATH: /Users/martin/Sites/sharow.n-yorks.sch.uk/web/cms/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
HTTP_HOST: sharow.local
DOCUMENT_ROOT: /Users/martin/Sites/sharow.n-yorks.sch.uk/web
REQUEST_URI: /cms/core/settings/diagnostics/
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
Martin Underhill

Martin Underhill 5 points

  • 2 years ago
Duncan Revell

Duncan Revell 78 points
Registered Developer

HI Martin,

this has popped up a fair few times in the forum - an example of the fix is given here:

Hey Duncan. Thanks for that – adding define('PERCH_PRIV_ASSIST', true); to my config fixed it. Thank you!

In case anyone's reading this, you need to be in perch's dev mode with define('PERCH_PRODUCTION_MODE', PERCH_DEVELOPMENT); in your config. I set this automatically using the switch statement technique here: https://docs.grabaperch.com/perch/building/servers/multiple-server-config/ – that way production is automatically production, staging staging, and dev dev.