• bluewinds

    (@bluewinds)


    There is an error and I will explain later how to trigger it and a temp fix I am using. I hope you will be able to fix this.

    Error log: https://pastebin.com/S4fQb5tD

    How to make this error happen:

    WP Admin > OceanWP > My Library > Add New
    Add “HTML” block and insert this shortcode inside: [oceanwp_woo_cart total=”true”]
    This should trigger the error upon saving the template.

    Note that I am using an HTML block to insert a shortcode because I have more HTML elements around it, so a solution is not “switch to shortcode block” (although, I do not know if that will even work)

    If not, try to apply that template in the theme:
    Customizer > Header > General > Style: Medium
    Customizer > Header > Social Menu > Enable > Select Template: choose the template that contains [oceanwp_woo_cart total=”true”]

    Now, go back to Library, open the template and hit “Update”. The error will appear.

    Temp fix:
    Edit this file
    /wp-content/plugins/ocean-extra/includes/shortcodes/shortcodes.php
    Remove (or comment) lines 454 and 457
    Save the template, then restore lines 454 and 457

Viewing 1 replies (of 1 total)
  • Shahin

    (@skalanter)

    Hello @bluewinds,

    Thanks for your feedback.

    This topic has been forwarded to the developer team, and we’ll get back to you with the information once it is available.

    Thank you for using OceanWP, and I appreciate your patience.
    Best Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Error: Call to a member function get_total()’ is closed to new replies.