Closed (fixed)
Project:
Webform Views Integration
Version:
8.x-5.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2024 at 10:17 UTC
Updated:
16 Sep 2024 at 08:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
socialnicheguru commentedError was introduced here: #3386492: Fix Fatal error on Drupal 9/10 : ArgumentCountError: Too few arguments to function EntityViewsData::__construct(), 6 passed
Comment #3
rajab natshahFacing the same issue
Comment #5
gogowitsch commentedI have attached a patch. Now my database updates (
drush updb) run through smoothly and the site works again.Comment #6
socialnicheguru commentedComment #7
socialnicheguru commentedThe patch works for me.
If it also works for you, please change to RTBC so we can get this in.
Comment #8
rajab natshahThanks, Anietie, for reporting
Thank you, Christian, that was quick!
The Patch in #5 is working.
Comment #9
socialnicheguru commentedI don't know if this is possible but it would be great to reroll with the fix. haivn a major version create a WSOD can be harmful.
Comment #10
paulguy commentedGet the error after last update, patch #5 fixes the issue. thanks
+1 for a new release too
Comment #11
marysalome commentedThanks for this update and for the patch! Unfortunately Patch #5 didn't work for me with version 10.3.2 of Core. Let me know if there is any other info that might help solve this if it happens for others as well. I just got this error, not a lot of detail:
Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2024-08-13/webform_views-issue-34677...
Comment #13
jfauske commentedI believe we only need to add the proper alias here as proposed in https://git.drupalcode.org/issue/webform_views-3467786/-/tree/3467786-fi...
Comment #14
gogowitsch commentedRegarding #13: ...Interface as a type hint should always be preferred if an ...Interface type exists.
Regarding #11: the patch should apply independent of the Drupal Core version. I suspect you either were not in the right directory, or you had a different webform_views module version on your disk.
Comment #15
socialnicheguru commentedIt worked for me on the newest version of webform_views and Drupal 10.3.2
Comment #16
fonant commentedPatch in #5 works for me, thank you!
Comment #17
socialnicheguru commentedComment #18
sense-design#5 👍 works for me too, new version please.
Comment #19
cpierce42Adding my +1 for reviews. #5 works for me.
Comment #23
acbramley commentedComment #25
acbramley commentedFixed and released in https://www.drupal.org/project/webform_views/releases/8.x-5.4
Comment #26
rakesh.gectcrDue to some reason, The error, I am getting the same error with 5.4.0
So I created the patch against the same and its working fine for Drupal 10
Comment #27
rakesh.gectcrComment #28
rakesh.gectcrComment #29
socialnicheguru commentedThe wrong fix was introduced in 5.4.
Patch in #26 fixes it. that patch is very similar to #5 which applied to 5.3.
Error with webform_views 5.4 is much like the original:
Error: Uncaught TypeError:
Drupal\webform_views\WebformSubmissionViewsData::__construct(): Argument #7
($entity_type_bundle_info) must be of type Drupal\webform_views\EntityTypeBundleInfo,
Drupal\Core\Entity\EntityTypeBundleInfo given, called in
drupal-10.3.x/html/modules/contrib/webform_views/src/WebformSubmissionViewsData.php
on line 39 and defined in
drupal-10.3.x/html/modules/contrib/webform_views/src/WebformSubmissionViewsData.php:74
Workaround for now:
I am reverting to 5.3 and the original fix in #5. (#26 is a remake of #5 for 5.4).
or apply patch in #26 to 5.4
Comment #30
rex.barkdoll commentedWanted to confirm that #5 was working, then stopped working this morning. Implemented #26 and it's working now.
Comment #31
jfauske commentedDid you rebuild your caches after updating to 5.4.0?
Your error output indicate, to me, that you didn't.
Because
Drupal\Core\Entity\EntityTypeBundleInfoimplementsDrupal\Core\Entity\EntityTypeBundleInfoInterface- which the fix imports.And as such, the given
Drupal\Core\Entity\EntityTypeBundleInfoobject is of the required type... in 5.4.0.Comment #32
rwanthSeconding what @jfauske said. The issue was a missing use statement that the committed release resolved. There is no reason to use the
EntityTypeBundleInfoclass instead of its interface.If the error message says "
must be of type Drupal\webform_views\EntityTypeBundleInfo" then your site hasn't had it's caches rebuilt after deploying the 5.4 update.Thanks for the fix @acbramley.
Comment #33
socialnicheguru commentedUGGHHHH.... Yes it was a cache issue. 5.4 works for me.
The cache gremlins got me on this one. I apologize.
If you install 5.4 please clear cache. It works without the patch.
Comment #34
acbramley commentedAs per #31
Comment #35
marysalome commentedVersion 5.4.0 works where patch #5 didn't for me. Thank you!
Comment #36
greenhornDue to some reason, The error, I am getting the same error with 5.4.0
yes me too.
patch #26 works for me thanks @rakesh.gectcr
Comment #37
socialnicheguru commented@greenhorn, remove the patch and make sure that you clear your cache
Comment #38
vensiresI also fell into this issue. For some reason, it only worked after I executed
composer clear.Comment #39
acbramley commented@greenhorn you do not need the patch, you need to clear cache.
Comment #40
cpierce42Adding a note incase anyone else has a similar environment to mine:
Lando, drupal 10.x, docker.
I needed to run `composer update --prefer-dist`, `lando composer clear` and then `composer clear` before drush commands would run.
Comment #41
cpierce42Actually I take that back. When I deploy to an Acquia server via pipelines I get a lockout where I cannot run "composer clear" to clear composer cache. Drush cache clear works normally but does not resolve WSOD.
Comment #42
nicodh commentedAlso same error for me, as #36. I need 5.4.0 + patch from #26 to be able to run drush cache clear