Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submitting an empty form php notice #509

Open
afatoga opened this issue Nov 21, 2019 · 2 comments
Open

Submitting an empty form php notice #509

afatoga opened this issue Nov 21, 2019 · 2 comments
Labels

Comments

@afatoga
Copy link

afatoga commented Nov 21, 2019

Issue Overview

Recently I encountered a php notice after submitting an empty form within my production version of an app. Though when I tried to reproduce the same behavior at my localhost - everything ran fine.

Other functions within the production version are correct.

Notice: Array to string conversion in /data/web/virtuals/224154/virtual/www/wp-content/plugins/torro-forms/vendor/felixarntz/plugin-lib/src/db-objects/model.php on line 546

Steps to Reproduce (for bugs)

  1. Create a form
  2. Open a link with a form
  3. Submit an empty form

PHP 7.3
MariaDB 10.4.6

Expected Behavior

It should show warnings about empty fields.

Current Behavior

Form is not submitted. User has to reload a page with F5.

@afatoga
Copy link
Author

afatoga commented Nov 27, 2019

I managed to "solve" the problem by disabling wp_debug in wp-config.php. Then the notice was skipped and correct response appeared. Though it's kind of faking...

@mahype
Copy link
Contributor

mahype commented Nov 27, 2019

Hi! Thanks for the hint. I'm a but busy at the moment. I will fix that in the next version.

@mahype mahype added the bug label Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants