BuddyForms / BuddyForms-WooCommerce-Form-Elements

This Plugin adds a new section to the BuddyForms Form Builder with all WooCommerce fields to create Product creation forms for the frontend
GNU General Public License v2.0
3 stars 3 forks source link

Internal Server Error (Error 500) submitting a product. #42

Closed njota08 closed 5 years ago

njota08 commented 5 years ago

Steps to reproduce

  1. Click on BuddyForms
  2. Click on Add New or select a product post type previously created.
  3. Select a product type template in the Form Builder section
  4. Customize the settings of the form.
  5. Preview the form.
  6. Fill the required fields and click on Submit button.

Expected Result: The product must be published.

Actual Result: Error 500 - Internal Server Error. And no message appears on the screen.

image

marin250189 commented 5 years ago

@njota08 Hello i could not reproduce the issue, bellow the steps i did and you tell me if i miss any step. 1-went to the BuddyForm Option 2- Clicked on Create New 3-edited the form 4-clicked preview form 5- clicked the submit button above the image sequence of the steps screenshot_2 screenshot_3 screenshot_4 screenshot_5

njota08 commented 5 years ago

Hello @marin250189, actually your steps are correct.

The issue is still reproducible for me, but I think that probably is because I'm testing in a different environment(?). I mean, I'm testing in the QA site. I don't know if there are any differences but maybe that's the reason.

Here's where I'm testing: http://wordpress-68612-572859.cloudwaysapps.com/wp-admin/

gfirem commented 5 years ago

@marin250189 this is the error 500 in the server

[16-Mar-2019 03:23:05 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function WC_Meta_Box_Product_Data::save(), 1 passed in /public_html/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php:324
Stack trace:
#0 /public_html/wp-includes/class-wp-hook.php(286): WC_Meta_Box_Product_Data::save(592)
#1 /public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#2 /public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#3 /wp-content/plugins/BuddyForms-WooCommerce-Form-Elements/includes/bf_woo_elem_form_elements_save.php(50): do_action('woocommerce_pro...', 592)
#4 /public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php on line 324
marin250189 commented 5 years ago

this issue was solved

njota08 commented 5 years ago

Fixed, tested and closed.