The problem I raise is due to duality of php (cli), which means several versions of php are installed in our computer.
In this snippet we will know how to trim any string in Drupal way using the truncate_utf8 function.
The objective of this snippet is to teach you how to change the theme of your portal through Drush with vset.
The objective of this snippet is to enable you to render an image with code using a Drupal image style.
The objective of this snippet is to show if a table exists in the system and to create one if it does not already exist.
In the following code, the implementation of hook_admin_paths_alter() is shown to exclude or add the paths that we consider necessary or unnecessary to show with the administrative theme.
For that, you should create a PHP file (For example, in the DOCUMENT_ROOT of Drupal) and include the source code that indicates continuation.
The objective of this snippet is to try to eliminate the ‘Segmentation Fault’ error which appears when any Drush command runs.