This issue is created for D10 compatibility of the module to provide manual patches in separation to https://www.drupal.org/project/we_megamenu/issues/3299477 that has got automated patches from the project bot that isn't fully resolving the compatibility issues.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | we_megamenu-fix-php8-deprecations.patch | 2.08 KB | p.kasianov |
| #14 | we_megamenu-fix-drupal-10.patch | 20.82 KB | p.kasianov |
| #11 | Screenshot 2022-08-26 at 19.35.21.png | 66.57 KB | fathima.asmat |
| #11 | interdiff_7-11.txt | 3.77 KB | fathima.asmat |
| #11 | we-megamenu-d10compatibility-3300703-11.patch | 34.94 KB | fathima.asmat |
Issue fork we_megamenu-3300703
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
fathima.asmat commentedA patch for fully fixing all the compatibility issues raised by upgrade status is attached here.
Before patch:
AND after patch:
Comment #3
fathima.asmat commentedComment #4
luke.leberSetting back to NW with the following review notes:
The support range has to be
^9.2 || ^10sincedrupal/oncewas added in 9.2.This means that this change drops support for Drupal 8 entirely.
We'll want to use the core
oncelibrary instead.Comment #5
kristen polThanks everyone for participating in porting day! Getting close with this issue :)
Comment #6
akashkumar07 commentedThis patch addresses #4. Please review.
Comment #7
fathima.asmat commentedThanks for the feedback Luke. Patch and Interdiff are attached to address #4.
I would recommend that the module maintains a different branch to keep jQuery once to support versions < 9.2 and update the module's Drupal page/documentation as necessary.
Comment #8
ameymudras commentedTested this module on Drupal 10.0.x & php 8.1
1. The patch applies cleanly
2. Upgrade status errors have been resolved
3. Was able to enable the module but on admin/structure/we-mega-menu I see following error
Exception: Object of type Drupal\system\Entity\Menu cannot be printed. in Drupal\Core\Template\TwigExtension->escapeFilter() (line 450 of /app/web/core/lib/Drupal/Core/Template/TwigExtension.php).Comment #9
ameymudras commentedComment #10
fathima.asmat commentedComment #11
fathima.asmat commentedThanks for reviewing it @ameymudras.
I have attached a patch with the fix for #9. this patch also included further fixes for explicit access checks for the entity query and PHP 8 warning regarding optional argument declared before compulsory argument on class methods.
I ave tested and confirmed /admin/structure/we-mega-menu is accessed without any issues, see attached.
Comment #12
fathima.asmat commentedComment #13
kristen polWorking during porting day.
This needs testing on Drupal 10. Here are some instructions:
https://www.drupal.org/community-initiatives/contribution-events-initiat...
Comment #14
p.kasianov commentedHi,
I did update the patch for D10 moving (8.13.0). Did remove some mess from js - lines that marked as updated but in fact that wasnt updated.
+ added patch for php8 fix issues.
So, I wanna ask - can I help you with update module to D10 core vestion?
Maybe, ..make new fork...?
7 months no updates..
Lemme know if you need help for that.
Thanks.
Comment #16
rjjakes commentedPatches provided by t1mm1 look the cleanest of the D10/PHP8 patches. I will merge this one and resolve conflicts for others and merge.
Comment #18
rjjakes commentedComment #19
rjjakes commentedComment #21
n.ghunaim commentedI'm using Drupal 9.5 and the we_megamenu backend it's not working for me.
Comment #22
rjjakes commentedHi @n.ghunaim - can you open a new issue with details please.
Comment #23
heddnCan we get that promised D10 tag release? It still isn't clear if this module supports D10 unless I visit the git repo and review composer.json and .info.yml file. Having a tag makes that so much more obvious (I assume it does support D10, right?). :pray:
Comment #24
pgrandeg commentedI agree with @heddn, there was no new releases for more than 2 years and having a release will help to D10 implementation.
Maybe it would be a good idea to create a new branch 2.x and give support to D10 there to keep retrocompatibility with <9.5 in 1.x.
Thank you all
Comment #25
rjjakes commentedI have created a tag in git. I don't have permission to create a release on the page, but there is a D10 tag.
Comment #26
avpaderno@rjjakes Which tag did you create?