twill icon indicating copy to clipboard operation
twill copied to clipboard

Class * specified in twill.dashboard configuration does not exists.

Open michaeljcoyne opened this issue 3 years ago • 5 comments

Hi I am suddenly getting this error, after upgrading to Twill 2.9

Class pages specified in twill.dashboard configuration does not exists.

If I remove the config the error goes away, but it must be still needed right?

Thanks

Michael

michaeljcoyne avatar Sep 18 '22 10:09 michaeljcoyne

Running through getEnabledActivities on the debug $moduleClassToCheck is not producing the full namespace on some where as it is on others.

michaeljcoyne avatar Sep 18 '22 11:09 michaeljcoyne

Lookse like I needed to update my app/Providers/AppServiceProvider.php

For the method to work.

Relation::morphMap([
            'events' => 'App\Models\Event',
            'articles' => 'App\Models\Article',
            'pages' => 'App\Models\Page',
            'modules' => 'App\Models\Module',
            'speakers' => 'App\Models\Speaker',
        ]);

michaeljcoyne avatar Sep 18 '22 11:09 michaeljcoyne

But getting a blank page front end now. Weird.

michaeljcoyne avatar Sep 18 '22 11:09 michaeljcoyne

  Relation::morphMap([
            'events' => 'App\Models\Event',
            'articles' => 'App\Models\Article',
            'pages' => '\App\Models\Page',
            'modules' => '\App\Models\Module',
            'speakers' => '\App\Models\Speaker',
        ]);

Change to that and it works - strange.

michaeljcoyne avatar Sep 18 '22 11:09 michaeljcoyne

Hey @michaeljcoyne could this have been a cache issue?

haringsrob avatar Sep 21 '22 08:09 haringsrob

Closing this for now, please reopen if you still have this issue.

haringsrob avatar Sep 23 '22 07:09 haringsrob