Toastify deletes contexts, blocks, other config on uninstall

Created on 27 September 2024, about 2 months ago

Problem/Motivation

Hi,

Lately, Toastify has stopped working properly, it is not styling messages anymore and putting them at the bottom of the page.

When I uninstall the module it mysteriously deletes a whole bunch of configurations.

I can't uninstall the module and fix the messages due to this, and if someone without making a backup uninstalls via drush it may cause damage to the site.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇹🇭Thailand AlfTheCat

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

Comments & Activities

  • Issue created by @AlfTheCat
  • 🇮🇳India kulpratap2002

    Hi alfthecat ,
    I am unable to reproduce the issue, and the styling is also there and the messages are shown as per the configuration , is there anything you have missed then let me inform so such that i will able to reproduce the error
    I have attached the Screenshot that it does not delete anything.

  • 🇧🇪Belgium dieterholvoet Brussels

    What version of Drupal core and Toastify are you using? And what kind of configs are deleted? Are they mostly user roles, form displays, or other kinds of config?

  • 🇮🇳India kulpratap2002

    I am using drupal core 10 version as toastify works with drupal 8, 9, 10 and i'm using 8.x-1.x-dev version, also checked the issue for 8.x-1.0 version of toastify, still i am not able to produce any issue.
    Configs are not deleted, the last configs of toastify that where it should be shown, position are still there no user roles and anything can't be deleted.
    Toastify working fine.

  • 🇧🇪Belgium dieterholvoet Brussels

    I was asking alfthecat, the issue reporter. No need to change the issue status to 'Needs review' as long as there isn't a fix for the reported issue.

  • 🇹🇭Thailand AlfTheCat

    Hi all, appreciate the quick response. I'm using Drupal 10.3.5, I noticed the official release was newer than the dev release and upgrading to it solved the styling issues. The block and configuration deletions still remain on my end.

  • 🇧🇪Belgium dieterholvoet Brussels

    What kind of configs are deleted? Are they mostly user roles, form displays, or other kinds of config? Also, could you check if all deleted configs have the toastify module listed as dependency?

  • 🇹🇭Thailand AlfTheCat

    No dependencies, the blocks and context deleted during uninstall don't seem to have anything to do with toastify or even status messages in general.

    The only thing is that I've made recent edits to them. Could it be related to Drupal's caching mechanisms somehow?

  • 🇧🇪Belgium dieterholvoet Brussels

    Toastify doesn't have any (un)install hooks, which means it doesn't do anything custom when installing or uninstalling the module. I have no idea what might cause these random configs to be deleted. Are you sure they were deleted when uninstalling this module and not because of something you did right before or after?

Production build 0.71.5 2024