xiaohutai / bolt-hierarchicalroutes

[Bolt Extension] Hierarchical content using `menu.yml` for Bolt CMS
https://market.bolt.cm/view/twokings/hierarchical-routes
MIT License
7 stars 3 forks source link

Error message: Extension package twokings/hierarchical-routes has an invalid class (in Bolt 3.5.6) #20

Closed laurens94 closed 6 years ago

laurens94 commented 6 years ago

I have Bolt 3.5.6 installed. After installing the extension, I see the following error in the Bolt backend when opening config/menu.yml:

Extension package twokings/hierarchical-routes has an invalid class 'Bolt\Extension\TwoKings\HierarchicalRoutes\HierarchicalRoutesExtension' and has been skipped.

xiaohutai commented 6 years ago

I can't reproduce this. Got any more details? How did you install the extension?

laurens94 commented 6 years ago

Using the /bolt/extensions route in the web-interface. However it only occured once, after reloading the page the error was gone..

xiaohutai commented 6 years ago

Oh right. That message comes from Bolt. Maybe it is a timing/caching issue. That message is shown when the class could not be found/loaded at that time.

In bolt/bolt: https://github.com/bolt/bolt/blob/ab623edf7a3dc9a96d0a5090b0727ccfcfc0ba3a/src/Extension/Manager.php#L280

I'll close this issue for now as this could happen to every extension. If it is consistent, feel free to re-open or make a new issue 👍