Running Task Publish all Locations

GET /dev/tasks/Dynamic-Locator-Tasks-LocationPublishTask

[Emergency] Uncaught Error: Class 'Location' not found

GET /dev/tasks/Dynamic-Locator-Tasks-LocationPublishTask

Line 42 in /srv/users/serverpilot/apps/pagebuildr/public/vendor/dynamic/silverstripe-locator/tasks/LocationPublishTask.php

Source

33         $this->publishLocations($class);
34     }
35 
36     /**
37      * @param string $class
38      * @return Generator
39      */
40     protected function iterateLocations($class)
41     {
42         foreach ($class::get()->filter('ShowInLocator', true) as $location) {
43             yield $location;
44         }
45     }
46 
47     /**
48      * mark all ProductDetail records as ShowInMenus = 0.

Trace