Error message

Notice: Undefined index: quantity in omega_views_mini_pager() (line 214 of /var/www/vhosts/pixelthis.gr/httpdocs/sites/all/themes/omega/omega/includes/omega.theme.inc).

Blog

Coming from drupal 7 optimizing drupal 8-9 for local development is a struggle especially if you want to properly optimize your local environment in terms of enabling debugging and disabling cache for a while. The steps are not a lot but there are some "tricky" settings for having a...
I tried to use the default composer command for installing the drupal console cli (https://drupalconsole.com/docs/en/getting/composer) but with no luck. composer require drupal/console:~1.0 \--prefer-dist \--optimize-autoloader No matter what i kept receiving this error. Your requirements...
After installing admin_toolbar (drupal.org/project/admin_toolbar) i realized that the content / add content / add page | add article) submenu items were missing. The solution is to enable the "Admin Toolbar Extra Tools" module which is part of this project. Also make sure that you have...
I have some projects in drupal 8 that need to test some modules and functionality but i do not want to run the tests on the actual websites. So now that composer create-project downloads the drupal 9 version by default this is the composer create you need to type to install the drupal 8 (...
Here is a list with useful resources about twig and preprocess functions. http://2018.drupalcorn.org/sites/default/files/Preprocess%20All%20The%20... https://www.hook42.com/blog/how-use-hooks-building-drupal-8-themes https://www.annertech.com/blog/things-i-learned-drupaltwig-slack-volume-...
Recently i upgraded drupal 8.8.6 to 8.9.0. After the composer update finished i tried to run vendor/bin/drush cr but i got these errors PHP Warning:  require(/Users/nikitasmichalakis/www/d8project/vendor/bin/drush.php): failed to open stream: No such file or directory in /Users/...
Step 1 : Uncomment the following lines in your settings.php file: <?phpif (file_exists(__DIR__ . '/settings.local.php')) {  include __DIR__ . '/settings.local.php';}?> Step 2 : Copy example.settings.local.php to sites/default and rename it to settings.local.php. Step 3 : In settings...
Here are some code snippets to update field values programmatically. <?phpuse Drupal\node\NodeInterface;function MODULE_NAME_node_presave($node) {  $node->setTitle('MY NEW TITLE'); // This is a special meta field  $node->set('FIELD_NAME', 'THIS IS DATA'); // This is a Field...
With drupal 8-9 the drush ard command is dead. The King is dead long live drush sql:dump with zip or tar or whatever command you use for archiving - compressing your files. So for SQL dump archive - database backup file with compression drush sql:dump --gzip > db.gzip Official...
So it turns out that the current version of views_litepager 7.x-3.0 (https://www.drupal.org/project/views_litepager) does not use the t() function at the pager theme function. This is a simple override for updating (greek) the rendered text (page 1, page 2 etc) of the views litepager...
For altering the "Title" and "Alternate Text" textfields of an image field we have to add an extra Proccess function for the widget form. // Alter image Title for field_top_image instancefunction MYMODULE_field_widget_form_alter(&$element, &$form_state, $context) {  // If this is...
This is something that took me more than 5 hours of testing, installing, reinstalling email related modules applying patches, changing from stable to dev versions and trillions of watchdog log messages. No matter what, nothing would fix my simple problem: HTML E-Mails are being sent out...
this is an arrow pointing back to the top of the page