• Resolved paulag01

    (@paulag01)


    Installed this plugin and now the basic WooCommerce ordering is not working. PHP Error Log is showing:

    text/x-generic error_log ( ASCII C++ program text )
    [16-Oct-2020 16:36:48 UTC] PHP Fatal error: Cannot declare class Flexible_Shipping_UPS_Shipping_Method, because the name is already in use in /home4/dlppvpmy/public_html/wp-content/plugins/flexible-shipping-ups/src/Legacy/class-flexible-shipping-ups-shipping-method.php on line 12

    This happens once credit card is entered and Process Payment Button is pressed.

    This results in the order screen not processing to the thank you for your order page. Page stays in cart page with cc# showing and then results in multiple orders as customers do not think it is working (so they hit it again and again).

    If I deactivate this plugin, everything works ok. – order processed, no PHP errors, thank you page works fine.

    If I run it with plugin activated to get the above P{HP Fatal error, Google Developer Tools tells me this:
    POST https://www.etyum.com/?wc-ajax=checkout 500
    send @ jquery.js?ver=1.12.4-wp:4
    ajax @ jquery.js?ver=1.12.4-wp:4
    submit @ checkout.min.js?ver=4.6.0:1
    dispatch @ jquery.js?ver=1.12.4-wp:3
    r.handle @ jquery.js?ver=1.12.4-wp:3
    trigger @ jquery.js?ver=1.12.4-wp:3
    (anonymous) @ jquery.js?ver=1.12.4-wp:3
    each @ jquery.js?ver=1.12.4-wp:2
    each @ jquery.js?ver=1.12.4-wp:2
    trigger @ jquery.js?ver=1.12.4-wp:3
    n.fn.<computed> @ jquery.js?ver=1.12.4-wp:4
    sourceResponse @ stripe.min.js?ver=4.5.3:1
    Promise.then (async)
    createSource @ stripe.min.js?ver=4.5.3:1
    onSubmit @ stripe.min.js?ver=4.5.3:1
    dispatch @ jquery.js?ver=1.12.4-wp:3
    r.handle @ jquery.js?ver=1.12.4-wp:3
    trigger @ jquery.js?ver=1.12.4-wp:3
    triggerHandler @ jquery.js?ver=1.12.4-wp:3
    submit @ checkout.min.js?ver=4.6.0:1
    dispatch @ jquery.js?ver=1.12.4-wp:3
    r.handle @ jquery.js?ver=1.12.4-wp:3

    It seems pretty clear this plugin is not playing nicely with WooCommerce. Have the latest version of WordPress and plugins installed.

    How can I resolve this? Or do I need to find a different UPS Plugin? Running Php 7.3 on Bluehost for this site.

    Thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author grola

    (@grola)

    Thank you for reporting.

    The woocommerce_init action seems to be triggered multiple times.
    It should normally only be triggered once.

    We will add support for such a situation.

    Thread Starter paulag01

    (@paulag01)

    Do you have an ETA for solution? Just so I can advise client. Thank you.

    Plugin Author grola

    (@grola)

    I think a patch will come out on Monday.

    However, I recommend checking why the woocommerce_init action is called more than 1 time. This can cause other problems.

    Thank you.

    Thread Starter paulag01

    (@paulag01)

    Thank you.

    I’m not sure where I would start to figure out why that is called multiple times. Any idea (KB article, etc) of where to start to see why? Perhaps it is the multiple Woocommerce plugins they have running.

    Plugin Author grola

    (@grola)

    You can serach for ‘woocommerce_init’ text in plugins and themes source files. Maybe other plugins triggers this action.

    Plugin Support Marta Borówka

    (@martapaw)

    Hello @paulag01,

    Please note that the latest version of our plugin should support your problem.

    Best regards,
    Marta

    Thread Starter paulag01

    (@paulag01)

    Thank you – The new release for the plugin solved the errors. The init action you reference also resolved itself (perhaps an update from another related plugin).

    Plugin Support lusp

    (@lusp)

    Thank you @paulag01 for letting us know. We’re glad to hear everything works fine now. Since there are no further inquiries concerning this case I’m marking this thread as resolved.

    Kind regards,
    ?ukasz

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP Fatal Error – Plugin Breaks Ordering Process’ is closed to new replies.