getting below error when we click on add wishlist in backoffice

ArgumentCountError: Too few arguments to function Drupal\Core\Entity\ContentEntityForm::__construct(), 1 passed in C:\wamp64\www\test\d9\modules\contrib\commerce_wishlist\src\Form\WishlistForm.php on line 46 and exactly 3 expected in Drupal\Core\Entity\ContentEntityForm->__construct() (line 56 of C:\wamp64\www\test\d9\core\lib\Drupal\Core\Entity\ContentEntityForm.php)

Comments

manojchowrasiya created an issue. See original summary.

manojchowrasiya’s picture

Title: Error while creating wishlist in backoffice » ArgumentCountError: Too few arguments to function Drupal\Core\Entity\ContentEntityForm::__construct(), 1 passed in C:\wamp64\www\test\d9\modules\contrib\commerce_wishlist\src\Form\WishlistForm.php on line 46 and exactly 3 expected in Drupal\Core\Entity\Co
manojchowrasiya’s picture

Issue summary: View changes
manojchowrasiya’s picture

StatusFileSize
new54.79 KB
digdanlow’s picture

Hello! Try the attached patch. The problem is, like the error says, passing too few arguments to the parent constructor in WishlistForm.php.

joshua1234511’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new107.54 KB

Test the provided Patch. #5. Working as expected, Tested on latest Drupal core 9 and php 7.3.
Attached working Screenshot.

  • jsacksick committed 77ffa4a on 8.x-3.x authored by digdanlow
    Issue #3155371 by digdanlow, manojchowrasiya, joshua1234511: Fix the...
jsacksick’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.