• Resolved aandrianina

    (@aandrianina)


    Hi,
    I get the error below when I create new order.
    Warning: mysqli_real_escape_string() expects parameter 2 to be string, object given in C:\wamp64\www\wp-includes\wp-db.php on line 1172
    I used this shortcode [customer-order] for having the form to create new order.
    I also have a problem when I create the page with the shortcode, I received an error when I click on “publish” button to publish the page. Despite of this, the page is created and when I fill all fields and click on “send order” button, I have the error of “mysqli_real_escapre………”
    Thanks in advance for your help.
    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi aandrianina,

    Could you please enable the debug mode and error logging and see if a more detailed error is logged in the error logs? Please share the complete error message with us so that we can investigate and see what might be wrong.

    You could enable/disable the debug mode by setting the option “WP_DEBUG” to true/false from the “wp-config.php” file on your server, more information could be found here https://codex.wordpress.org/WP_DEBUG

    Also, could you share a link to the tracking page and the order page? Also, share a test order number so that we can check and suggest you the required solutions.

    Thread Starter aandrianina

    (@aandrianina)

    Hi,
    Thanks for your answer.
    My website is in local for now, it will be difficult to share it with you 🙁 and my demo period was expired 🙁
    To reproduce the problem I have to be logged in to my site (the problem didn’t occur when I am not logged in) and just create an order. I have a problem since the 1st order I created.
    I hope it may help you
    Regards

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    That warning doesn’t reference one of our plugin files, so it would be difficult to diagnose. That being said, our plugin doesn’t use mysqli_real_escape_string(). Maybe one of your included pages has a template that uses mysqli_real_escape_string(). If you test this by temporarily switching themes, does it give the same warning when creating an order?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘mysqli_real_escape_string() error on’ is closed to new replies.