- Backup files: Compress the directory that contains our 'CORE' directory (typically 'public_html' ) and download it to local directory
- Backup DB: GO to phpMyAdmin choose the relevant DB, click 'export' on the top right horizontal menu. use 'custom' to compress it or just click 'go' to download it as it is. save it to the same directory you saved the compressed file system
- Put site in maintenance mode Configuration > Development > Maintenance mode
I used this youtube tutorial: https://youtu.be/QbLIDireUSg
Important notes:
Cahnge settings.php permissions from 444 to 777 before making changes (and then change back)
set the data base name, data base user and data base user's password
1. install devel module and enables its sub module kint.
Drupal 8 Block Plugin API: How to create a custom block in drupal 8
Theme Inheritance: Creating a Drupal 8 sub-theme, or sub-theme of sub-theme
Twig Template naming conventions
The original template (twig) files, are in: core/modules or core/themes/classy/templates
/*
* Implements hook_css_alter()
*/
function dranattheme_css_alter_x(&$css) {
// Remove colors.css file.
unset($css[drupal_get_path('theme', 'anat') . '/color/colors.css']);
}
For debugging: Add a call to watchdog in the module or template.php, and set the type to the module or theme name:
watchdog($type, $message)
To view the messages you added using the watchdog, go to Administration >> Reports >> Recent log messages
Problem:
Changing theme colors using the admin area failed.
Solution:
The logo.png file was missing from the theme's root folder, probably causing a uncaught exception that caused the bug. After locating the image file in thr correct place (root folder), the problem ceased.