bendubuisson

I var_dumped ModuleLoader::inst()->getManifest() and can't see silverstripe/cms in there

bendubuisson

(ss4.4 and yes I cleared the cache), any ideas?

bendubuisson

basically ModuleLoader::inst()->getManifest()->getModule('silverstripe/cms'); is null

bendubuisson
  1. Source
  2. ======
  3. 12: use SilverStripe\View\Parsers\ShortcodeParser;
  4. 13:
  5. 14: call_user_func(function () {
  6. 15: $module = ModuleLoader::inst()->getManifest()->getModule('silverstripe/cms');
  7. 16:
  8. 17: // Enable insert-link to internal pages
  9. 18: TinyMCEConfig::get('cms')
  10. 19: ->enablePlugins([
  11. 20: 'sslinkinternal' => $module
  12. * 21: ->getResource('client/dist/js/TinyMCE_sslink-internal.js'),
  13. 22: 'sslinkanchor' => $module
  14. 23: ->getResource('client/dist/js/TinyMCE_sslink-anchor.js'),
  15. 24: ]);
  16. 25: });
  17. 26:
  18. 27:
bendubuisson

doing a dev build on a ss4 setup I keep getting

  1. ERROR [Emergency]: Uncaught Error: Call to a member function getResource() on null
  2. IN GET /
  3. Line 21 in /home/dev/subdomains/site/s3/vendor/silverstripe/cms/_config.php