Jump to content

Topic on User talk:Markus Gebert

DrawioEditor can not works

4
小一女士 (talkcontribs)

Dear Markus, thanks for developing this extension。it not works in my environment. Can you help me check the problem?

error details:

Error: Class 'MWStake\MediaWiki\Component\ManifestRegistry\ManifestAttributeBasedRegistry' not found

Backtrace:

from /var/www/html/mediawiki/extensions/DrawioEditor/src/DrawioInspectorPluginModules.php(13)

thanks agin!!@Markus Gebert

Marcus-BLT (talkcontribs)

DrawioEditor became a new dependency:

php composer.phar require mwstake/mediawiki-component-manifestregistry:~2.0

After i add this it worked again nice.

Michele.Fella (talkcontribs)

1) I would suggest adding this note on the extension page or at least on the discussion page of the extension as it was hard to fing it unless using specific keywords (and some debug)

2) This might solve the issue, but cause an other error to appear on the console..

[xxxyyyzzz] /<wiki>/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector   ConfigException: GlobalVarConfig::get: undefined option: 'Overrides'
Backtrace:
from /var/www/mediawiki-1.39.6/includes/config/GlobalVarConfig.php(59)

# 0 /var/www/mediawiki-1.39.6/vendor/mwstake/mediawiki-component-manifestregistry/src/ManifestAttributeBasedRegistry.php(47): GlobalVarConfig->get()
# 1 /var/www/mediawiki-1.39.6/extensions/DrawioEditor/src/DrawioInspectorPluginModules.php(14): MWStake\MediaWiki\Component\ManifestRegistry\ManifestAttributeBasedRegistry->__construct()
# 2 /var/www/mediawiki-1.39.6/includes/ResourceLoader/FileModule.php(1265): MediaWiki\Extension\DrawioEditor\DrawioInspectorPluginModules::getPluginModules()
# 3 /var/www/mediawiki-1.39.6/includes/ResourceLoader/FileModule.php(608): MediaWiki\ResourceLoader\FileModule->expandPackageFiles()
...
212.78.212.198 (talkcontribs)

to fix this error you need to add $GLOBALS['mwsgManifestRegistryOverrides'] = []; to your LocalSettings.php

Reply to "DrawioEditor can not works"