Problem/Motivation
- ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /whatsapp_bubble/src/Form/ConfigForm.php on line 28 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of /app/web/core/lib/Drupal/Core/Form/ConfigFormBase.php).
Steps to reproduce
- Setup drupal core with version 11.2.4
- Enable the whatsapp_bubble module and go to its configuration page
Proposed resolution
- Fix the above constructor argument issue in config form.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3548284-2-fix-argumentcounterror-in-config-form-constructor.patch | 1.09 KB | shreyal999 |
| Screenshot from 2025-09-23 23-29-41.png | 220.03 KB | shreyal999 |
Comments
Comment #2
shreyal999 commentedUpdated the above to fix the ArgumentCountError in Config form at `admin/config/services/whatsapp-bubble`
Comment #3
shreyal999 commentedComment #5
obiwankenobi commentedThank you!