Bixie / pagekit-formmaker

Formmaker extension for Pagekit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[object Object] error during form submission

barkahwibowo opened this issue · comments

Hi,
I'm using bixie form to receive payment confirmation from my clients
after updating to pagekit 1.0.9, clients started reporting that they couldn't submit the form and it showing
[object Object] error on top the form after clicking "Submit" button

here is the log after enabling debug toolbar
[Bixie][Bixie/framework exception]: Undefined module: bixie/framework ERROR


Technical data :
Pagekit version : 1.0.9
PHP version : 5.6.28
Web server : Apache/2.4.23 (Red Hat)

See issue #60

Hi @benedictdudel ,
in issue #60, the 'OP' (jpl42) wrote "If user clicks submit without completing recaptcha"
but in my case, user already completing captcha, submission sent, but instead showing "After Submission Page (or redirect) it's showing the [object Object] error

It is the same problem you are facing, so I posted the issue as a reference. You see the error because the frontend expected a string which contains the error message but got an object.

The error handling in #60 has been fixed. But would indeed not fix your error.
Please install the latest version of the Formmaker extension, remove the old Bixie Framework (package bixie/framework) and install the new framework from the Marketplace (package bixie/pk-framework).
Apologies for the inconvenience.

Loading composer repositories with package information
The "https://pagekit.com/packages.json" file could not be downloaded: allow_url_fopen must be enabled in php.ini (https:// wrapper is disabled in the server configuration by allow_url_fopen=0
failed to open stream: no suitable wrapper could be found)
https://pagekit.com could not be fully loaded, package information was loaded from the local cache and may be out of date
Updating dependencies

  • Installing google/recaptcha (1.1.2)
    Downloading
    Failed to download google/recaptcha from dist: The "https://api.github.com/repos/google/recaptcha/zipball/2b7e00566afca82a38a1d3adb8e42c118006296e" file could not be downloaded: allow_url_fopen must be enabled in php.ini (https:// wrapper is disabled in the server configuration by allow_url_fopen=0
    failed to open stream: no suitable wrapper could be found)
    Now trying to download from source
  • Installing google/recaptcha (1.1.2)
    Cloning 2b7e00566afca82a38a1d3adb8e42c118006296e
    Warning: escapeshellarg() has been disabled for security reasons

You need to enable allow_url_fopen.