I am receiving the messages on the forms listing page and the test email under settings comes through.
Debug Output
Code
- Debug Message - Perch 3.1.4
- [21] SELECT DISTINCT settingID, settingValue FROM perch3_settings WHERE userID=0
- [1] SELECT * FROM perch3_forms WHERE formKey='contact' LIMIT 1
- [1] SELECT * FROM perch3_pages WHERE pagePath='/contact-hotel-resources.php' LIMIT 1
- Array
- (
- [fields] => Array
- (
- )
- [files] => Array
- (
- )
- [page] => Array
- (
- [id] => 3
- [title] => Hotel Resources | Contact
- [path] => /contact-hotel-resources.php
- [navtext] => Contact
- )
- )
- INSERT INTO perch3_forms_responses(responseJSON,formID,responseIP,responseSpamData) VALUES('{\"fields\":{\"fname\":{\"attributes\":{\"type\":\"text\",\"id\":\"fname\",\"required\":true,\"label\":\"First Name\",\"class\":\"u-full-width\"},\"value\":\"Brittany\"},\"lname\":{\"attributes\":{\"type\":\"text\",\"id\":\"lname\",\"required\":true,\"label\":\"Last Name\",\"class\":\"u-full-width\"},\"value\":\"Lewis\"},\"email\":{\"attributes\":{\"type\":\"email\",\"id\":\"email\",\"required\":true,\"label\":\"Email\",\"class\":\"u-full-width\"},\"value\":\"brittany@allthingshospitality.com\"},\"number\":{\"attributes\":{\"type\":\"text\",\"id\":\"number\",\"label\":\"Phone Number\",\"class\":\"u-full-width\"},\"value\":\"6822403298\"},\"services\":{\"attributes\":{\"type\":\"select\",\"placeholder\":\" \",\"options\":\"Revenue Enhancement (Taskforce Sales), Qualified Lead Development, Sales Prospecting Training Workshops or Webinars, Managed Sales Prospecting Competitions, Database Cleansing and Qualifying, Sales Blitzes, Speaking - Lisa Barham - Sales Prospecting,Other\",\"id\":\"services\",\"class\":\"u-full-width\"},\"value\":\"Other\"},\"message\":{\"attributes\":{\"type\":\"textarea\",\"id\":\"message\",\"required\":true,\"label\":\"Message\",\"size\":\"xl\",\"\":true,\"minlength\":\"10\",\"class\":\"u-full-width\"},\"value\":\"Testing 123 D\"}},\"files\":[],\"page\":{\"id\":\"3\",\"title\":\"Hotel Resources | Contact\",\"path\":\"\\/contact-hotel-resources.php\",\"navtext\":\"Contact\"}}','1','97.94.192.188','{\"fields\":[],\"environment\":{\"USER\":\"hotelresources\",\"HOME\":\"\\/var\\/www\\/vhosts\\/hotelresources.com\",\"SCRIPT_NAME\":\"\\/contact-hotel-resources.php\",\"REQUEST_URI\":\"\\/contact-hotel-resources\",\"QUERY_STRING\":\"\",\"REQUEST_METHOD\":\"POST\",\"SERVER_PROTOCOL\":\"HTTP\\/1.0\",\"GATEWAY_INTERFACE\":\"CGI\\/1.1\",\"REDIRECT_URL\":\"\\/contact-hotel-resources\",\"REMOTE_PORT\":\"34472\",\"SCRIPT_FILENAME\":\"\\/var\\/www\\/vhosts\\/hotelresources.com\\/hotelresources.com\\/public\\/contact-hotel-resources.php\",\"SERVER_ADMIN\":\"[no address given]\",\"CONTEXT_DOCUMENT_ROOT\":\"\\/var\\/www\\/vhosts\\/hotelresources.com\\/hotelresources.com\\/public\",\"CONTEXT_PREFIX\":\"\",\"REQUEST_SCHEME\":\"https\",\"DOCUMENT_ROOT\":\"\\/var\\/www\\/vhosts\\/hotelresources.com\\/hotelresources.com\\/public\",\"REMOTE_ADDR\":\"97.94.192.188\",\"SERVER_PORT\":\"443\",\"SERVER_ADDR\":\"10.46.0.5\",\"SERVER_NAME\":\"hotelresources.com\",\"SERVER_SOFTWARE\":\"Apache\",\"SERVER_SIGNATURE\":\"\",\"PATH\":\"\\/usr\\/local\\/sbin:\\/usr\\/local\\/bin:\\/usr\\/sbin:\\/usr\\/bin:\\/sbin:\\/bin\",\"HTTP_COOKIE\":\"__utmc=173357882; __utmz=173357882.1549259270.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); cmsa=1; PHPSESSID=c74tuv6vbs1pv1b8a1gv0ouq8p; __utma=173357882.953673476.1549259270.1549290215.1549292897.3; __utmb=173357882.0.10.1549292897\",\"HTTP_ACCEPT_LANGUAGE\":\"en-US,en;q=0.9\",\"HTTP_ACCEPT_ENCODING\":\"gzip, deflate, br\",\"HTTP_REFERER\":\"https:\\/\\/hotelresources.com\\/contact-hotel-resources\",\"HTTP_ACCEPT\":\"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\"HTTP_USER_AGENT\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/71.0.3578.98 Safari\\/537.36\",\"CONTENT_TYPE\":\"application\\/x-www-form-urlencoded\",\"HTTP_UPGRADE_INSECURE_REQUESTS\":\"1\",\"HTTP_ORIGIN\":\"https:\\/\\/hotelresources.com\",\"HTTP_CACHE_CONTROL\":\"max-age=0\",\"CONTENT_LENGTH\":\"231\",\"HTTP_CONNECTION\":\"close\",\"HTTP_X_ACCEL_INTERNAL\":\"\\/internal-nginx-static-location\",\"HTTP_X_REAL_IP\":\"97.94.192.188\",\"HTTP_HOST\":\"hotelresources.com\",\"proxy-nokeepalive\":\"1\",\"HTTPS\":\"on\",\"UNIQUE_ID\":\"XFhemgZWf0ydbsNyad6TeAAAAFY\",\"REDIRECT_STATUS\":\"200\",\"REDIRECT_HTTPS\":\"on\",\"REDIRECT_UNIQUE_ID\":\"XFhemgZWf0ydbsNyad6TeAAAAFY\",\"FCGI_ROLE\":\"RESPONDER\",\"PHP_SELF\":\"\\/contact-hotel-resources.php\",\"REQUEST_TIME_FLOAT\":1549295258.443099,\"REQUEST_TIME\":1549295258}}')
- [1] SELECT * FROM perch3_forms_responses WHERE responseID='10' LIMIT 1
- No ids to log.
- Using template: /templates/pages/attributes/default.html
- Using sub-template: /templates/pages/attributes/seo.html
- Using template: /templates/pages/attributes/default.html
- Using sub-template: /templates/pages/attributes/seo.html
- [7] SELECT regionKey, regionHTML FROM perch3_content_regions WHERE regionPage='/contact-hotel-resources.php' OR regionPage='*' ORDER BY regionPage DESC
- [5] SELECT * FROM perch3_pages WHERE pageNew=0 AND pageHidden=0 ORDER BY pageTreePosition ASC
- [1] SELECT pageTreePosition FROM perch3_pages WHERE pagePath='/contact-hotel-resources.php' LIMIT 1
- [1] SELECT pageID FROM perch3_pages WHERE pageTreePosition IN ('000-005', '000') ORDER BY pageTreePosition DESC
- [5] Using template: /templates/navigation/item.html
- [5] SELECT * FROM perch3_pages WHERE pageNew=0 AND pageHidden=0 ORDER BY pageTreePosition ASC
- [1] SELECT pageTreePosition FROM perch3_pages WHERE pagePath='/contact-hotel-resources.php' LIMIT 1
- [1] SELECT pageID FROM perch3_pages WHERE pageTreePosition IN ('000-005', '000') ORDER BY pageTreePosition DESC
- [5] Using template: /templates/navigation/footnav.html
- Array
- (
- [type] => 2
- [message] => Use of undefined constant perch_forms - assumed 'perch_forms' (this will throw an Error in a future version of PHP)
- [file] => /var/www/vhosts/hotelresources.com/hotelresources.com/public/login/config/apps.php
- [line] => 2
- )
Here is the template code
Code
- <perch:form id="contact" method="post" app="perch_forms" role="form" action="#success">
- <div class="row">
- <div class="six columns">
- <perch:label for="fname">First Name</perch:label>
- <perch:input type="text" id="fname" required label="First Name" class="u-full-width">
- </div>
- <div class="six columns">
- <perch:label for="lname">Last Name</perch:label>
- <perch:input type="text" id="lname" required label="Last Name" class="u-full-width">
- </div>
- </div>
- <div class="row">
- <div class="six columns">
- <perch:label for="email">Email</perch:label>
- <perch:input type="email" id="email" required label="Email" class="u-full-width">
- </div>
- <div class="six columns">
- <perch:label for="number">Phone Number</perch:label>
- <perch:input type="text" id="number" label="Phone Number" class="u-full-width">
- </div>
- </div>
- <div class="row">
- <div class="twelve columns">
- <perch:label for="subject">Subject</perch:label>
- <perch:input type="select" placeholder=" " options="Revenue Enhancement (Taskforce Sales), Qualified Lead Development, Sales Prospecting Training Workshops or Webinars, Managed Sales Prospecting Competitions, Database Cleansing and Qualifying, Sales Blitzes, Speaking - Lisa Barham - Sales Prospecting,Other" id="services" class="u-full-width">
- </div>
- </div>
- <div class="row">
- <div class="twelve columns">
- <perch:label for="message">Message</perch:label>
- <perch:input type="textarea" id="message" required label="Message" size="xl" minlength="10" class="u-full-width">
- </div>
- </div>
- <div class="row">
- <div class="twelve columns">
- <perch:input type="submit" id="submit" value="Send" class="button button-primary u-full-width">
- </div>
- </div>
- <div id="success"></div>
- <perch:success>
- <perch:content id="success" type="textarea" label="Thank you message" textile editor="redactor" html="true">
- </perch:success>
- </perch:form>
Diagnotics
PHP
- Perch: 3.1.4, PHP: 7.3.1, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 401a40ebd5e281cf22215acdc170723a1519aaa9 $, with PDO
- Server OS: Linux, fpm-fcgi
- Installed apps: content (3.1.4), assets (3.1.4), categories (3.1.4), perch_forms (1.12)
- App runtimes: <?php $apps_list = [ perch_forms, ];
- PERCH_LOGINPATH: /login
- PERCH_PATH: /var/www/vhosts/hotelresources.com/hotelresources.com/public/login
- PERCH_CORE: /var/www/vhosts/hotelresources.com/hotelresources.com/public/login/core
- PERCH_RESFILEPATH: /var/www/vhosts/hotelresources.com/hotelresources.com/public/login/resources
- Image manipulation: GD Imagick
- PHP limits: Max upload 2M, Max POST 8M, Memory: 128M, Total max file upload: 2M
- F1: 3b606135b33e6a102526838f4152a807
- Resource folder writeable: Yes
- SCRIPT_NAME: /login/core/settings/diagnostics/index.php
- REQUEST_URI: /login/core/settings/diagnostics/
- DOCUMENT_ROOT: /var/www/vhosts/hotelresources.com/hotelresources.com/public
- HTTP_HOST: hotelresources.com