skounis / mt-countdown

Display a custom block with a Countdown function for Announcements, such as time-limited offers or upcoming releases in a Drupal 8 website. Drupal 8 module
0 stars 1 forks source link

PHP Error during the installation #49

Open skounis opened 5 years ago

vkechagias commented 5 years ago

The error occurs after the changes in https://github.com/skounis/mt-countdown/pull/48

The error is not caused during installation. It is generated by each page the countdown element exists. Please check the Drupal logs for the exact message.

You can see an example of this error in the screen below: https://www.screencast.com/t/vKrrkIY2Za7S

The apache php error logs mention the following: Uncaught PHP Exception LogicException: "You are not allowed to use body in #attached." at /home/bill/billWS/websites/mtt-commerceplus/site/d8/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php line 146, referer: http://localhost:8100/websites/mtt-commerceplus/site/d8/

How to reproduce the error:

  1. Enable the module
  2. Navigate to the front page. The countdown element should appear at the top of the page
  3. Check the Drupal and the PHP logs
skounis commented 5 years ago

@EkaterynaVolkova Could you please check my comment here