Toolset WooCommerce Views last version.
When a product is added to the cart from the product page, the entire page is distorted because there is an empty space between the header and the title after adding the product to the cart.
hidden link
Look at the screenshots.
Thanks for your help.
Best regards,
Francisco R.
Dear Francisco,
Please check the HTML source codes of the problem page:
view-source:hidden link
There are some error message output above all other HTML contents, I suggest you fix it first, see the test result after remove those error message in my Chrome browser:
CSS.JPG
Errors?
What errors do you mean?
If there are errors in the html they are produced by Toolset or DIVI. I do not do anything special on this page.
This error occurs after you add a product into the cart, please do as you mentioned above:
When a product is added to the cart from the product page
Then check the HTML source code again
<br />
<b>Notice</b>: wpdb::prepare was called incorrectly. The query only expected one placeholder, but an array of multiple placeholders was sent. Please see Debugging in WordPress for more information. (This message was added in version 4.9.0.) in <b>/var/www/vhosts/sendasoft.com/httpdocs/es/wp-includes/functions.php</b> on line <b>4139</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/var/www/vhosts/sendasoft.com/httpdocs/es/wp-content/plugins/unicorn-assistant/unicorn-assistant.php</b> on line <b>115</b><br />
See screenshot error2.JPG
Although I disable the Unicorn Assistant plugin, the page is rendered incorrectly when I add a product to the cart.
I have not done the DIVI code, nor of Toolset.
These errors are from DIVI or Toolset and you will have to fix them yourself.
Dont you think?
If I disable the Unicorn Assistant plugin the error is:
<br />
<b>Notice</b>: wpdb::prepare was called incorrectly. The query only expected one placeholder, but an array of multiple placeholders was sent. Please see Debugging in WordPress for more information. (This message was added in version 4.9.0.) in <b>/var/www/vhosts/sendasoft.com/httpdocs/es/wp-includes/functions.php</b> on line <b>4139</b><br />
<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" lang="es-ES">
<![endif]-->
<!--[if IE 7]>
You can simply locate the problem plugin/theme by this:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem is fixed, then activate the plugin/theme one by one, to locate the problem plugin/theme
I have disabled all the plugins, except Toolset Types, Views, WooCommerce Views and WooCommerce, and I have connected the Twenty Fifteen theme, and the error keeps showing:
---------------------------
<br />
<b>Notice</b>: wpdb::prepare was called incorrectly. The query only expected one placeholder, but an array of multiple placeholders was sent. Please see Debugging in WordPress for more information. (This message was added in version 4.9.0.) in <b>/var/www/vhosts/sendasoft.com/httpdocs/es/wp-includes/functions.php</b> on line <b>4139</b><br />
<!DOCTYPE html>
<html lang="es-ES" class="no-js">
<head>
---------------------------
So the problem is with Toolset.
Please, solve this problem.
Please provide a database dump file (ZIP file) of your website in below private detail box, I need to test and debug it in my localhost, thanks
Since your did not provide the database dump file, so I tested it in your website directly, with below steps:
1) Deactivate all plugins except Toolset plugins + Woocommerce plugin
see screenshot plugins.JPG
hidden link
2) Switch to wordpress default theme 2017, see screenshot: theme.JPG
hidden link
3) tried it again with the steps you mentioned above:
When a product is added to the cart from the product page
There isnt't the PHP error or warning message, see screenshot add-product.JPG
So the PHP error message should be outputted from other plugins/theme, you will need to locate the problem plugin/theme as I mentioned above:
https://toolset.com/forums/topic/problem-when-adding-product-to-cart-from-the-products-page-divi/#post-585175
1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem is fixed, then activate the plugin/theme one by one, and locate the problem plugin/theme
I will study it carefully and I will tell you something.
Thanks for your help Luo.
I have researched more and the problem is with the WPBruiser plugin.
Thanks for your help.