Trying to view configuration page at /admin/config/services/sendgrid produces fatal error. From the log:

InvalidArgumentException: Class "Drupal\sendgrid_integration\Form\SendGridSettingsForm" does not exist. in Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() (line 24 of /code/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php).

Comments

joakland created an issue. See original summary.

perignon’s picture

Status: Active » Closed (cannot reproduce)

Hello,

I cannot reproduce your error without more information. I have this module running on a production website and I am able to navigate to that exact path.

Feel free to reopen, but please provide more information on your installation.

paulsheldrake’s picture

Hello

I am getting the same error. I was upgrading from 1.2 to 1.7 and now the settings form doesn't work. I have tried uninstalling and re-enabling and that does not work

paulsheldrake’s picture

I figured this out. The capitalization changed on a file name which git does not reflect as a change. Our fix was to delete the module, commit the deletion and then add the module back and re-commit it

perignon’s picture

A capitalization gotcha with Git!

Also, check out the Beta for 2.x

simoneb’s picture

the quick solution is to rename the file and rename it back

mv SendGridSettingsForm.php _SendGridSettingsForm.php
git add .
mv _SendGridSettingsForm.php SendGridSettingsForm.php
git add .

if you check git status you'll see that git is correctly renaming it

a bit weird indeed :)

------------ EDIT -------
3 other files have the same problem. Better to delete and read the folder indeed