Drupal

Charles Tanton - backend Drupal engineer, based in Kommetjie

I'm a backend Drupal engineer with 20 years of experience. I'm currently contracted via Tag1 Consulting, working on a Drupal 11 and PHP 8+ system for a confidential Top 10 Global 500 company. I maintain Entity Inspector, a developer tool for inspecting raw entity data as JSON, and I'm a founding member of the Drupal Johannesburg User Group. This site is my home on the web, a place for my blog, my open-source work, and writing about backend engineering and where AI tools genuinely help in a developer's workflow.

Stay up to date with Drupal, and discover good Drupal resources

Submitted by charles on

Planet Drupal aggregates drupal related blog posts from a number of drupal sites and bloggers. I've only recently discovered it, but have already found some incredibly useful drupal posts here. For example, this one shows you how to allow "everyone, including “anonymous users”, to be informed of updates to nodes right inside their content", something very similar to what a client has just asked me to do.

Drupal node insert error related to the sequences table

Submitted by charles on

I recently added a lot of data to a drupal site by running some scripts that I'd created in php. This was to save me the time of manually capturing the content. After successfully adding the content, when I tried to add a new content item, I got the following error: Warning: Duplicate entry '503-503' for key 1 query: INSERT INTO node (nid, vid, title, type, uid, status, created, changed, comment, promote, moderate, sticky) VALUES (503, 503, 'World Bank ', 'content_organisation', 1, 1, 1171017191, 1171017191, 2, 1, 0, 0) in It turns out that Drupal uses the sequences table to keep track of what the highest id in certain tables is. I had forgotten to update this table with the id of the most recent node that I'd added.