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.

  • 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? – kiamlaluno Mar 12 '18 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. – kiamlaluno Mar 12 '18 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 ? – Daniel Jean Mar 12 '18 at 17:48
  • Implement a preprocess function for nodes. – kiamlaluno Mar 12 '18 at 17:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.