• Dear all,

    There is an error that sometimes cause my site an 502 gateway error (or maybe is 502 gateway is not related to this plugin).

    Please check error details below:

    Current plugin: WooCommerce Multilingual & Multicurrency (version 5.1.2)
    PHP version 8.0.28
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 111 of the file /home4/XXXX/XXXX/wp-content/plugins/woocommerce-multilingual/inc/template-classes/multi-currency/class-wcml-custom-prices-ui.php. Error message: Uncaught TypeError: Unsupported operand types: string * float in /home4/XXXX/domain.com/wp-content/plugins/woocommerce-multilingual/inc/template-classes/multi-currency/class-wcml-custom-prices-ui.php:111
    Stack trace:
    #0 /home4/XXXX/domain.com/wp-content/plugins/woocommerce-multilingual/inc/template-classes/multi-currency/class-wcml-custom-prices-ui.php(48): WCML_Custom_Prices_UI->get_currencies_info()
    #1 /home4/XXXX/domain.com/wp-content/plugins/woocommerce-multilingual/inc/template-classes/class-wcml-templates-factory.php(27): WCML_Custom_Prices_UI->get_model()
    #2 /home4/XXXX/domain.com/wp-content/plugins/sitepress-multilingual-cms/classes/templating/class-wpml-templates-factory.php(59): WCML_Templates_Factory->get_view(NULL, NULL)
    #3 /home4/XXXX/domain.com/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-custom-prices.php(280): WPML_Templates_Factory->show()
    #4 /home4/XXXX/domain.com/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-custom-prices.php(249): WCML_Custom_Prices->custom_pricing_output('5042')
    #5 /home4/XXXX/domain.com/wp-includes/class-wp-hook.php(308): WCML_Custom_Prices->woocommerce_product_options_custom_pricing('')
    #6 /home4/XXXX/domain.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #7 /home4/XXXX/domain.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #8 /home4/XXXX/domain.com/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-general.php(73): do_action('woocommerce_pro...')
    #9 /home4/XXXX/domain.com/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(42): include('/home4/XXXX...')
    #10 /home4/XXXX/domain.com/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php(52): WC_Meta_Box_Product_Data::output_tabs()
    #11 /home4/XXXX/domain.com/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(33): include('/home4/XXXX...')
    #12 /home4/XXXX/domain.com/wp-admin/includes/template.php(1445): WC_Meta_Box_Product_Data::output(Object(WP_Post), Array)
    #13 /home4/XXXX/domain.com/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post))
    #14 /home4/XXXX/domain.com/wp-admin/post.php(206): require('/home4/XXXX...')
    #15 {main}
    ??thrown

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Hello @extrano,

    Thank you for reporting this issue. However, I’m unable to reproduce it on a test site. Is there any setting missing?

    Also, could you please verify if this is related to your PHP version? For this, downgrade your PHP version to 7+ in your staging site.
    We haven’t have similar reports, but it would help us to lead our research.

    We’ll continue investigating from our side. If we have any news, we will update here.

    Regards,
    Andrés

    Thread Starter extrano

    (@extrano)

    Hello Andrés,

    Thank you for your reply.

    I will downgrade to PHP 7.4 (deprecated and unsupported anymore) and will see if the error occurs again.

    Honestly, I hope your team will work on this plugin to fix some potential bugs because, next week there will be a new version of WooCommerce (7.6.0) were compatibility needs to be checked and approved.

    Thanks,
    Extrano

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Thank you very much for your feedback Extrano. So far, I’m not entire sure if it is PHP related, but it worth to give it a try.
    Keep in mind that it also can occurs because a third party interaction as we are not able to obtain the same error. Did you check the test website provided and our setup?

    Regarding the new WooCommerce version coming, we evaluate monthly their changelogs and run a candidate release through our automated tests. We also run some manual tests when needed.

    Thanks again,
    Andrés

    Thread Starter extrano

    (@extrano)

    Hey Andrés,

    Yes, checked the test site.. Everything is OK.

    Unfortunately, I can’t find where the problem is. I am using Hostgator hositing, which is quite good in features.

    I will contact the hosting support to check whether the problem it’s from their side.

    Thanks,
    Extrano

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Don’t hesitate to share any information you find that let us move forward.
    By the way, do you use WPML in your website? If so, it will be better to open a chat in WPML support, we have better tools to help there.

    Regards,
    Andrés

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘An error of type E_ERROR’ is closed to new replies.