ihqs / ContactBundle

This is a Contact Bundle built on the Observer Pattern. Plug any listener you want to your contact form in a really simple way and flexible way
http://ihqs.net
25 stars 15 forks source link

Simple form doesn't work. #7

Open Bieleke opened 12 years ago

Bieleke commented 12 years ago

If you want a simple contact form only sending an email to you contact mailbox, then you just have to add to your configuration file

ihqs_contact: connectors: email: recipients: cont@ct.me

This doesn't work, produces the next error...

Whoops, looks like something went wrong. 1/1 ErrorException: Notice: Undefined index: contact in /var/www/vendor/bundles/IHQS/ContactBundle/DependencyInjection/IHQSContactExtension.php line 44

in /var/www/vendor/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php line 65
at ErrorHandler->handle() in /var/www/vendor/bundles/IHQS/ContactBundle/DependencyInjection/IHQSContactExtension.php line 44
at IHQSContactExtension->load() in /var/www/vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php line 42
at MergeExtensionConfigurationPass->process() in /var/www/vendor/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/MergeExtensionConfigurationPass.php line 39
at MergeExtensionConfigurationPass->process() in /var/www/vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php line 119
at Compiler->compile() in /var/www/vendor/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php line 437
at ContainerBuilder->compile() in /var/www/app/bootstrap.php.cache line 868
at Kernel->buildContainer() in /var/www/app/bootstrap.php.cache line 779
at Kernel->initializeContainer() in /var/www/app/bootstrap.php.cache line 513
at Kernel->boot() in /var/www/app/bootstrap.php.cache line 544
at Kernel->handle() in /var/www/html/app_dev.php line 33

However if i use the extended version of the config this error does not happen.

AlepH-FR commented 12 years ago

this bundle is pretty outdated, i should rewrite some parts when i'll have more time :x

Bieleke commented 12 years ago

Can you make some time to watch the pull requests ? :-)

AlepH-FR commented 12 years ago

planning to do that tomorrow ; )

mente commented 12 years ago

@Bieleke check issue #10 . I've updated code and email sending works for me. Of course if it's not too late :)

Bieleke commented 12 years ago

Well i used the more advanced config instead which worked, but however thanks to fix this one.

Bieleke commented 12 years ago

Still doesn't work though...

[ErrorException] Notice: Undefined index: contact in /ho me/animalsmc/domains/animals-mc.com/pub lic_html/Symfony/vendor/bundles/IHQS/Co ntactBundle/DependencyInjection/IHQSCon tactExtension.php line 53

So i assume the fix is not yet pulled ?

mente commented 12 years ago

No and I think it won't be pulled. Better find another contact bundle

AlepH-FR commented 12 years ago

just merged latest pull request.

Bieleke commented 12 years ago

Can't we then just fork this bundle and make it 2.1 compatible ? I have no problems with taking care the pulls come on time. Because face it, i also dropped this bundle because it simply doesn't work.

In the first place it looked like it worked, but the emails where never sended. While i created my own contactpage with form the email where sended right away. However, i pretty liked this bundle as it was so easy to install.

AlepH-FR commented 12 years ago

sure, no problem with that ; )