- Status changed to RTBC
over 1 year ago 10:38am 30 May 2023 - 🇮🇳India Chandra Gowsalya Kannan
Applied the merge request in Drupal 9 and Drupal 10. Found no error in drupal check and upgrade status.
It makes module compatible without error. Attached screenshot for reference.Moving to RTBC :)
-
Marcin Dębicki →
committed cb2e86d0 on 2.x authored by
jkamizato →
Issue #3289114: Drupal10 fixes
-
Marcin Dębicki →
committed cb2e86d0 on 2.x authored by
jkamizato →
- 4c4d82a7 committed on issue/popoup_message-3289114
Issue #3289114: Use DI instead of calling service statically.
- 4c4d82a7 committed on issue/popoup_message-3289114
- 8fe99b2b committed on issue/popoup_message-3289114
Issue #3289114: Remove obsolete empty line.
- 8fe99b2b committed on issue/popoup_message-3289114
-
Marcin Dębicki →
committed c416fe02 on 2.x
Issue #3289114: Replace deprecated classed with current ones.
-
Marcin Dębicki →
committed c416fe02 on 2.x
- 🇧🇪Belgium LRoels Ghent
After the changes in this last commit, the configuration page seems to be broken.
Errors like the one below seem to point at this commit.TypeError: Drupal\popup_message\Form\PopupMessageSettingsForm::__construct(): Argument #1 ($cssOptimizer) must be of type Drupal\Core\Asset\CssCollectionOptimizerLazy, Drupal\Core\Asset\CssCollectionOptimizer given, called in /var/www/html/web/modules/contrib/popup_message/src/Form/PopupMessageSettingsForm.php on line 81 in Drupal\popup_message\Form\PopupMessageSettingsForm->__construct() (line 66 of modules/contrib/popup_message/src/Form/PopupMessageSettingsForm.php).
- Status changed to Needs work
over 1 year ago 10:31am 27 June 2023 - 67bb1517 committed on issue/popoup_message-3289114
Issue #3289114: resolve conflict.
- 67bb1517 committed on issue/popoup_message-3289114
-
Marcin Dębicki →
committed c416fe02 on issue/popoup_message-3289114
Issue #3289114: Replace deprecated classed with current ones.
-
Marcin Dębicki →
committed c416fe02 on issue/popoup_message-3289114
- 7a31f538 committed on issue/popoup_message-3289114
Issue #3289114: Update modules's composer.json requirements.
- 7a31f538 committed on issue/popoup_message-3289114
- 215e9b95 committed on issue/popoup_message-3289114
Issue #3289114: Revert to use qualifier.
- 215e9b95 committed on issue/popoup_message-3289114
- 🇵🇱Poland Marcin Dębicki Poland, Goleniów
Hi LRoels , thank you for reporting this issue. It's been fixed. Release 2.0.2 contains this change.
- 🇺🇸United States JackG102 Falls Church, VA
I currently upgraded to the 2.0.2 release, cleared the cache, and I am getting the error marked in comment #14 when I go to the configuration page for the module. This is curious, because I am confirming that I am seeing CssCollectionOptimizerLazy name changes in the code in our codebase to confirm we pulled in the latest changes. Not sure, but wanted to drop in a comment that I am also having an issue. I will check to see if I have made an oversight somewhere.
- 🇧🇪Belgium LRoels Ghent
Hi, we also still get the error after updating to the 2.0.2 release.
I think it has to do with the lazy class not existing untill 10.1 ( https://www.drupal.org/node/2888767 → ).
We are using D10.0.9. It seems best to keep using the CssCollectionOptimizer class because otherwise the module is not backwards compatible. - @lroels opened merge request.
- 🇩🇪Germany macdev_drupal Wiesbaden
Confirm - 2.0.2 is broken with 9.5.9 Drupal Core
- 🇺🇸United States JackG102 Falls Church, VA
First time patch maker :) - I have tentatively put a patch together that I think should work for folks who want to upgrade to 2.0.2 but are still on D9 or it seems prior to D10.1 according to LRoels and the docs linked to. It mainly takes off the "Lazy" parts in PopupMessageSettingsForm.php. I have tested applying it to my D9 project and now the configuration menu works well. To be clear, this patch should not be merged in, but a helpful bridge to help people upgrade the module but have it work on D9 prior to the D10 jump.
Feel free to improve upon it and make it your own.
- 🇵🇱Poland Marcin Dębicki Poland, Goleniów
Version 2.0.3 released as compatible with Drupal 8 || 9. Drupal 10 compatibility released as 3.0.0 version.
- 🇧🇷Brazil carolpettirossi Campinas - SP
I'm wondering why can't we make the v3 compatible with D9?
How do I upgrade from Drupal 9 to Drupal 10 if I have this module on v2?
- 🇵🇱Poland Marcin Dębicki Poland, Goleniów
Hi Carolpettirossi,
we had to split versions due to breaking changes. CssCollectionOptimizer starting from Drupal 10.1 is deprecated in favor of CssCollectionOptimizerLazy and CssCollectionOptimizerLazy is not available for Drupal 9.
When it comes to upgrade Drupal 9 to 10 you need to update module's version i composer.json or just run composer require drupal/popup_message after upgrade Drupal 9 to Drupal 10.
- 🇮🇳India sakthi_dev
Hi Carolpettirossi,
You can use
"drupal/popup_message":^2.0 || ^3.0
in composer.json while upgrading from D9 to D10. So, that we won't be getting any blockers. - 🇺🇸United States JackG102 Falls Church, VA
I think with the release 3.0.0, there is now a stable Drupal 10 release. In addition to sakthi_dev's comment about how to upgrade from D9 to D10 with some simple composer syntax to either use 2.x or 3.x, this ticket can be closed now and have the status marked as "fixed"? I am not sure if a maintainer should do that or if it's deemed permissible for someone else to do?