Drupal

Drush symfony PHP errors

Submitted by Greg Nowak on 2020-11-18

If you get this PHP error:

PHP Fatal error:  Uncaught TypeError: Argument 2 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an instance of Symfony\Component\EventDispatcher\Event or null, string given, called in .composer/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/CommandEventHookDispatcher.php on line 36 and defined in vendor/symfony/event-dispatcher/EventDispatcher.php:37
 

Tags

Fixing HTTPRL Core Drupal Network Configuratoin Error

Submitted by Greg Nowak on 2018-05-02
You see something like this: Your system or network configuration does not allow Drupal to access web pages. This could be due to your webserver configuration or PHP settings.
HTTPRL - Core drupal_http_request()
You then go into your httprl config: /admin/config/development/httprl

And set the field "IP Address to send all self server requests to" to -1

Tags

Drupal 8 Bootstrap 3 sub theme setup

Submitted by Greg Nowak on 2016-11-04

Here is a quick guide and notes for myself to be able to setup Bootstrap 3 in Drupal 8. :-)

  • Copy the sub-theme from the starterkit in the bootstrap theme folder to the sub-theme folder.
  • Rename all files to the sub-theme name.
  • Copy the info file from the boostrap theme to the sub-theme.
  • Setup the theme in /admin/appearance/settings

The Drupal Shell - Drush

Submitted by Greg Nowak on 2015-10-02

The Drupal Shell is an amazing tool if you maintain Drupal web sites and you have shell access to the server, where the Drupal site is hosted. This is also an unvaluable tool if you develop i in Drupal.

Drush 8

Updating drush: composer global update drush/drush

Manual install: http://docs.drush.org/en/8.x/install/

Check latest drush version: https://github.com/drush-ops/drush/releases/

Example procedure:

Tags

Import Data From External Source To Drupal

Submitted by Greg Nowak on 2015-10-01

I have a couple of SMF forum sites I wan't to replace with Drupal, but there is a considerable amount of content, why I started to speculate if it could be done programmatically (semi automatic magic). I found a couple of outdated modules for merging data from SMF to PHPBB and then from PHPBB to Drupal. I tried that route once but did not succeed. The thing I would love to see is a transformation of the table data in the SMF database to CSV and then import it with the standard import module for Drupal Migrate.

Portfolio

Submitted by Greg Nowak on 2015-03-14

2021

  • Backend development for casino web app with requirements from Spillemyndigheden.dk.
    • Server setup and optimization.
    • XML generation.
    • Tamper token.
  • Wordpress optimization, upgrading, theme development, plugin development, and migrating old php/asp sites to Wordpress.
  • Upgrading Drupal 7 sites to Drupal 8 and Drupal 9.