PSDtoFinal wrote: 5. Check the API Key in Mail Chimp to find that it has 37 characters.
...
7. Edit the text input field text within the Developer Tools in Chrome to set maxlength="37".
Thanks for finding this solution.
Actually, the datacenter identifier that follows after the hyphen is composed of a country identifier and counter. The current code assumes the counter to stay below 10, but MailChimp has more than 10; e.g., 'us11'. The counter could even exceed 100 in the future.
Is there a public development repository (e.g. github) for this plugin?
Code:
diff --git a/chimpexpress.php b/chimpexpress.php
index 2d5561a..b65af91 100644
--- a/chimpexpress.php
+++ b/chimpexpress.php
@@ -829,7 +829,7 @@ class chimpexpress
</label>
</th>
<td>
- <input type="text" name="<?php echo $this->_optionsName; ?>[apikey]" style="text-align:center;width:270px;" maxlength="36" value="<?php echo esc_attr($this->_settings['apikey']); ?>" id="<?php echo $this->_optionsName; ?>_apikey" class="regular-text code" />
+ <input type="text" name="<?php echo $this->_optionsName; ?>[apikey]" style="text-align:center;width:270px;" maxlength="38" value="<?php echo esc_attr($this->_settings['apikey']); ?>" id="<?php echo $this->_optionsName; ?>_apikey" class="regular-text code" />
<?php /* if ( empty($this->_settings['apikey']) ) {
?>
<input type="submit" name="get-apikey" value="<?php _e('Get API Key', 'chimpexpress'); ?>" />