code16 / sharp

Laravel 10+ Content management framework
https://sharp.code16.fr/
MIT License
728 stars 73 forks source link

Incorrect Uri generation #496

Closed languid01 closed 1 year ago

languid01 commented 1 year ago

I am new to Sharp and Laravel, so apologies if this is a simple error on my part. I have setup a simple instance of Sharp CMS with one entity (Users). The Entit List, Show and Form are working ok. However, when I click on an Entity list row, it correctly Shows the relevant record, but the Edit button on the page has the uri of http://domain.com/sharp/s-list/user/s-show/user/1/s-form/user/1 and give an error of "500: Class "App\Sharp\User\App\Models\User" not found". Any ideas on possible causes? Many Thanks

dvlpp commented 1 year ago

The URI is valid, I think your problem is related to an incorrect import somewhere in your form or on your entity (or maybe it's a problem with the autoloader?). You should check the exception stack to find out where the error is.

Anyway I think this has nothing to do with Sharp, so I close this one — feel free to reopen it if you find something related to Sharp.