- Issue created by @Nicolas S.
- ๐ฎ๐ณIndia atul_ghate
Hi @nicolas,
Could you please provide detailed steps to reproduce this issue? I am currently unable to replicate it on Drupal 11. To help us investigate, please mention:
The version of Drupal and PHP you are using.
Any specific settings or configurations you have applied to the form.
This information will make it easier to reproduce and debug the problem.Thank you!
- ๐ฎ๐ณIndia mohd sahzad
mohd sahzad โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia mohd sahzad
Hello @nicolas s,
I am unable to reproduce this error. Could you please provide the steps to replicate the issue below?
Error: Call to a member function validateForm() on null in Drupal\csp\Form\CspSettingsForm->validateForm() (line 628 of modules/contrib/csp/src/Form/CspSettingsForm.php).
- ๐ซ๐ทFrance Nicolas S. Lyon, France
I'm in a Drupal 10.3.6 et PHP 8.2, When I save simply form on /admin/config/system/csp
- ๐จ๐ฆCanada gapple
Is this after updating from 1.x to 2.x? Do you have a pending site update?
https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib... โ
The sitelog reporting handler was removed from 2.x in favour of the Reporting API module โ , and an update will disable policy violation reporting on a directive if it has not been changed to a supported alternative.It is still possible to better handle the configuration referencing an unavailable reporting plugin there though...
-
gapple โ
committed 638557be on 2.x
Issue #3478719 Better errors if configuration contains invalid reporting...
-
gapple โ
committed 638557be on 2.x
- ๐จ๐ฆCanada gapple
Changes to provide a form error if an unavailable reporting plugin is referenced in config are in the 2.1.1 release.
Be sure to run module updates, and let me know if you continue to see a similar error.
Automatically closed - issue fixed for 2 weeks with no activity.