Profile cover photo
Profile photo
Earl Fong
16 followers
16 followers
About
Posts

Post has attachment
An Embarrassing Mistake: 'The "example" entity type does not exist'
Using the code from  Creating a configuration entity type in Drupal 8   to create a sample module for demonstrating use of configuration entities, I got the following log message when browsing to the path /admin/config/system/example Drupal\Component\Plugin...
Add a comment...

Post has attachment
How to enable Vagrant SSH access into a Docker container
Vagrant seems to work really well with VirtualBox and some other virtualization providers, but I had a situation where I wanted to get it to run with Docker instead (on my local Linux Mint system) and to enable Vagrant to have ssh access into the Docker con...
Add a comment...

Post has attachment
Moving Docker's storage to a different location
On a Linux Mint system, I was running low on disk space in the partition where Docker CE 17.06 had installed itself and was storing its files such as images. So I thought I'd move the docker storage directory to a different partition that had a lot more spa...
Add a comment...

Post has attachment
VirtualBox, Vagrant, and KVM
I was exploring the possibility of using Vagrant with VirtualBox for doing development on my local system. The system is running Linux Mint 17, and I was using Vagrant 1.9.7 with VirtualBox 5.1.24. I immediately starting having problems with some of the Vag...
Add a comment...

Post has attachment
A Reason to Use the Drupal Coder / PHP_CodeSniffer utility
Drupal Coder includes the command line utility PHP_CodeSniffer , which parses source code to detect violations of a coding standard. Actually, there are two utilities in the package, one to detect violations, a second to automatically make changes for those...
Add a comment...

Post has attachment
Using xDebug and Sublime Text with Docker
I've used xDebug with Sublime Text locally for quite some time but have started playing with Docker containers to instantiate instances of Apache, PHP, MySQL, and Drupal 8. The Docker
image I use has xDebug enabled for PHP, but I wanted to have xDebug runn...
Add a comment...

Post has attachment
Initial Thoughts on Using Docker
I have started to use the Docker images from wadmiraal/drupal for local Drupal development, for example, wadmiraal/drupal:8.1.0 to use Drupal 8.1.0. These images are very well documented at Use Docker to kickstart your Drupal development . There are other i...
Add a comment...

Post has attachment
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes)
I ran into the above error message while modifying some custom Drupal code. At first, I thought I just needed to increase the memory limit due to some newly called core functions consuming more than what was allocated. There's good discussion about differen...
Add a comment...

Post has attachment
Using Drupal 8 Cache Tags for Page Caching
This is a small case study in converting how page caching is done in the D7 version of the Optimizely module to Drupal 8. The purpose of the module is to manage the insertion of certain <script> elements into designated pages of a site. To do so, the user c...
Add a comment...

Post has attachment
Enable and Use X-Drupal-Cache-Tags in HTTP headers
While converting from Drupal 7's caching to that of Drupal 8, for debugging purposes I wanted to enable the display of  X-Drupal-Cache-Tags in HTTP headers. How to do this is documented in the article CacheableResponseInterface and is actually simple, but I...
Add a comment...
Wait while more posts are being loaded