Skip to main content
98
results
Andrew Fletcher
The migrate process saves the status of each running migration in the database.  Any error in the code will abnormally terminate the process so the database won't be updated properly and will keep saying that "something is still running".   In Drupal I had a look through the error log and came across the following message: Migration icon_migrate_species_json is busy with another operation: ImportingHowever, this shouldn't be the situation and I had no scripts running.  Now...
Andrew Fletcher
When attempting to backup mysql using the mysqldump command mysqldump -u root...
Andrew Fletcher
To remove all the contents from a directory, you need to ask yourself: Do I want...
Andrew Fletcher
How to Create New MySQL User Before you can create a new MySQL user, you need to...
Andrew Fletcher
This short guide explains to you how to extract/unzip .zip archive files to a...
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
I prefer htop over top on my Linux server.  Running a Solr index got...
Andrew Fletcher
The generally accepted answer to a mysqldump is: mysqldump -h [host] -u...
Andrew Fletcher
Wanting to create a new repository on GitHub, add in a few of the available...
Andrew Fletcher
On a git pull from remote dev environment to a staging environment running off...
Andrew Fletcher
I needed the check if a file existed in a directory as the migrate script wasn't recognising the file.  To check if a file exists: FILE={your-directory-path} if test -f "$FILE"; then echo "$FILE exists." fi  If your directory path is /Users/{your name}/Sites/migrate/local_dest_dir/fish/../media/apple-store.png FILE=/Users/{your name}/Sites/migrate/local_dest_dir/fish/../media/apple-store.png if test -f "$FILE"; then echo "$FILE...
Andrew Fletcher
Joining a new company / team there is always a lot of new items to...
Andrew Fletcher
Updating Drupal from 8.7.10 to 8.8.x or 8.9.x has seen a significant change...
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...