Topic on Extension talk:Semantic Extra Special Properties

Error with manual installation

4
Summary by Kghbln

Installing manually without Composer is not possible. A individual file release is a way out.

Nakohdo (talkcontribs)

Hi,

I've tried to install this extension without Composer by adding the following line to LocalSettings.php:

require_once("$IP/extensions/SemanticExtraSpecialProperties/SemanticExtraSpecialProperties.php");

However, I get a white screen with the following error message. Could this be a problem with the extension loader? Any pointers welcome.

TIA

Frank

MediaWiki 1.27.4 | PHP 5.6.25 | Semantic MediaWiki 2.5.6 | BlueSpice 2.27.3

/hamwiki/ MWException from line 176 of /opt/rh/httpd24/root/var/www/html/hamwiki/includes/Hooks.php: Invalid callback \SESP\HookRegistry::onBeforeConfigCompletion in hooks for SMW::Config::BeforeCompletion

Backtrace:
#0 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/includes/Settings.php(181): Hooks::run(string, array)
#1 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/src/Services/SharedServicesContainer.php(69): SMW\Settings::newFromGlobals()
#2 [internal function]: SMW\Services\SharedServicesContainer->SMW\Services\{closure}(Onoi\CallbackContainer\CallbackContainerBuilder)
#3 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/vendor/onoi/callback-container/src/CallbackContainerBuilder.php(260): call_user_func_array(Closure, array)
#4 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/vendor/onoi/callback-container/src/CallbackContainerBuilder.php(288): Onoi\CallbackContainer\CallbackContainerBuilder->getReturnValueFromCallbackHandlerFor(string, array)
#5 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/vendor/onoi/callback-container/src/CallbackContainerBuilder.php(195): Onoi\CallbackContainer\CallbackContainerBuilder->getReturnValueFromSingletonFor(string, array)
#6 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/src/ApplicationFactory.php(230): Onoi\CallbackContainer\CallbackContainerBuilder->singleton(string)
#7 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/src/MediaWiki/MwCollaboratorFactory.php(149): SMW\ApplicationFactory->getSettings()
#8 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/includes/Setup.php(108): SMW\MediaWiki\MwCollaboratorFactory->newMediaWikiDatabaseConnectionProvider(string)
#9 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/includes/Setup.php(55): SMW\Setup->registerConnectionProviders()
#10 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/load.php(132): SMW\Setup->run()
#11 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/load.php(54): SemanticMediaWiki::onExtensionFunction()
#12 [internal function]: SemanticMediaWiki::{closure}()
#13 /opt/rh/httpd24/root/var/www/html/hamwiki/includes/Setup.php(838): call_user_func(Closure)
#14 /opt/rh/httpd24/root/var/www/html/hamwiki/includes/WebStart.php(137): require_once(string)
#15 /opt/rh/httpd24/root/var/www/html/hamwiki/index.php(40): require(string)
#16 {main}
Kghbln (talkcontribs)

That's not possible. You imperatively have to use Composer.

Nakohdo (talkcontribs)

Many thanks for the quick reply and this information!

Kghbln (talkcontribs)

You could do something like an individual file release on a laptop or so which has Composer and move over the files to your webspace.