Module for inserting an ad unit into the middle of an article in Drupal 8.

I present a simple module for inserting an ad unit in the middle (approximately in the middle) of the article for Drupal 8. The module is in the initial development stage, so there are no visibility settings for the block for different user roles.

Error in themes zymphonies

Themes Zymphonies for Drupal pleasing excellent appearance (many thanks to the developers). But with stability, problems often arise.

So, in the built-in slider, the zymphonies error occurs. Which leads to the fall of the site. Also such a mistake was revealed in Advanced Theme Zymphonies and Parallax Zymphonies Theme.


Debugging. Var_dump.

Memo for yourself.


For the simplest debugging, you need to insert something like this into the code (of the module being researched, for example):

# Such code was used when debugging the module
# The output of the array 'user'



Upgrading the Drupal 8 core with Composer.

Install the Composer.

  • global: 
$ cd /usr/src
$ sudo apt-get install curl php5-cli
$ curl -sS | sudo php -- --install-dir=/usr/local/bin --filename=composer
  • Local(non root shell), usually on shared hosting. Through the ssh console.
php -r "copy('', 'composer-setup.php');"
php -r "if (hash_file('S

Apache2 -V. Error.

An error occurred while trying to get the extended data for the apache command in linux: apache2 -V

# apache2 -V
[Sat Feb 11 23:08:40.200137 2017] [core:warn] [pid 1543] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot