Strange PHP Errors
-
Hi folks,
I’ve been getting this error which occurs on both frontend and backend of WordPress.
[07-Oct-2024 01:20:36 Australia/Adelaide] PHP Fatal error: Uncaught Error: Class 'mp_timetable\plugin_core\classes\Controller' not found in /home/phoenixstaging2/staging/powertomove/public_html/wp-content/plugins/mp-timetable/classes/controllers/class-controller-popup.php:12 Stack trace: #0 {main} thrown in /home/phoenixstaging2/staging/powertomove/public_html/wp-content/plugins/mp-timetable/classes/controllers/class-controller-popup.php on line 12
I can make the error go away by manually deleting the plugin files and then reinstalling it. The plugin works fine for a while and inevitably throws this error or similar after about a day.
I’ve tried changing PHP versions – 8.2, 7.4.,7.2. Tried disabling all other plugins and switching to 2024 theme. Tried updating WP Core from 6.1.7 to latest 6.6.2. None of these changes prevent the error.
Through debugging I’m pretty sure it’s happening when the class file is included. Not when it is instantiated.
Sometimes there are variations on the same error. For example one go through I got:
[24-Sep-2024 03:28:21 Australia/Adelaide] PHP Fatal error: Uncaught Error: Class 'mp_timetable\plugin_core\classes\Model' not found in /home/phoenixstaging2/staging/powertomove/public_html/wp-content/plugins/mp-timetable/classes/models/class-settings.php:10 Stack trace: #0 {main} thrown in /home/phoenixstaging2/staging/powertomove/public_html/wp-content/plugins/mp-timetable/classes/models/class-settings.php on line 10
The fact it works for a while and then breaks suggests some caching error or problematic cron task. But I’m finding this extremely hard to diagnose because I can’t reliably replicate it.
The files with the classes that can’t be found are still present, there are no permissions changes.
Any suggestions would me most appreciated! Have you run into a problem like this before?
Kind Regards,
James
—
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.