Search error: "Forum"

Silverstripe Version: 4.12

I have a problem with the search term “Forum” and don’t know really why. The website used to have the SilverStripe Forum module installed, but that’s been ages ago. Yet, somehow there seems to be an issue with that, as any other search term is fine.

Here is the error from the log file:
error-log.ERROR: Uncaught Exception Error: “Class “Forum” not found” \vendor\silverstripe\framework\src\ORM\Connect\MySQLDatabase.php line 305 {“exception”:"[object] (Error(code: 0): Class “Forum” not found

Has anybody an explanation for this and more important a solution for me?

Thank you very much.

1 Like

Could you provide a bit more info?

What search system are you using? Does the error show the SQL that’s being generated, etc.

In your database, it’s possibly the case that you have some records where the ClassName is set to ‘Forum’… presumably a hang-over from when that was installed. I’d start by checking the records in the SiteTree, Page, Forum tables, etc. to see if it’s in there.

Hi Tim,

Thanks for pointing me in the right direction.

Forum tables I could exclude as that was my first thought, but there was one page in SiteTree with Class Forum.

Thanks a lot.

1 Like