Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello.
When I am trying to run "Retroactively updates" by drush I get the fatal error.
Error: Call to undefined function _filefield_paths_get_field_types() in /modules/contrib/filefield_paths/filefield_paths.drush.inc, line 47
It seems the file filefield_paths.drush.inc comes from D7 and doesn't work on D8.
Comment | File | Size | Author |
---|---|---|---|
#7 | 2930945-add-drush-10-ffp-update-command.patch | 11.82 KB | andy_w |
#4 | 2930945-4.patch | 4.94 KB | rescandon |
Comments
Comment #2
Ruslan PiskarovComment #3
AstonVictor CreditAttribution: AstonVictor at DevBranch commentedIt's a drupal 7 function.
drush_filefield_paths_ffp_update()
drush callback has many drupal 7 functions. such asfield_info_fields()
,entity_get_info()
,element_children()
and so on.So, drush command is not working at all for now.
I think drush command should be removed/disabled for now.
Comment #4
rescandon CreditAttribution: rescandon at Four Kitchens commentedWork in progress
You can use drush with $entity_type $bundle_name $field_name
`drush ffp-update node article field_image`
Comment #5
Ruslan PiskarovThank you @rescandon. If you have time, could you add the following with some description to readme file?
`drush ffp-update node article field_image`
Comment #6
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedIt looks like the Drush code indeed still needs to be ported to D8.
Comment #7
andy_w CreditAttribution: andy_w at Numiko commentedI have made a start on the process to update this drush command to work with drush 11, this is not yet fully tested but I'm aiming to find some more time to work on this soon.