Loading...
 
Skip to main content

'There is no class to handle the event wiki_page_created.'

Status
Pending
Subject
'There is no class to handle the event wiki_page_created.'
Version
11.x
Category
  • Error
Feature
Daily reports
Resolution status
New
Submitted by
Clif Kussmaul
Lastmod by
Pascal St-Jean
Rating
(0)
Description

When I enable daily reports and run the cron task,
I get an error:

Fatal error: Uncaught exception 'Exception' with message
'There is no class to handle the event wiki_page_created.'
in ./lib/core/Reports/Send/EmailBuilder/Factory.php:24

Stack trace:

  1. 0 ./lib/core/Reports/Send/EmailBuilder.php(107):

Reports_Send_EmailBuilder_Factory->build('wiki_page_creat...')

  1. 1 ./lib/core/Reports/Send/EmailBuilder.php(44):

Reports_Send_EmailBuilder->makeEmailBody(Array, Array)

  1. 2 ./lib/core/Reports/Send.php(47):

Reports_Send_EmailBuilder->emailBody(Array, Array, Array)

  1. 3 ./lib/core/Reports/Manager.php(50):

Reports_Send->sendEmail(Array, Array, Array)

  1. 4 ./tiki-user_reports_send.php(20):

Reports_Manager->send()

  1. 5 {main}

thrown in ./lib/core/Reports/Send/EmailBuilder/Factory.php on line 24

Files
  1. WikiPageCreated
  2. WikiPageDeleted
Solution

It appears that the email builder expects, but doesn't find:
lib/core/Reports/Send/EmailBuilder/WikiPageCreated.php

I copied WikiPageChanged.php and made minimal changes (attached),
and the next error was about wiki_page_deleted,
so I copied & edited it again (attached), and the errors stopped.

I haven't yet just received Daily Report email to verify that everything works correctly, however.

Clif

Importance
5
Easy to solve?
9
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4603
Created
Monday 22 July, 2013 19:11:39 UTC
by Clif Kussmaul
LastModif
Saturday 06 July, 2024 10:21:44 UTC


Show PHP error messages