Warning: array_merge(): Argument #2 is not an array in /home/demo-woocommerce/public_html/wp-content/plugins/xxxxx-for-woocommerce/class.php on line 184
it's the third Blesta license server integration I do and each time at client side, when license key is wrong, there this php warning;
it's come from this below part in the original file /plugins/license_manager/dist/license_manager.php
Note that in my integration this file name was changed.
unset($data['status']);
return array_merge(
array(
'status' => $status,
'label' => null,
'time' => null,
'allow_reissue' => null,
'addons' => null,
'version' => null,
'custom' => null
),
$data
); // THIS IS LINE 184 IN MY RENAMED FILE
}
As having a customer using a wrong license key is just one of common case, i expect not having any php warning.
Question
serge
Warning: array_merge(): Argument #2 is not an array in /home/demo-woocommerce/public_html/wp-content/plugins/xxxxx-for-woocommerce/class.php on line 184
it's come from this below part in the original file /plugins/license_manager/dist/license_manager.php
Note that in my integration this file name was changed.
As having a customer using a wrong license key is just one of common case, i expect not having any php warning.
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.