0

I have Drupal 8 Website and i want install this library with composer :

https://github.com/spatie/calendar-links

After run "composer require spatie/calendar-links", the drupal 8 make big error:

"Fatal error: Uncaught Error: Class 'Drupal\Core\DrupalKernel' not found in /home/[...]/public_html/index.php:16 Stack trace: #0 {main} thrown in /home/[...]/public_html/index.php on line 16"

How can i resolve this problem ? I use composer with netbeans.

4
  • Welcome to Drupal Answers! In which directory did you execute Composer? Did you remove any Drupal file by mistake? Did you check none of the Drupal files is missing?
    – avpaderno
    Commented Mar 12, 2018 at 14:55
  • That said, you don't directly install a library on Drupal core, but you use a module that has the library as dependency. If there isn't any module that depends on that library, you create a custom module.
    – avpaderno
    Commented Mar 12, 2018 at 14:58
  • ok good i created i custom module and add class, but i don't know how i can pass variables to node.html.twig ? Commented Mar 12, 2018 at 17:48
  • Implement a preprocess function for nodes.
    – avpaderno
    Commented Mar 12, 2018 at 17:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.