PHP Warning: trim() expects parameter 1 to be string, array given
-
I am using PRO version of ypur plugin. I have a lot of PHP-warnings in LOG:
[12-May-2020 11:01:48 UTC] PHP Warning: trim() expects parameter 1 to be string, array given in /wordpress/wp-content/plugins/woo-variation-swatches-pro/woo-variation-swatches-pro.php on line 109
On this line you are checking the licence key:
$license_key = trim( woo_variation_swatches()->get_option( 'license_key' ) );
But the problem is, that the license_key is stored as array:
Array ( [license_key] => Array ( [id] => license_key [type] => string [value] => ... ) )
Could you please fi it?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Warning: trim() expects parameter 1 to be string, array given’ is closed to new replies.