Fix PHP code (main file error has only 250 lines of code) because of Wordpress upgrade - Woocommerce shoping cart related
Budget: €30 – €60 EUR
After a Wordpress upgrade Tailor-made code it's giving variables errors.
The main problem is that when trying to add the product to the shopping cart in woocommerce, the product is not being added.
Some of the errors that appear:
Warning: Trying to access array offset on value of type bool in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/jnt-woocommerce-custom-sizing/jnt-woocommerce-custom-sizing.php on line 35
Deprecated: Required parameter $total follows optional parameter $key in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 542
Deprecated: Required parameter $value follows optional parameter $address in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-customer.php on line 862
Warning: The magic method Automattic\WooCommerce\RestApi\Utilities\SingletonTrait::__wakeup() must have public visibility in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Utilities/SingletonTrait.php on line 48
Warning: The magic method Automattic\WooCommerce\Admin\FeaturePlugin::__wakeup() must have public visibility in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/FeaturePlugin.php on line 312
Deprecated: Required parameter $value follows optional parameter $address in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-order.php on line 986
Warning: Trying to access array offset on value of type bool in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/jnt-woocommerce-custom-sizing/jnt-woocommerce-custom-sizing.php on line 35
And in the checkout like this:
Warning: Trying to access array offset on value of type bool in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/jnt-woocommerce-custom-sizing/jnt-woocommerce-custom-sizing.php on line 35
The main problem is that when trying to add the product to the shopping cart in woocommerce, the product is not being added.
Some of the errors that appear:
Warning: Trying to access array offset on value of type bool in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/jnt-woocommerce-custom-sizing/jnt-woocommerce-custom-sizing.php on line 35
Deprecated: Required parameter $total follows optional parameter $key in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 542
Deprecated: Required parameter $value follows optional parameter $address in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-customer.php on line 862
Warning: The magic method Automattic\WooCommerce\RestApi\Utilities\SingletonTrait::__wakeup() must have public visibility in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Utilities/SingletonTrait.php on line 48
Warning: The magic method Automattic\WooCommerce\Admin\FeaturePlugin::__wakeup() must have public visibility in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/FeaturePlugin.php on line 312
Deprecated: Required parameter $value follows optional parameter $address in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-order.php on line 986
Warning: Trying to access array offset on value of type bool in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/jnt-woocommerce-custom-sizing/jnt-woocommerce-custom-sizing.php on line 35
And in the checkout like this:
Warning: Trying to access array offset on value of type bool in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/jnt-woocommerce-custom-sizing/jnt-woocommerce-custom-sizing.php on line 35