You must enter a value for the feature

Receiving Error: You must enter a value for the feature "users". It's a required feature. Please advise.

Here is PHP Code (all keys and IDs are correct, I verified with other working API calls):

$api_key = '10hed..........';$product_key = '4WMS-...............'; $feature_id = '1299';$version = '1061';

LimeLM::SetAPIKey($api_key);

$num_keys = 1;$num_acts = 1;$email = 'brad@company.com';$feature_names = array(users);$feature_values = array(3);

$pKey_details = LimeLM::GeneratePKeys($version, $num_keys, $num_acts, $email, $feature_names, $feature_values);$pKey_details_xml = new SimpleXMLElement($pKey_details);parsePrint($pKey_details_xml);

$pkey = '';parseAttribute($pKey_details_xml, 'pkey', 'key', $pkey);echo 'Product Key is: ' . $pkey . '<br><br>';

LimeLM::CleanUp();

I don't know if you did it on purpose or not, but the single-quotes you're using in values for "$feature_names" and "$feature_values" are so-called "smart quotes". That is, PHP won't be able to parse the values correctly. This might've happened if you wrote that code out in a typical word processor (like MS Word) instead of a text editor.

So, use this instead:

$feature_names = array('users');$feature_values = array('3');

Thank you. Easy fix.. Was using TextEdit on OSX for quick changes. Thought that would be fine. I won't do that again.

Well, you can disable smart quotes in TextEdit if you still wanted to use it:

  1. Apple symbol > System preferences > Keyboard > Text > Uncheck Use smart quotes and dashes
  2. TextEdit > Preferences > Uncheck smart quotes and smart dashes
  3. In TextEdit, Edit > Substitutions > Uncheck Smart Quotes and Smart Dashes