Skip to main content
153
results
Andrew Fletcher
Creating a message log using Drupal watchdog.   Simple log // Logs a notice \Drupal::logger('my_module')->notice($message); // Logs an error \Drupal::logger('my_module')->error($message);   Adding a layer of complexity to the log public function submitForm(array &$form, FormStateInterface $form_state) {     $entity = $this->getEntity();     $entity->delete();     \Drupal::logger('content_entity_example')->notice('@type: deleted...
Andrew Fletcher
Working in Twig, I had to add classes to a pre-existing array.  Whilst I've...
Andrew Fletcher
On a git pull from remote dev environment to a staging environment running off...
Andrew Fletcher
A recent attempt to run an update composer (regular activity for many of...
Andrew Fletcher
I was trying to create something quite simple.  How to get image file uri...
Andrew Fletcher
I'm writing these steps primarily for myself as a reference.  However, if someone else finds them useful to great. Adding XMPP framework to your server.  Initially I was going to add Prosody, however as I'm working off an Apache server with Centos 6.10 this quickly proved to a goal that was out of reach.  Instead, I pivoted and redirected to Erlang.   Is your server hardware running Linux, BSD, OS X, or Windows? Can you use Java or Python or another language if the server...
Andrew Fletcher
Setting up a new project in Docker and VS Code. Using Terminal, go to your...
Andrew Fletcher
Load testing verifies the system performance under the expected peak load....
Andrew Fletcher
A bug bear that I have had for a while with Drupal content is how come the...
Andrew Fletcher
Time is essential to all of us... and if you are like me there is never enough...
Andrew Fletcher
Updating Drupal from 8.7.10 to 8.8.x or 8.9.x has seen a significant change as it has now moved into 9.x.  It has integrated more with composer, and you can be caught by fatal errors occurring during the update process.  One of these errors for me was the php version.   Site version as set through Plesk is PHP 7.3.12 Using ssh via Terminal the command php -v PHP 7.1.33 (cli) (built: Oct 25 2019 11:33:58) ( NTS ) Whereas, composer update was showing Problem...
Andrew Fletcher
As outlined in an earlier article composer php version, when installing the...
Andrew Fletcher
I need to set the default php-version of a subscription to php7.3.  The...
Andrew Fletcher
Attempting to load changes in a staging site and the bountiful error page...
Andrew Fletcher
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI...