2
votes

I have a site running on SilverStripe (CMS version 3.1) with a custom module including a ModelAdmin class. It shows up just fine in development (as seen below, right under Pages) but not in production. The module is not registering at all in production, there's no way to access the forms via the URL in production.

The module is there!

The code on the server is up to date. Subsequent changes are, in fact, working as expected.

I've previously attempted dumping the SilverStripe cache to no avail. What kind of issues could be causing this, and where would I begin to properly debug this?


Edit: the module doesn't seem to show up for anyone regardless of user type, even the default admin.

1
Possibly it's a permissions problem. Make sure you've given permissions for your custom Admin to appropriate groups in Security->Groups->(GroupName)->Permissions.cmc
If it shows up for Admin user but not for editors, it's a permission problem as stated above. Did you run dev/build and flush on the production server after updating the code? Did you install all modules using composer on the prod machine? Any errors in your logs?wmk
Are you using canView() in your ModelAdmin at all?cryptopay

1 Answers

4
votes

Make sure you flush your cache in the admin section with http://www.example.com/admin/?flush=all