Forum

Thread tagged as: Problem

Perch form not submitting after upgrade

Hi there- I just upgraded to Perch 3 from 2. I'm wondering if anyone might have a suggestion as to why the forms app is acting a little odd. It seems that the first time I enter a form in the day, it does not get recorded. Nothing is recorded in the admin backend and an email is not sent. Any submissions after the first do get recorded.

I do have it running a secondary function where it submits to a 3rd party API (Insightly), and maybe that's where it's getting hung up? Any suggestions on how to troubleshoot?

Summary information

Perch: 3.0.10, PHP: 5.6.17-pl0-gentoo, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.0.10), assets (3.0.10), categories (3.0.10), perch_forms (1.9.1), perch_gallery (2.8.9), perch_backup (1.2), perch_mailchimp (3.1)
App runtimes: <?php $apps_list = [ 'content', 'categories', 'perch_forms', 'perch_gallery', 'shafer_insightly', ];
PERCH_LOGINPATH: /perch
PERCH_PATH: /data/51/4/44/37/4696363/user/5566977/htdocs/perch
PERCH_CORE: /data/51/4/44/37/4696363/user/5566977/htdocs/perch/core
PERCH_RESFILEPATH: /data/51/4/44/37/4696363/user/5566977/htdocs/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 100M, Max POST 100M, Memory: 32M, Total max file upload: 32M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /data/51/4/44/37/4696363/user/5566977/htdocs
HTTP_HOST: www.i-83beltway.com
Amanda Shafer

Amanda Shafer 0 points

  • 3 years ago
Duncan Revell

Duncan Revell 78 points
Registered Developer

This is only top-of-the-head stuff, but you're probably going to have to set up a test copy of the form and only have it submitting to the forms app - if that doesn't show the same problem you're having now, it's definitely your secondary app that's causing the issue.

With the current form, what order are the apps listed in the perch:form tag? Does the 3rd party API require a login - could it be that that causes the hold-up on the first submit of the day? (Login session has timed out or something...)

<?php $apps_list = [ 'content', 'categories', 'perch_forms', 'perch_gallery', 'shafer_insightly', ]; Then on the form: app="perch_forms shafer_insightly"

Perch forms is listed first. Shafer_insightly is the integration into Insightly where the form data goes. So I would think even if the Insightly integration is timing out, it should still have submitted to perch forms, yeah?

As far as I know, this wasn't an issue until after the upgrade to Perch 3. But then again, I suppose it's possible it's been happening and I just haven't had reason to notice it. There's definitely some sort of time out happening.

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you turn on debug before submitting the form you might get more information about what's happening.

Thanks Drew. I did that and couldn't get the error to repeat. Everything seems to be working fine. I'll try again tomorrow and see if I can get it to repeat.