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

4 years, 6 months ago
Stefan
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.

4 years, 6 months ago
Thomas

Thanks Stefan!

4 years, 6 months ago
Stefan
Developer

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

4 years, 6 months ago

You must be logged in to reply to this topic.