Jump to content
  • 0

Supposed Bug: License Module


serge

Question

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.

Link to comment
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...