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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Ruslan P created an issue. See original summary.

Ruslan Piskarov’s picture

Issue tags: +drush
AstonVictor’s picture

It's a drupal 7 function.
drush_filefield_paths_ffp_update() drush callback has many drupal 7 functions. such as field_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.

rescandon’s picture

FileSize
4.94 KB

Work in progress
You can use drush with $entity_type $bundle_name $field_name
`drush ffp-update node article field_image`

Ruslan Piskarov’s picture

Thank you @rescandon. If you have time, could you add the following with some description to readme file?
`drush ffp-update node article field_image`

MegaChriz’s picture

Title: Call to undefined function _filefield_paths_get_field_types() » Port Drush integration for File (Field) Paths
Category: Bug report » Feature request

It looks like the Drush code indeed still needs to be ported to D8.

andy_w’s picture

I 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.