Forum
Perch Forms - not able to choose "Email Address Field"
In the Forms app, all is working well. In Form settings, under the "Email Address Field" there's a select box with no options. What should go there? There is an email field in the form, which is called "Email" and of type "Email", so I wondered why it was blank? All seems to be working well, but I just wondered what that field is for, and why I can't select anything.
Here's my diagnostic report:
Perch: 2.8.24, PHP: 5.5.31, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.24), assets (2.8.24), categories (2.8.24), perch_events (1.9.2), perch_forms (1.8.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_events', 'perch_forms', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home4/mydomain/public_html/perch
PERCH_CORE: /home4/mydomain/public_html/perch/core
PERCH_RESFILEPATH: /home4/mydomain/public_html/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 128M, Max POST 128M, Memory: 128M, Total max file upload: 128M
F1: dc1fef2ad0fcd9f943c02ebb43d85dbc
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /home4/mydomain/public_html
HTTP_HOST: mydomain.co.uk
Can you post your template? The fields come from it.
Sure
This is in templates/content. Is that right?
That looks fine - is the form otherwise picking up the template ok?
If you turn debug on, what does it output at the bottom of that form options page?
Here's what's showing there:
There have been 100+ form submissions.
What's the full path of your template?
/wwwroot/perch/templates/content/booking_form.html
That could be the issue. Your site is at
and your template is under
Sorry, Drew - I gave you a path from our old hosting. Correct path:
Hi Drew - I've managed to solve this. The problem was that the site had been on Windows hosting, and was moved to Linux hosting. The stored path to the template in the database had backslashes, not forward slashes, so the template file was not being found. Having edited this value in the database, the drop down list is populated and I'm able to select the "email" input field. So quite a niche issue.
(I edited the form.settings.post.php file to output the path to the file it was looking in and that was what lead me to the field in the database, along with your helpful comments). Thanks.
As Perch CMS grows in popularity migrations between server enviorments will possibly increase. I hope Perch CMS will automatically update to server changes infuture. Thanks for fixing Paul and your help Drew.
David - while there may be server migrations, migrations between Windows and Linux are probably quite rare, so I doubt this will be a priority in terms of finite development resources - good that we managed to resolve the issue however. :)
It's actually just a Forms bug - we should be translating the path. Perch generally accounts for the different styles of file system paths.