Skip to main content
178
results
Andrew Fletcher
Listen in on the ports being used on your server.  To do so, run the command netstat -a | grep tcpIf netstat is not install, then you'll be prompted to run the install script sudo apt install net-toolsResponse Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: net-tools 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 196 kB of archives. After this operation, 864 kB of...
Andrew Fletcher
Error with Nginx When running an Nginx test, the following response was being...
Andrew Fletcher
The following the CKAN source install docs from start to finish including solr....
Andrew Fletcher
Explain public, private, protected functions and variables inside a class in...
Andrew Fletcher
Assuming there is a new field requiring a change on a content type. How do you...
Andrew Fletcher
Replicate Replicate the bug in your local environment. Check Check - do you have the latest version of the contrib module?  In case the issue has already been identified and resolved. A quick check of the issue list for the contrib module. Nothing. Document notes Read through the log files to understand where the bug is located.  Devel module is a must for a backend dev to help resolve issues like this one.  Ensure Symfony var-dumper or Kint is running.  Data is gold here and...
Andrew Fletcher
2 or 3 approaches to build a homepage or landing page through Drupal Please...
Andrew Fletcher
Drupal cache is one of the major subsystems that deliver Drupal's flexibility...
Andrew Fletcher
Goal: Restrict content access through username and password entry. 1: Apache...
Andrew Fletcher
Working through a CKAN installation on Ubuntu 20.04 User sees a server 500...
Andrew Fletcher
My goal was to get the base URL and compare it with the URL of the link.  Was it an internal or external link?  You can get the hostname, "{your_domain}", directly from the getHost() request: $host = \Drupal::request()->getHost();However, if you need the schema as well, such as https://{your_domain} $host = \Drupal::request()->getSchemeAndHttpHost();  In my situation, I needed to redirect the page to an external site and count the page.  So $cache =...
Andrew Fletcher
  JSON structure Outlining the structure of the elements common attributes:...
Andrew Fletcher
Whilst I had regularly used HAL to upload files through REST API, this is no...
Andrew Fletcher
How do you retrieve a taxonomy term tid value from it's name? In this situation,...
Andrew Fletcher
If you are like me, almost every view I have will have this filter.  So I...