Hello i added the library to .com/libraries/sir-trevor (.com/libraries/sir-trevor/index.js) installed it and got this error and made my site unusable. Deleted module and all fine. Am i doing something wrong? is there a way for me to fiind out whats went wrong so as i can tell you?

thanks

Comments

fadgadget created an issue. See original summary.

legolasbo’s picture

Could you check the error reporting to see which specific errors it logged?

fadgadget’s picture

Quite a large error report Lego.

Notice: Undefined index: package in system_requirements() (line 60 of /home/onlineba/public_html/ukfinger.com/core/modules/system/system.install) #0 /home/onlineba/public_html/ukfinger.com/core/includes/bootstrap.inc(552): _drupal_error_handler_real(8, 'Undefined index...', '/home/onlineba/...', 60, Array) #1 /home/onlineba/public_html/ukfinger.com/core/modules/system/system.install(60): _drupal_error_handler(8, 'Undefined index...', '/home/onlineba/...', 60, Array) #2 [internal function]: system_requirements('runtime') #3 /home/onlineba/public_html/ukfinger.com/core/lib/Drupal/Core/Extension/ModuleHandler.php(402): call_user_func_array('system_requirem...', Array) #4 /home/onlineba/public_html/ukfinger.com/core/modules/system/src/SystemManager.php(112): Drupal\Core\Extension\ModuleHandler->invokeAll('requirements', Array) #5 /home/onlineba/public_html/ukfinger.com/core/modules/system/src/Controller/SystemInfoController.php(49): Drupal\system\SystemManager->listRequirements() #6 [internal function]: Drupal\system\Controller\SystemInfoController->status() #7 /home/onlineba/public_html/ukfinger.com/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #8 /home/onlineba/public_html/ukfinger.com/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #9 /home/onlineba/public_html/ukfinger.com/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #10 /home/onlineba/public_html/ukfinger.com/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #11 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #12 /home/onlineba/public_html/ukfinger.com/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Object(Closure), Array) #13 /home/onlineba/public_html/ukfinger.com/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #14 /home/onlineba/public_html/ukfinger.com/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /home/onlineba/public_html/ukfinger.com/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /home/onlineba/public_html/ukfinger.com/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /home/onlineba/public_html/ukfinger.com/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #18 /home/onlineba/public_html/ukfinger.com/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #19 /home/onlineba/public_html/ukfinger.com/core/lib/Drupal/Core/DrupalKernel.php(656): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /home/onlineba/public_html/ukfinger.com/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #21 {main}.

Does that look about right?

legolasbo’s picture

Hmm, that doesn't mention sir trevor anywhere. Could you provide me with steps to reproduce the issue on a clean Drupal 8 installation?

fadgadget’s picture

I was just installing it like a normal module lego. Its a bugger as i cant uninstall it. I have to delete the module folder to just get my website operational again. This leaves module not found errors here and there re trevor. Id rather use it than uninstall it. Cant do either :(

Whats this about installing it via composer?t

thanks

fadgadget’s picture

just to confirm my libraries set up

/public_html/website.com/libraries/sir-trevor/index.js

legolasbo’s picture

@fadgadget,

I've just tried to reproduce your issue on simplytest.me. The module installs correctly and can be uninstalled as well.

Whats this about installing it via composer?
This module has a dependency on the webmozart/assert library and has to be installed using composer. You either have to composer install drupal/sir_trevor from your project root (if you've used drupal-project or a similar setup) or use composer manager

legolasbo’s picture

Status: Active » Closed (cannot reproduce)