Forum
Error: Class 'PerchBlog_Cache' not found with Events App
Hi My first time with Perch - and I have installed it locally (MAMP Pro). The only add-on is the Events App.
Clicking on a event, to view the details about it, gives the error
Fatal error: Uncaught Error: Class 'PerchBlog_Cache' not found in
Error: Class 'PerchBlog_Cache' not found
The event details are displayed and right bellow it is the errors. I get the error from both the calendar view template and the list view template. The only thing I have changed is how time is displayed (to 24-hours).
Diagnostic report (basic):
Perch: 3.0.8, PHP: 7.1.1, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $, with PDO
Server OS: Darwin, cgi-fcgi
Installed apps: content (3.0.8), assets (3.0.8), categories (3.0.8), perch_events (1.9.5)
App runtimes: <?php $apps_list = [ 'perch_events', ];
PERCH_LOGINPATH: /perch
PERCH_PATH: /Applications/MAMP/htdocs/skepplanda-pch/perch
PERCH_CORE: /Applications/MAMP/htdocs/skepplanda-pch/perch/core
PERCH_RESFILEPATH: /Applications/MAMP/htdocs/skepplanda-pch/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /Applications/MAMP/htdocs/skepplanda-pch
HTTP_HOST: skepplanda-pch.dev
Best, Magnus
Are you using the
perch_events_event_categories()
page function?Drew, I'm not sure ;( Perch is all new to me - but I have created categories and hooked up the events to them.
What have you put in your page at the point the error is thrown?
I'm using the examples that came with the app.
First there is the file 'option-calendar.php' with this code (I have removed the category array):
In the General settings, the event detail page path is:
I have not changed anything on the Event detail page (event.php):
I still find it a bit confusing with both the event.html (in the perch_events/templates folder) and event.php (in the events folder). Working on to get a better understanding on how the different files are connected.
Ok, there's definitely something wrong here then. I'll see if I can get an update together.