Hi, I have a problem with contact forms - I am including the contact form like this in my templates:
{% include “forms/form.html.twig” %}
I also have 2 form.md files created inside of each page, including form syntax as here: https://learn.getgrav.org/forms/forms
I’ve changed the fields names etc but for some reason only one form is being sent/saved, even if I set the same template for both pages.
I’ve checked the logs and this appears as an error:
[2018-11-29 14:18:35] grav.CRITICAL: Display page not found. Please check the page exists. - Trace: #0 /Applications/MAMP/htdocs/grav/client-site-grav-cms/vendor/symfony/event-dispatcher/EventDispatcher.php(212): Grav\Plugin\FormPlugin->onFormProcessed(Object(RocketTheme\Toolbox\Event\Event), 'onFormProcessed', Object(RocketTheme\Toolbox\Event\EventDispatcher)) #1 /Applications/MAMP/htdocs/grav/client-site-grav-cms/vendor/symfony/event-dispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'onFormProcessed', Object(RocketTheme\Toolbox\Event\Event)) #2 /Applications/MAMP/htdocs/grav/client-site-grav-cms/vendor/rockettheme/toolbox/Event/src/EventDispatcher.php(23): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('onFormProcessed', Object(RocketTheme\Toolbox\Event\Event)) #3 /Applications/MAMP/htdocs/grav/client-site-grav-cms/system/src/Grav/Common/Grav.php(279): RocketTheme\Toolbox\Event\EventDispatcher->dispatch('onFormProcessed', Object(RocketTheme\Toolbox\Event\Event)) #4 /Applications/MAMP/htdocs/grav/client-site-grav-cms/user/plugins/form/classes/Form.php(738): Grav\Common\Grav->fireEvent('onFormProcessed', Object(RocketTheme\Toolbox\Event\Event)) #5 /Applications/MAMP/htdocs/grav/client-site-grav-cms/user/plugins/form/form.php(202): Grav\Plugin\Form\Form->post() #6 /Applications/MAMP/htdocs/grav/client-site-grav-cms/vendor/symfony/event-dispatcher/EventDispatcher.php(212): Grav\Plugin\FormPlugin->onPageInitialized(Object(RocketTheme\Toolbox\Event\Event), 'onPageInitializ...', Object(RocketTheme\Toolbox\Event\EventDispatcher)) #7 /Applications/MAMP/htdocs/grav/client-site-grav-cms/vendor/symfony/event-dispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'onPageInitializ...', Object(RocketTheme\Toolbox\Event\Event)) #8 /Applications/MAMP/htdocs/grav/client-site-grav-cms/vendor/rockettheme/toolbox/Event/src/EventDispatcher.php(23): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('onPageInitializ...', Object(RocketTheme\Toolbox\Event\Event)) #9 /Applications/MAMP/htdocs/grav/client-site-grav-cms/system/src/Grav/Common/Grav.php(279): RocketTheme\Toolbox\Event\EventDispatcher->dispatch('onPageInitializ...', Object(RocketTheme\Toolbox\Event\Event)) #10 /Applications/MAMP/htdocs/grav/client-site-grav-cms/system/src/Grav/Common/Processors/PagesProcessor.php(26): Grav\Common\Grav->fireEvent('onPageInitializ...', Object(RocketTheme\Toolbox\Event\Event)) #11 /Applications/MAMP/htdocs/grav/client-site-grav-cms/system/src/Grav/Common/Grav.php(131): Grav\Common\Processors\PagesProcessor->process() #12 /Applications/MAMP/htdocs/grav/client-site-grav-cms/system/src/Grav/Common/Grav.php(370): Grav\Common\Grav->Grav\Common\{closure}() #13 [internal function]: Grav\Common\Grav::Grav\Common\{closure}('pages', 'Pages', Object(Closure)) #14 /Applications/MAMP/htdocs/grav/client-site-grav-cms/system/src/Grav/Common/Grav.php(346): call_user_func_array(Object(Closure), Array) #15 /Applications/MAMP/htdocs/grav/client-site-grav-cms/system/src/Grav/Common/Grav.php(132): Grav\Common\Grav->__call('measureTime', Array) #16 /Applications/MAMP/htdocs/grav/client-site-grav-cms/index.php(54): Grav\Common\Grav->process() #17 {main} [] []