drush footnotes:upgrade-3-to-4 node not conventing [fn] to <footnotes>

Created on 10 April 2024, 8 months ago
Updated 26 April 2024, 7 months ago

Problem/Motivation

After running the command `drush footnotes:upgrade-3-to-4 node` and then viewing content that contains footnotes, I'm seeing [fn] and [fn value="*"] tags in the rendered content.

Additonally when running the command drush footenotes:upgrade-3-to-4 block I get an error message "Getting the base fields is not supported for entity type Block."

The command does out put content that is being updated, but the content is not updated.

Steps to reproduce

1) Install CKEditor 5 using composer.
2) Enable CKEditor 5.
3) Update Footnotes:^4.0@alpha
4) Run command drush footnotes:upgrade-3-to-4 node
Received message: [notice] Message: 65 results processed.
5) Run command drush footenotes:upgrade-3-to-4 block
Receives message: Getting the base fields is not supported for entity type Block.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Fixed

Version

4.0

Component

Footnotes

Created by

πŸ‡ΊπŸ‡ΈUnited States nathanhealea

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @nathanhealea
  • πŸ‡¬πŸ‡§United Kingdom scott_euser

    Thanks for raising the issue - for the first one, can you confirm the field is a field attached directly to a node and not some nested entity like paragraphs or layout builder blocks for example?

    For the blocks issue, sounds like a seperate one, would you mind raising seperately please?

  • πŸ‡ΊπŸ‡ΈUnited States nathanhealea

    @scott_euser,

    I can confirm that it is in a nested fiends for the node entity types are in a nested field (paragraphs).

    Certainly I can open a new issues for the blocks issue.

  • πŸ‡ΊπŸ‡ΈUnited States nathanhealea
  • Status changed to Fixed 8 months ago
  • πŸ‡¬πŸ‡§United Kingdom scott_euser

    Great thanks for the info, for the paragraphs use paragraph instead of node and it should solve it for you. Let me know if not (and reopen).

    Will look at your other one asap, should be a quick code change to solve.

    Thanks,
    Scott

  • πŸ‡ΊπŸ‡ΈUnited States nathanhealea

    Hey @scott_euser

    That did work!! Thank you for all the help.

    I would suggest an update to the documentation to call out that you have to have CK5 and Footnotes@^4 installed and enabled before running the commands.

    After you gave me the suggestion to use `paragraph` I did not have CKEditor 5 enabled and I lost my footnotes. After restoring my environment and enabling CK5 with Footnotes, then running the commands it worked.

  • πŸ‡¬πŸ‡§United Kingdom scott_euser

    Not a problem, happy to help! Module homepage updated as suggested, thanks!

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024