Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Evan Herman

    (@eherman24)

    When you enter the API key do you see a small pre-loading icon appear, and then the error message appears?

    What does the error log state?

    Please toggle on advanced error messaging and try again, and report back here with the error messages found in your log.

    Evan

    Thread Starter ToddA

    (@toddaumann)

    Thank you for your quick reply to my issue!!

    Steps:
    1. created API key on Mail Chimp
    2. cut/paste API key into the Plugin form | result = Plugin form shows green check mark with “valid API key” message
    3. Click “save settings” | result = “Sorry, that is an invalid MailChimp API key. Please check the error log on the debug options tab for further information.”
    4. Click “Debug options” | result = “Invalid MailChimp API Key: Dec. 10th, 2014 – 11:06:14am”
    5. Enabled “advance error messaging”
    6. Cleared error log
    7. repeated steps 1 – 3 | result “Sorry, that is an invalid MailChimp API key. Please check the error log on the debug options tab for further information.”
    8. Click “Debug options” | result = “no errors logged”

    Plugin Author Evan Herman

    (@eherman24)

    Hi Todd,

    The fact that it returns valid initially, and then reverts to invalid upon saving it leads me to believe that it is related to a js or the TinyMCE editor on the page. Once you hit ‘Save’, the page should not refresh. If it does, this is most certainly related to some sort of JS error. A message at the top of the page should appear ‘Your settings have been saved’ or ‘Your settings have not been saved (or you did not change them)’.

    Can you try one more thing for me? After you enter the API key an it returns ‘invalid’ , can you hit F12 to bring up the browser developer console. From there, click on console. That will tell us if you’re getting any JS errors on the page, which could be part of the problem.

    If there is no JS errors, I would be more than willing to take a look for you personally if you could create me a temporary admin account. You can email me at [email protected] , if all else fails and I will get it resolved.

    Thanks,
    Evan

    Thread Starter ToddA

    (@toddaumann)

    I’m not sure I correct did what you asked, but I think I have useful info for you. I am running OSX 10.10.1 and Chrome 40.0.2214.94. I toggled on Developer JavaScript Console, and found this after hitting “Save Settings”:

    Uncaught ReferenceError: tinyMCE is not definedadmin.php?page=yks-mailchimp-form:587 (anonymous function)load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.1:3 m.event.dispatchload-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.1:3 m.event.add.r.handle

    Let me know if you need more info, and thank you for looking at this!

    Plugin Author Evan Herman

    (@eherman24)

    Yea, that helps to pin point that another plugin or your theme is trying to hook into the single and double opt in WYSIWYG editors, and causing some sort of conflict.

    I can’t tell what plugin it is, or how to go about fixing it, but it certainly is related to another plugin or your theme. Something is trying to hook in and causing errors.

    Evan

    Thread Starter ToddA

    (@toddaumann)

    Ok – too bad. I was really hoping to use this plugin.

    Plugin Author Evan Herman

    (@eherman24)

    Ok, well as mentioned before, if you want me to take a look I would be more than happy too. Unfortunately it’s not the plugin at fault, but a separate plugin you are using which is not hooking into the tinyMCE editor properly.

    Thanks,
    Evan

    Hey there,

    I am having the same issue one my site. I just manually injected the tinyMCE code into the page and was able to save my key. The tiny MCE seemed to be completely missing.

    https://www.tinymce.com/download/download.php

    Download inymce_4.1.7_jquery.zip\tinymce\js\tinymce\tinymce.min.js

    Copy and pasted the contents of this file into the js console before pressing save.

    Im not sure why the code is not included in the first place. If one so desired, you could include the js file. Maybe wrapping it in something like

    if(typeof tinyMCE== "undefined"){
    
    /* Copy code form file here */
    
    }

    I haven’t used a form yet, but ill post an update if I run into more issues.

    Cheers
    kratomone.com

    Plugin Author Evan Herman

    (@eherman24)

    Hi Derek,

    thanks for posting that small bit of info. I haven’t actually seen the issue of the tinyMCE code not being defined, but I will definitly be taking a look into it.

    At the moment I’m in the process of re-writing the entire plugin. We’re considerig completley stripping the tinyMCE editor form the settings page as it only seems to be causing more problems than anything. I’m sure a standard text area field would be sufficient.

    Thanks again!
    Evan

    I’ve had similar issues in the past. Ill be looking for that update. Thanx!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Cannot Save validated API key’ is closed to new replies.