Skip to main content
Home Mark Quirvien Cristobal Software Engineer

User account menu

  • Log in

Blog

Main navigation

  • Home
  • Blog
  • Contact

Breadcrumbs

  1. Home
  2. Blog

Drupal 8: Change Commerce Product Variation URL to SKU

Drupal 8 Drupal Commerce PHP
To pull this off, we need to write a custom module. Let's name our module commerce_variation_sku. In our commerce_variation_sku.module file, we need implement the hook hook_entity_type_build to change the entity class and entity storage class to our custom classes. /** * Implements hook_entity_type...
by admin • November 11, 2021
Read more about Drupal 8: Change Commerce Product Variation URL to SKU Add new comment

Manually start Solr server in docker (wodby)

Docker Solr Server
If you have problem issue with your Solr server like it was not connected to your site, you might need to manually start your Solr server. First, you need to login to your Solr docker container: make shell solr Check the status first. Inside the Solr container, run: solr status If you see something...
by admin • September 18, 2021
Read more about Manually start Solr server in docker (wodby) Add new comment

Automated testing with Drupal 8 + Selenium + Behat + Gherkins + Jenkins + Cucumber

Drupal 8 CI/CD Jenkins
Here's a simple guide on how to setup automated testing with Behat, Behat Gherkins, Selenium, Jenkins and Cucumber with Drupal 8/9. In this guide, we will be using a Drupal 8 instance with composer. Setup Behat for Drupal 8/9 First thing we need to do is to install all the composer libraries that we...
by admin • August 25, 2021
Read more about Automated testing with Drupal 8 + Selenium + Behat + Gherkins + Jenkins + Cucumber Add new comment

How to fix broken API responses with Apache proxy

Apache Proxy Docker API
I've been stuck on this for a while and I have difficulties looking for a solution. I have an application that calls an api and it was hosted in a docker and a reverse proxy in apache. I noticed that every time I request to any of my apis, I always get weird behaviour like the actual error message...
by admin • July 20, 2021
Read more about How to fix broken API responses with Apache proxy Add new comment

Sublime Text 3 Install Package not working in Big Sur

Sublime Text MacOS Big Sur
Here's how to fix Sublime Text 3 Install Package not working or not showing on package list (command + shift + P) Open the Sublime app Press cmd + shift + p Enter Browse Packages and press Enter This command will open the Finder app Go to the Installed Packages folder and delete the Package Control...
by admin • June 29, 2021
Read more about Sublime Text 3 Install Package not working in Big Sur 1 commentfiber_new Add new comment

Apache service randomly stopping

Server Ubuntu Ubuntu 16.04
If you're apache server somehow stops working randomly, first thing you can do is to check Apache error logs. [Mon May 24 15:39:26.328479 2021] [php7:error] [pid 3203] [client 52.65.15.196:9267] script '/var/www/html/wp-login.php' not found or unable to stat [Mon May 24 15:39:26.852814 2021] [php7...
by admin • May 26, 2021
Read more about Apache service randomly stopping Add new comment

Remove git submodule created by mistake

git Devops
Make sure that the sub-directory/sub-module doesn't have .git directory. If it does, delete the .git directory inside the sub-directory/sub-module rm -rf [sub-module]/.git Clear the git cache git rm --cached [sub-module]
by admin • May 20, 2021
Read more about Remove git submodule created by mistake Add new comment

Django OAuth Toolkit: Allow access token expiration date per user

Django Python Coding Programming
In this tutorial, I will demonstrate how to implement a per-user access token expiration for Django OAuth Toolkit. Setup OAuth Toolkit Override OAUTH2_VALIDATOR_CLASS in settings.py OAUTH2_PROVIDER = { 'ACCESS_TOKEN_EXPIRE_SECONDS': 1800, # 30 minutes 'REFRESH_TOKEN_EXPIRE_SECONDS': 3600, # 1 hour...
by admin • April 25, 2021
Read more about Django OAuth Toolkit: Allow access token expiration date per user Add new comment

Drupal 8/9 Social Auth Buttons

Drupal Drupal 8 Drupal 9 Social Auth Modules
Finally an easy way to render Social Auth links/buttons. Simply download and enable Social Auth Buttons and the buttons will be rendered in Drupal's default login form. You can even embed and render it to your custom forms like this: $form['social_auto_buttons'] = [ '#type' => 'social_auth_buttons'...
by admin • March 17, 2021
Read more about Drupal 8/9 Social Auth Buttons Add new comment

Get active theme in Drupal 8

Drupal Drupal 8 Theming
if you want to get actual active theme name (administration theme included), use: $activeTheme = \Drupal::service('theme.manager')->getActiveTheme(); if you want your default front end theme, use: $defaultThemeName = \Drupal::config('system.theme')->get('default');
by admin • February 20, 2021
Read more about Get active theme in Drupal 8 Add new comment

Pagination

  • Previous Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next Next

Monthly Archive

  • November 2021 (1)
  • September 2021 (1)
  • August 2021 (1)
  • July 2021 (1)
  • June 2021 (1)

Tags

Drupal 8 (15)
Devops (13)
Drupal (11)
Python (9)
Server (7)
Coding (6)
Web Development (6)
Bash (6)
Django (6)
Docker (5)

Logo

Mark Quirvien Cristobal

Navigate

  • Contact
  • Blog

Tags

Drupal 8 (15)
Devops (13)
Drupal (11)
Python (9)
Server (7)
Coding (6)
Web Development (6)
Bash (6)
Django (6)
Docker (5)

Copyright © 2020 MQCristobal. All Rights Reserved.