Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Thomas

Woocommerce add-on – Php 7.1.2 – Variation column – Fatal Error

Hi there,

getting this error on variation column after switching to php 7.1.2

Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/web/app/plugins/cac-addon-woocommerce/classes/column/product/variation.php on line 66

seems to be fixed by replacing line 27 of same file

$values = ”;

by

$values = [];

hope this helps

thomas

7 years, 1 month ago
Stefan van den Dungen Gronovius
Developer

Hi Thomas,

Thanks for your feedback.
We’ve changed this code for our upcoming release.

One notice: We use $values = array() instead of [] because we want to offer the same backward compatibility for older PHP versions as WordPress.

7 years, 1 month ago
Thomas

Thanks Stefan!

7 years, 1 month ago
Stefan van den Dungen Gronovius
Developer

You’re welcome. The new version is planned for April 4th 2017.

7 years, 1 month ago

You must be logged in to reply to this topic.