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

Applying patches in drupal 8 is different compared to drupal 7. Composer does a decent job alleviating the headaches of managing several sites with different dependencies. However, out of the box Composer will revert patched core files and contrib modules and it is for that reason...
For a recent project, i was asked to build a service that would consume the client's internal data from his API. I got lucky with this because it was a very well structured and documented API. The only thing that i had not tried before was to use the new Drupal::httpClient() functionality...
You can add this to your class or Controller etc. It always return the taxonomy term id if yound <?phpuse Drupal\taxonomy\Entity\Term;  //Vid in drupal 8 is the vocabulary machine name e.g news_categories and not an integer id as in drupal 7  private function manage_term($term_name,$...
Setting the proper values at a geolocation field programmatically in drupal 8 is different from typical field values. This code will do the trick: <?phpuse \Drupal\node\Entity\Node;$node = Node::create(  'type' => 'location',  'title' => 'Attraction Location',  '...
Drupal Core Views module is very sufficient most of the time but sometimes you need to create a list of content programmatically. This is where you could use EntityQuery. Let's say you'd want a list of custom api blog items imported to your website per specific cron tasks. What you have...
Recently i had to make a GET API request with some params (form-params) to the body of the API request call. This is what worked for me: <?php  public function poi_call(int $id,$timestamp_start = '2020-01-01 00:00:00',$timestamp_end = '2020-12-01 00:00:00') {    try {      $options...
Recently i had to import a db from production to localhost, so i thought this would be an easy task (Murphy's law, it never is easy when you want it). The db.gzip file was ok (no tables corruption or anything else) but it looked like my local version of Mysql (Server version: 5.7.26 MySQL...
After i installed Radix (drupal.org/project/radix) and created a new subtheme, there was an issue with webpack and the node_modules compiled libraries. It seems like the popper.js.map file was missing despite the fact that it was in the node_modules folder and the package.json file. So...
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 (...
this is an arrow pointing back to the top of the page