• Resolved mazorervin

    (@mazorervin)


    Hi, I have a very simple WP website, with WooCommerce and elementor.

    I’ve installed the plugin and when tried to add the first product I’ve saw the following error in the product section.

    Please advice

    :  Uncaught TypeError: Return value of WCDP_Product_Settings::wcdp_add_product_type_option() must be an instance of mixed, array returned in /home/izunorg/dev.izun.org.il/wp-content/plugins/wc-donation-platform/includes/class-wcdp-product-settings.php:182

    Stack trace:

    #0 /home/izunorg/dev.izun.org.il/wp-includes/class-wp-hook.php(308): WCDP_Product_Settings->wcdp_add_product_type_option(Array)

    #1 /home/izunorg/dev.izun.org.il/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)

    #2 /home/izunorg/dev.izun.org.il/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(72): apply_filters(‘product_type_op…’, Array)

    #3 /home/izunorg/dev.izun.org.il/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php(28): WC_Meta_Box_Product_Data::get_product_type_options()

    #4 /home/izunorg/dev.izun.org.il/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(33): include(‘/home/izunorg/d…’)

    #5 /home/izunorg in

    • This topic was modified 2 years, 2 months ago by mazorervin.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jonas

    (@flinnn)

    Hi mattstanford,

    please excuse the problem. I have already fixed the bug, it will be rolled out with the next update of Donation Platform for WooCommerce. In the meantime, I recommend that you either manually update the plugin via the latest version on GitHub or update your php version. (I suspect the problem occurs because your server is using an outdated and unmaintained version of php, so for security reasons alone, upgrading would be advisable).

    Best regards
    Jonas

    Thread Starter mazorervin

    (@mazorervin)

    WOW You Rule!

    Its working ??

    With your permission another question, what should be the names of PO + MO files for the translation?

    Thank you in advance

    Plugin Author Jonas

    (@flinnn)

    Thanks for your reply. I’m not quite sure what you mean by your question. If you want to translate the plugin, I recommend Loco Translate (free), then you don’t have to worry about naming and loading POT files correctly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Strange error’ is closed to new replies.