Problem/Motivation
drupal 10 compatibilty issues currently found issues through upgrade status scan report
CONTRIBUTED PROJECTS
--------------------------------------------------------------------------------
Superfish 8.x-1.4
Scanned on Tue, 07/26/2022 - 18:49.
3 warnings found.
web/modules/contrib/superfish/templates/superfish-menu-items.html.twig:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Check │ 0 │ The spaceless tag in │
│ manually │ │ "modules/contrib/superfish/templates/superfish-menu-items.ht │
│ │ │ ml.twig" at line 23 is deprecated since Twig 2.7, use the │
│ │ │ "spaceless" filter with the "apply" tag instead. See │
│ │ │ https://drupal.org/node/3071078. │
│ │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘
web/modules/contrib/superfish/superfish.libraries.yml:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Check │ 0 │ The 'superfish' library is depending on a deprecated │
│ manually │ │ library. The core/jquery.once asset library is deprecated in │
│ │ │ Drupal 9.3.0 and will be removed in Drupal 10.0.0. Use the │
│ │ │ core/once library instead. See │
│ │ │ https://www.drupal.org/node/3158256 │
│ │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘
web/modules/contrib/superfish/superfish.info.yml:
┌──────────┬──────┬────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼────────────────────────────────────────────────────────────┤
│ Check │ 0 │ Value of core_version_requirement: ^8 || ^9 is not │
│ manually │ │ compatible with the next major version of Drupal core. See │
│ │ │ https://drupal.org/node/3070687. │
│ │ │ │
└──────────┴──────┴────────────────────────────────────────────────────────────┘
Steps to reproduce
1. A normal drupal instance of version 9.4.
2. install superfish module
Proposed resolution
1. make the necessary changes as per the report.
2. create a patch.
Remaining tasks
1. Resolve the issue and create a patch
2. appy the patch and run the module again through upgrade status module.
3. review and check.
User interface changes
API changes
Data model changes
Comments
Comment #2
sharayurajput commentedI will work on this issue
Comment #3
sharayurajput commentedProvided the patch for the changes mentioned in Problem/Motivation
This web/modules/contrib/superfish/superfish.libraries.yml file is not present in the directory
Comment #4
sharayurajput commentedComment #5
wylbur commentedWe're working on D10, and trying to get superfish working on a site. The previous patch did not resolve the error about calling the libraries file:
web/modules/contrib/superfish/superfish.libraries.yml:This patch should resolve those errors and make this compatible with D10.
The attached patch applies to the 1.x-dev@dev branch.
Please test, ready for review!
Comment #6
hemangi.gokhale@wylbur, I have tested the given patch but For D10 compatibility it needs work.
Comment #7
hemangi.gokhaleThe above patch has missing fixes for libraries, so those have been resolved in this patch now. This issue needs review.
Comment #8
rishu_kumar commentedWhen I apply #7 patch.
Patch apply cleanly I attached some screenshot also.
It can be moved to RTBC.
Thanks
Comment #10
tjtj commentedPlease set this as a release. I cannot update to D10 with patches.
Comment #11
maxilein commentedPlease, make a release.
Comment #12
perarg commentedPatch #7 works great with D10. Please proceed to RTBC
Comment #13
samlerner commentedConfirmed the patch in #7 works for me as well. Changing to RTBC.
Comment #14
mylocaltrades commentedI can also confirm patch in #7 works and I have this running on 25 production sites for well over a month and everything works as expected.
Comment #15
biarr commentedPatch #7 is working as expected.
Comment #16
tjtj commentedIgnore this. Was a drush issue.
When I install patch 7, using
"patches": {
I get
Lots of internal modules are upgraded/downgraded doing this.
This was due to an old drush link. Not a superfish issue.
Please release this already!!
Comment #18
mlubbers commentedDear developers,
Please, put a release of Superfish for Drupal 10 in the repository.
I've patched my Drupal 9 version successfully with path 3299991 ( So, the Upgrade_Status is fine.), however it fails to update to Drupal version 10 since it can not be found in the repository of Drupal. Using composer update....dev-x.1.
Or is there another way to upgrade Superfish to Drupal 10.
Kind regards,
Marcel
Comment #19
phil stringer commentedSave a tar file of the patched module, and also one of the library as that is a dependency. Ten do a composer remove without uninstalling superfish. Then untar the files to put all the files back. That makes it all work again whilst composer knows nothing about so can try the update to drupal 10. Once the d10 version of superfish is finally released then install it via composer. That is how we've got round it.
Comment #20
mlubbers commentedDear Phil,
Thanks for your quick response!
All works fine in D10, using your method for updating superfish.
I hope, an official release will be available soon.
Cheers,
Marcel
Comment #21
prashant.cThe alterations are operating smoothly on Drupal 10.1.x version and have achieved compatibility.
It would be greatly appreciated if the module maintainers could create a release for Drupal 10 of this module, as it is widely used on many websites and will be advantageous during the upgrade process from Drupal 8 or 9 to 10.
Thank you.
Comment #23
lobsterr commentedFor those, who have problems with composer, because info file cannot be patched, you can use this configuration:
Comment #24
chikeThere is a standard solution to add a module that does not have a D10 compatible release in D10 and that's the new Composer Drupal Lenient plugin. With this you can install the module and then patch it to become compatible.
Comment #25
prashant.c@chike We appreciate you informing us about this tool.
Comment #26
snap_x+1 to RTBC
I tested the patch #7 on Drupal 10.0.8. Everything looks fine and works without any errors.
Would be great to have D10 release
Comment #27
edward.peters commentedI too would be extremely grateful for an official D10-compatible release
Comment #28
lobsterr commentedI tried to contact the maintainer, he has never replied. I believe the only way to get a new release to take over the maintenance
Comment #29
foxy-vikvik commentedTested #7 patch.
Comment #30
prashant.c@LOBsTerr You are correct, the author of the module has not been active since 2020. It would be beneficial if they designated someone else as maintainers to ensure that this excellent module receives proper upkeep. I will attempt to contact the author via their contact page and hope to receive a response.
Comment #31
foxy-vikvik commentedpatch #8 is not working if use drupal-lenient
Comment #32
foxy-vikvik commentedI tested it on Drupal 10 - it is workes well
superfish-d10-compatibility-15053339-9.patch
Comment #33
lobsterr commentedI will try to take it over.
Comment #34
lissy commentedIf i use the patched Version fo superfish with core_version_requirement: ^8 || ^9 || ^10 in the info-file and the other changes, i get the message from composer:
drupal/superfish dev-1.x requires drupal/core ^8 || ^9 -> found drupal/core[8.0.0, ..., 8.9.20, 9.0.0, ..., 9.5.9] but it conflicts with your root composer.json require (^10.0).
How to get the patched version under composer controll in Drupal 10?
Comment #35
snap_x@Lissy you can use Drupal's Lenient Composer Endpoint to avoid composer version compatibility issues.
Comment #36
youssef.maaddi commented@snap_x thank you for your suggestion, I successfully installed the module on my drupal 10 instance using the Drupal' Lenient and I applied the patch #32
Comment #37
chikePatch #32 is working for me.
Comment #38
oily commentedI have tested patch #32 on the Drupal 10 dev after installing the module and applying the Drupal Lenient plugin.
Comment #39
drupgirl commentedThe patch in 32 does not apply with lenient to 8.x-1.x-dev. The patch in 7 does apply with lenient.
Comment #40
oily commented@drupgirl Yes, that is true. I have just applied patch #7 with the Lenient module. It works. Here is a copy of the composer.json I am using. I have placed the Superfish Main Navigation block in the Content region and disabled the 'normal' Main Navigation block. It works: no errors on screen or under Reports > recent error messages- with Drupal 10.0.9.
Comment #41
oily commentedComment #42
oily commentedComment #43
samlerner commented@LOBsTerr any luck becoming a maintainer of this project? I think at this point all we need is a stable release.
Comment #44
lobsterr commentedSorry guys, I was a bit busy these days.
I have to follow a procedure. First I have created a ticket #3369119: Offering to maintain Superfish and if there is not response I can ask to transfer the ownership. We will have to wait a bit more
Comment #45
lomale@bluewin.ch commentedIt's my second last module with incompatibility warning in upgrade status.
I would be extremely grateful for a D10-compatible release.
I'm not familiar with patching.
Thanks
Comment #46
maxilein commentedI would be grateful too!
It is used in soo many sites...
Comment #47
lissy commentedAlso i would be very happy about a D10-compatible release!
Comment #50
lobsterr commentedThank you everyone for contribution
Comment #51
lebachai commentedI want to thank everyone who worked to get this D10 version to release. Best thing to wake up to today!
Comment #52
samlerner commentedHooray! Thank you @LOBsTerr for your persistence in getting a release out!
Comment #53
lissy commentedYippiee!!! Thanks from me. ;-)
Comment #54
lomale@bluewin.ch commentedHi, just great, your work
It works