169
results
Andrew Fletcher
•
Finding the issue with a server 500 error
The Nginx error logs are showing too much detail.
Nginx logs and test
There are no errors in the nginx log and sudo nginx -t looks fine
sudo nginx -tResponse
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Are the services running?
I'll start by doing a status check for
Nginx
PostgreSQL
jetty9
Supervisor
Nginx
sudo service nginx statusResponse
●...
Andrew Fletcher
•
Focusing on the ckan.ini file (/etc/ckan/default/ckan.ini). When I run the...
Andrew Fletcher
•
Following the instructions on CKAN DataStore with a little...
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
•
Working through a CKAN installation on Ubuntu 20.04
User sees a server 500...
Andrew Fletcher
•
Before you can run CKAN for the first time, you need to run db init to...
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...