The problem lies with the DNS resolution, causing the local machine to be unable to locate some or all hosts. It can be frustrating, as some of the websites work, but tend to be slow. I had assumed that the problem was due to a slow internet connection, it took me some time to figure… Continue reading Temporary failure in name resolution on Linux
Category: Uncategorized
Get Media entity view type url in Drupal 9
Testing shipping rates
It’s just sample addresses I copy-paste when testing shipping rates. Ireland St. James’s Gate, Dublin 8, D08 VF8H, Ireland United Kingdom – Northern Ireland Titanic Queen’s Road, The Titanic Quarter, 1 Olympic Way, Belfast BT3 9EP, United Kingdom United Kingdom – Scotland Castlehill, Edinburgh EH1 2NG, United Kingdom United Kingdom – England London SW1A 0AA,… Continue reading Testing shipping rates
Deploying old WordPress sites
I am primarily a Drupal developer but from time to time, I work on older WordPress websites. WordPress sites (5 years +), built and often maintained by different agencies or freelancers tend to be difficult to work with. There is a number of reasons for it, including various plugins, different coding and architectural standards, lack… Continue reading Deploying old WordPress sites
Reflections on the hosting provider failure
SiteGround is one of my favorite hosting providers for medium-sized websites. However, they had one of the longest downtime I experienced on one of their data centers on the 19th of June 2022 lasting over 17 hours. I got notified about one of the websites I maintain being offline by the uptime monitor. SiteGround themselves… Continue reading Reflections on the hosting provider failure
Conditional pathauto pattern in Drupal
I was asked to tweak a pathauto pattern for a node that is in a specific menu. I couldn’t find documentation on this so here’s my approach to this: Use pathauto_pattern_alter hook in a custom module.If the node type is “standard” is being created, updated, or on bulkupdate, then set the pattern to something specific.… Continue reading Conditional pathauto pattern in Drupal
How to avoid duplicates on Views using Search API and translations in Drupal 9
Standard Drupal Views (not using Search API) allow specifying the “Rendering Language”: to “Interface text language selected for the page” and I encountered a problem.This way, if the page is set to Irish let’s say, the View displays the items in Irish and falls back to the default language if the translation is not present.… Continue reading How to avoid duplicates on Views using Search API and translations in Drupal 9
Disabling build-in camera on Linux
I had my laptop for a while now. The built-in camera died meanwhile, or rather there was a circuit when tilting the screen causing the video calls to apps to crash. Not ideal, when working remotely. I have another USB camera, however, at times the system struggles to decide which one to use. I couldn’t… Continue reading Disabling build-in camera on Linux
pa11y
The last few projects I worked on required to pass WCAG2A accessibility standards. I used a Node tool https://github.com/pa11y/pa11y to generate reports and identify issues. The following command will generate a report.html report listing identified issues. pa11y –reporter html https://pawelbogucki.com/ > report.html –standard=”WCAG2A”
WordPress wp-admin redirects to https on local
I was deploying a WordPress website locally to perform some changes. I didn’t build it so I’m not sure how it was configured. I found and replaced all instances of https://example.com to http://example.com cleared all caching but http://example.com/wp-admin was redirecting to https://example.com/wp-admin and creating an infinite loop. I also checked the there are redirects on… Continue reading WordPress wp-admin redirects to https on local