xenocrat / chyrp-lite

An ultra-lightweight blogging engine, written in PHP.
https://chyrplite.net/
BSD 3-Clause "New" or "Revised" License
402 stars 42 forks source link

Weird error caused by disabling modules in debug mode #160

Closed luxvw closed 2 years ago

luxvw commented 2 years ago

In debug mode, disabling "Comments" or "Categorize" module cause error

ERROR: Indirect modification of overloaded property Config::$routes has no effect

Then I go to site front page, it shows:

ERROR: Requested configuration setting not found.

After exiting the debug mode (i.e. deleting the "debug" file), things went normal again.

xenocrat commented 2 years ago

Thanks for the report. I assume you are using the develop branch. This is related to changes I’m making to ensure PHP 8.2 compatibility. I missed this issue but it’s easily fixed. Thanks!

xenocrat commented 2 years ago

This is now fixed in the develop branch. Once updated, disabling the modules again should fixed the errors encountered in DEBUG mode.

luxvw commented 2 years ago

Neat, thanks for the quick fix.