invalid access on edit after delete step

Created on 4 June 2020, over 4 years ago
Updated 10 July 2024, 4 months ago

My site's exception
InvalidArgumentException: The Step 'propose_property_unit_general_information' does not exist in forms steps 'property_attach' in Drupal\forms_steps\Entity\FormsSteps->getStep() (line 394 of /code/modules/forms_steps/src/Entity/FormsSteps.php).

Create 3 steps in my_test
Create 3 progress bar entries and setup their links to point to the previously completed ones for each
save
Delete the 2nd step
save
close tab or in a new tab --> admin/config/workflow/forms_steps/edit/my_test
-> should get the exception above (with names changed to correspond to the my_test data)

The 1st progress step says "put my link on the now-non-existing 2nd step" which causes this issue. When a step is deleted, the module needs to remove any link visibility that refers to the deleted step.

Now to gain access to my workflow I need to hack the module or database somehow...
Update: I was able to WAR the issue to get my edit to display and now I can remove the corrupt progress bar steps and re-create them with the correct links.

(pretty sure this is not a duplicate issue)

πŸ› Bug report
Status

Active

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sehmann

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

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

    I had the same issue. Export the config and removing references of the deleted step from the forms_steps.forms_steps.my_form file and the importing the config fixed it for me.

Production build 0.71.5 2024