Skip to main content
145
results
Andrew Fletcher
I was trying to create something quite simple.  How to get image file uri from media entity id or rendered entity.  Or other variations you might have searched: How to load existing media programmatically How to get image file uri from media entity id Call to a member function getFileUri()  drupal File::load getFileUri  drupal getFileUri   The steps to achieve this should be something like: // get the file id ​​​​​​​$fid = $entity->field_icon->target_id; //...
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 had been running a few Centos 6 servers just past their EOL (30th November...
Andrew Fletcher
I need to set the default php-version of a subscription to php7.3.  The...
Andrew Fletcher
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI...
Andrew Fletcher
To add ejabberd and run MYSQL to the server I needed to update the server version of mysql from 5.5 to 5.7.  Fortunately, there are great instructions on the Plesk support page regarding how to achieve this outcome. https://support.plesk.com/hc/en-us/articles/213403429-How-to-upgrade-MySQL-5-5-to-5-6-5-7-or-MariaDB-5-5-to-10-0-10-1-10-2-on-Linux As a point of reference, as I worked through the steps... step 10 you need to restart the MYSQL server.  This is a quick progress by...
Andrew Fletcher
Blocks are a great way to add pieces or chunks of content to your Drupal site....
Andrew Fletcher
Adding an image via RESTUI can be done in a snap... once you know how!  I...
Andrew Fletcher
When you are in the status report of the admin area are you finding the...
Andrew Fletcher
The magically descriptive error 401 Forbidden "message": "Access...