Migrating Drupal 7 input formats to Drupal 8.6.x causes errors

I am trying to write custom migrations to migrate my Drupal 7 website to Drupal 8. I am currently using Drupal 8.6.7 and Drupal 7.61 for a copy of the production website.

So far I have set up the D8 website with composer (docroot is path/to/web) (https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies )

I have always used Drush for maintenance actions on the D7 site and I am using Drush 9 for most of the actions including the migrations on the D8 site.

I have installed the most relevant modules in the D8 site so that I can start the migration, most notably all the D8 equivalents of the modules I used in the text formats/filters as well as migrate_plus, migrate_tools and migrate_upgrade.

The migration files are generated with the Drush command:

drush @dev migrate-upgrade "$  LEGACYDB" "$  LEGACYURL" --configure-only --migration-prefix=osn_custom_ 

So far I have successfully migrated the users and their roles so I have some knowledge on how migrations work.

The problem I am currently working on is the migration of a custom content type called ‘classified’. This type has a default Drupal 7 body field and a field ‘field_image’. So quite ordinary.

When I use the default generated migration file, it looks like everything is migrated, but the text is not visible. After research I found this is caused by the fact that the input format is set to the D7 code (in my case 2 aka ‘full html’) while there is no filter code in D8 that is called ‘2’. (src: https://www.drupal.org/docs/8/upgrade/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8#d7_to_d8 ).

I decided that I might as well convert 2 to ‘basic html’ and use the D8 configuration and not migrate the D7 text filters at all.

I created a migration lookup plugin with a static map that converts all D7 codes to the preferred D8 code. It might work well, but I am running into the problem that I can’t get the migration plugin to work with the migration of the ‘classified’ migration configuration. So I decided to simplify it and set the format to a default value ‘basic_html’.

Here is what I tried in the migrate_plus.migration.osn_custom_d7_node_classified.yml The code snippets below only show the body configuration, because the other field configurations are generated with the drush command and not altered.

body: body 

the default. Content is migrated, input format is set to ‘2’.

According to this: https://www.drupal.org/docs/8/api/migrate-api/migrate-process-plugins/migrate-process-overview#nested

and this: https://medium.com/drupal-stories-an-insiders-view/migrate-api-custom-drupal-to-drupal-migration-3bab05da4686

and this: https://www.phase2technology.com/blog/drupal-8-migrations

it should be done like this:

  'body/format':      plugin: default_value     default_value: basic_html    'body/value': body 

However, this results in the following error:

[error]  InvalidArgumentException: Placeholders must have a trailing [] if they are to be expanded with an array of values. in Drupal\Core\Database\Connection->expandArguments() (line 729 of /Users/helma/Sites/OSND8/dev/web/core/lib/Drupal/Core/Database/Connection.php).  [error]  Placeholders must have a trailing [] if they are to be expanded with an array of values. (/Users/helma/Sites/OSND8/dev/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php:783) 

I have no clue what is wrong and what I should do instead. I also don’t know how to debug this to find out what it’s expecting.

Can someone please give me some pointers?

1440p/144hz Causes Mouse Stuttering

I have a 15″ 2018 MacBook Pro with 4GB Radeon Pro 555X graphics. I also own a Pixeo PXC32 monitor that I use between my Windows 10 laptop and this MacBook. I am having trouble getting 144hz in 1440p out of this monitor with the MacBook. It causes an unusable amount of mouse stuttering when I use cables that support it.

Here are the configurations I have tried:

  • Non-Powered 3rd party USB-C dongle with USB-A ports and an HDMI out. I don’t have access to change the refresh rate higher than 60hz in this configuration.
  • Apple USB-C to HDMI/USB-A adapter. I get screen flickering with this one, can’t go above 60hz.
  • 3rd party Thunderbolt 3 to mini-display port adapter to a mini display port to display port cable. I get mouse stuttering.
  • 3rd party Thunderbolt 3 to display port cable. Mouse stuttering.

Toggling an interface causes static ipv6 address to be deleted whereas ipv4 address stays. How to make ipv6 address also stay?

I’m working with kernel 2.6.32. I have set a static ipv4 and ipv6 address on my machine.

ifconfig eth1 eth1      Link encap:Ethernet  HWaddr 00:50:56:AB:8D:A1           inet addr:  Bcast:  Mask:           inet6 addr: 2011:1::/32 Scope:Global           inet6 addr: fe80::250:56ff:feab:8da1/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:4470 errors:0 dropped:2 overruns:0 frame:0           TX packets:22237 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:100           RX bytes:235138 (229.6 KiB)  TX bytes:1389682 (1.3 MiB) 

After that I toggled the interface

ip link set dev eth1 down ip link set dev eth1 up 

Then the output

ifconfig eth1 eth1      Link encap:Ethernet  HWaddr 00:50:56:AB:8D:A1           inet addr:  Bcast:  Mask:           inet6 addr: fe80::250:56ff:feab:8da1/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:4470 errors:0 dropped:2 overruns:0 frame:0           TX packets:22240 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:100           RX bytes:235138 (229.6 KiB)  TX bytes:1389940 (1.3 MiB) 

How do I make the ipv6 comeback like the ipv4 ?

There is a solution in the newer kernels https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1218442

I’m looking if there is a solution or a workaround to make it work for 2.6.32 kernel.

Remote Desktop 10.2.3 Database Creation Error; 10.2.1 runs fine; 10.2.2 crashes: how to find actual cause(s)?

What would be good steps to find the cause of the below errors?

I get this error when running Microsoft Remote Desktop 10.2.3 or higher on MacOS High Sierra: enter image description here

Database Creation Error  "An error occurred during persistent store migration.  [Domain: NSCocoaErrorDomain, Code: 134110]" 

I am stuck at 10.2.1 now (which cannot add user accounts and will eventually stop working), want to use the newer version, but cannot use intermediate 10.2.2 as it crashes with the below information that I repeatedly submitted with the “Problem Report for Microsoft Desktop”.

Manually migrating all the machine and user entries is really cumbersome: there are hundreds of them.

Information that might help:

  • where is the information on entries and users stored?
  • what format is that information stored?
  • are the tools for converting that information between various versions?
  • where are crash reports stored?

Crash report on 10.2.1: https://gist.github.com/jpluimers/851453d938a62ce45abd30fb929ae5e1

Is there a spell, weapon, or effect that causes permanent and irrevocable death?

Going by RAW, is there a way to (reliably) kill someone that cannot be undone? Short of outright wishing it’d never happened, I mean.

I don’t mean just Imprisonment, or whatever. The creature has to actually be dead, and this death has to actually be non-undoable by using something like True Resurrection.

I’m aware of quite a few in 3.5, and aware that there is a creature called a Barghest that has a 50% chance of doing this.

I’m also aware that something like this could easily be house-ruled in, but I’d prefer it if it were RAW.

Only affecting living creatures, or have obscure ways of avoiding it would be fine.

Area of effect > Single-target spell > Melee weapon

It occurs to me that you could (possibly) transfigure an avatar of death into something, and use them to kill someone. I’d be cool if there was an answer derived from this, as long as it’s RAW.

PTP causes periodic time jumps

I have GigEVision cameras where I like to synchronize the cameras’ internal clocks with a Ubuntu 16.04.5 host via PTP. Unfortunately, as soon as I enable the PTP synchronization, I get periodic jumps every ~2 seconds (i.e. ~80 frames @ 40 Hz). I’ve compared the clocks of two cameras, where camera 2 has “PTP on” and camera 3 has “PTP off” (I’ve removed the offsets for the overlay): enter image description here

I run the PTP service on the connected Ubuntu host as the PTP GrandMaster via: /usr/sbin/ptp4l -i ens11f0 -m -S -l6 -E -2 (Yes it is software based since hardware sync is not supported by the kernel in 16.04).

Does anyone has a similar experience with PTP or do I do something wrong with the PTP GrandMaster?

What causes blue tint of my photos and how to get rid of it?

I am trying to make a 3D model of a building using a series of photos.

This is a photo I took yesterday:

enter image description here

This one I took today, when I was trying to continue from that point:

enter image description here

Yesterday’s sky was cloudy, while today it was completely gray and grim and dark.

This is probably what causes reduced contrast and blue tint in the second photo.

Structure From Motion algorithms are very sensitive to changes in colors like that. I need to find a way to fix the color palette of the second batch of photos to make it closer to the first.

How can I compensate for the difference in post processing?

zoom in causes shrinking TPanel (FMX, Win32)

I’m using a TPanel to draw on (placing rectangles on it). It is set to Align to Client (fills up the form). I want to be able to zoom in on my drawing so I tried the following code:

PanelDrawingArea->Scale->X =  PanelDrawingArea->Scale->X / 1.1; PanelDrawingArea->Scale->Y =  PanelDrawingArea->Scale->Y / 1.1;   

This is no good for 2 reasons. 1) The TPanel (PanelDrawingArea) does not stay aligned to it’s Form client as you can see from the picture below. 2) The relationship between pixel distance on the Form and the scaled TPanel is no longer 1:1 so when i drag my little rectangles around the mouse “pulls away” from them instead of staying right with them.

enter image description here

I’m open to better direction if TPanel is not a good place to build a drawing.

Enabling free form windows in android O causes buttons in recent apps menu to overlap

I have searched for a way to enable free form windows. I’ve used the adb way,

adb shell settings put global enable_freeform_support 1 

But I couldn’t use it because the close button is overlapping free form button:


My phone is Huawei P20 Lite (ANE-LX1) with EMUI 8.0.0 and android 8.0.0 with nova launcher. Close button works like a charm when clicked

Any ideas what to do (rather than disabling the free form ) ?

It is okay to replace closing button with free form button if that’s available.

Any solution without root is preferred.