• Resolved denisecacciato

    (@denisecacciato)


    Hi!
    the credit card payment process does not work
    we get the following error
    String could not be parsed as XML

    from some analysis we noticed the following errors
    [10-Oct-2024 15:49:02 UTC] The wc_get_log_file_path function is deprecated since version 8.6.0.
    [10-Oct-2024 15:49:02 UTC] The WC_Cart::get_checkout_url function is deprecated since version 2.5. Replace with wc_get_checkout_url.

    How can we solve it?
    Thanks in advance
    Regards
    Denise

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Update WooCommerce and WordPress: Ensure both are running the latest versions.

    Check for Plugin Conflicts: Deactivate all plugins except WooCommerce, then reactivate them one by one to identify conflicts.

    Review Custom Code: Update any deprecated functions:

    • Replace wc_get_log_file_path() with an alternative.
    • Change WC_Cart::get_checkout_url() to wc_get_checkout_url().

    Check XML Parsing: Investigate the XML error, ensuring any data sent or received is well-formed, especially with payment gateways.

    Enable Debugging: Add debugging lines to wp-config.php to gather detailed error logs.

    Consult Documentation/Support: Check WooCommerce documentation or contact support for help.

    Test in a Staging Environment: Replicate the issue in a staging environment to test solutions safely.

    Thread Starter denisecacciato

    (@denisecacciato)

    Hi
    How and where do I make these changes?
    Review Custom Code: Update any deprecated functions:

    • Replace?wc_get_log_file_path()?with an alternative.
    • Change?WC_Cart::get_checkout_url()?to?wc_get_checkout_url().

      thank you so much
      Best Regards
      Denise
    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello denisecacciato,

    Thank you for contacting WooCommerce support.

    The errors you are seeing are because a plugin is using deprecated WooCommerce functions.
    It may look like these errors are caused by WooCommerce but they are caused by some other plugin calling deprecated functions.

    Are you using a plugin that has not been update for some time?

    To assist you better, I’d need more information about your setup.
    Could you please send me a copy of your site’s System Status Report?

    You can find this by going to WooCommerce > Status. Select Get system report, then Copy for support, and share it here. This will help in diagnosing the issue more accurately.

    Looking forward to your response. ??

    Plugin Support Feten L. a11n

    (@fetenlakhal)

    Hi! It’s been a while since we last connected, so I’ll consider this resolved. Whenever you’re ready to continue, we’ll be here to help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.