wn-forms-plugin icon indicating copy to clipboard operation
wn-forms-plugin copied to clipboard

Error send email notification

Open darwinmanchola opened this issue 2 years ago • 6 comments

I have this error on submit form with activated notifications email

"Class "Martin\Forms\Classes\Mails\Notification" does not exist" on line 52 of /home2/devcav9e/ftadrianamunoz.com/vendor/winter/storm/src/Foundation/Maker.php

thanks for you help, sorry by my english

darwinmanchola avatar Jun 07 '23 02:06 darwinmanchola

I have the same error. I suspect that this is due to the update winter/storm ver. 1.2.2

PaavaliPoika avatar Jun 10 '23 00:06 PaavaliPoika

I had similar issue. Renaming the following folders within classes to lower case seems to do the trick for me.

File location: your-winter-install > plugins > martin > forms > classes

Folders: 'FilePond' and 'Mails'

Rename to 'filepond' and 'mails'

TheWebsiteGuy avatar Jun 10 '23 15:06 TheWebsiteGuy

Experiencing the same issue too. @McGonigleDevOps seems to work

eddycodes avatar Jun 13 '23 09:06 eddycodes

@josephcrowell can you test just renaming the classes folder to Classes for me? The changes in Winter's class loading shouldn't have broken anything, but I see that this plugin is using neither PSR-4 nor the October / Winter approach of lower case folders, title case files (since it has a mix of both with classes/Upper/File.php instead of classes/upper/File.php or Classes/Upper/File.php).

LukeTowers avatar Aug 14 '23 06:08 LukeTowers

Renaming the classes folder to Classes does work, but I'm going to stick to the Winter way moving forward. Martin had a habit of breaking this plugin with incorrect case on file/folder names in the past just like this and I won't be doing that.

josephcrowell avatar Aug 14 '23 18:08 josephcrowell

@josephcrowell sounds good, I was just checking since the changes in Winter's classloader explicitly fixes PSR-4 support for plugins. Officially Winter currently supports both PSR-4 and the lowercase folders approach, so I leave that up to individual developers to decide which they want to use.

LukeTowers avatar Aug 14 '23 19:08 LukeTowers