Jump to content
  • 0

Supposed Bug: License Module


Question

Posted

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.

2 answers to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...