Pro 3.1 and The Grid 2.7.3 giving warning in front- & backend

Hi,

we’ve updated X to Pro 3.1 and getting

Warning: get_class() expects parameter 1 to be object, string given in /var/www/vhosts/trendraider.de/test.trendraider.de/wp-content/themes/pro/framework/functions/plugins/the-grid.php on line 45

on both the front- and the backend.

When disabling The Grid-plugin the error is gone. When using the normal X-theme the error is gone, too. So it seems to be a problem between The Grid and Pro (in the newest versions?)
The Grid is working despite the warning.
We need the Grid and we wan’t to upgrade to Pro. So please can you help us fixing the error? Thanks!

Edit: Disabling all plugins except for The Grid and the error is gone. Disabling all plugins except for The Grid and WooCommerce 3.8.0 and the error is back. So it seems to be a problem between WooCommerce, Pro and The Grid in their newest versions. Strange… we need them all three.

Same here, but with latest versions of X, Cornerstone, The Grid, and Woocommerce. We need all of them, too!

I also had upgraded to Wordpress 5.3, which changes a few things in preparation for PHP 7.4 compatibility. Could that be one of the issues?

1 Like

We’ve got the error without and with upgrading to WordPress 5.3 so it’s not WP 5.3 related. We also got the error with an older version of WooCommerce installed - so it’s not a problem with only WooCommerce 3.8.0 but with more than one WooCommerce-versions. Seems to be related to newest version of Pro-theme.

I guess I’m just saying that I’m getting the same error with X.

Hi there,

To hide this warning for now, you can turn off WP_DEBUG in wp-config.php. We’ve corrected this issue for the next release which could go out as early as today.

1 Like

To clarify for anyone reading this, turning off WP_DEBUG didn’t work for me. I had to add these lines of code to my wp-config.php:

ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);

Thanks Bobby!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.