• Resolved johnhoke

    (@johnhoke)


    I just installed jetpack on a brand new site, activated and went to enable recommended options and received
    Recommended features failed to activate. SyntaxError: Unexpected token < in JSON at position 0

    as an error?

    I’ve used Jetpack on all my prior blogs/sites w/out issue, not sure what is wrong

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Could you let me know what other plugins are currently active on your site?

    Could you also try the following:

    1. Open the dashboard page.
    2. Open your browser console
    3. Click on the Network tab
    4. Refresh the page.
    5. Try to activate a module.
    6. If you see any lines in red inside the browser console, click on them. A new panel should appear on the right.
    7. Click on the “Response” tab in that new panel.
    8. Copy the message displayed there.
    9. Paste it here.
    10. If no red lines appeared in the browser console, click on the “Console” tab of the browser console.
    11. Copy any errors displayed there, and paste them here.

    Thanks!

    Thread Starter johnhoke

    (@johnhoke)

    Jeremy

    Thanks!
    Not sure why, but after deactivating/deleting/reinstalling all was well again.

    This was a brand new install with no other plugins but Akismet installed or running. I will keep an eye on it for a day or two and see what happens ??

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    That’s odd! If it happens again, try the steps I mentioned above, hopefully it will tell us more!

    Uninstall Jetpack and check your htaccess file. If you installed WP with Fantastico or softaculous they overwrite htaccess and may cause syntax issue with what you had there.

    Thanks for the replies above; had this issue on a plesk install at Media Temple. Needed to add a htaccess file with default WordPress info. Fixed

    *I think updating permalinks fixed it*

    I’m having the same error.

    Here is my code:

    `<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml”><head&gt;
    <style type=”text/css”>
    body{background-color:#f4f9fa}
    .centered{text-align:center}
    .container{border:1px solid #e2e2e2;width:750px;margin:50px auto}
    .header{height:100px;background-color:#fff;padding-top:50px;background:url(/error_page.gif) top repeat-x}
    .header h1{font: bold 150% Arial, Helvetica, sans-serif; color:#5278af;margin:0;padding:0}
    .header h2{font: bold 80% Tahoma, Verdana, sans-serif; color:#5278af;margin:0;padding:0}
    .line{height:15px;background-color:#eef6f7}
    .error-container{background-color:#fff;font:normal 80% Tahoma, Verdana, sans-serif;color:#000;text-align:justify;padding:30px}
    .error-container li{padding-bottom:10px}
    </style><title>404 – Not Found</title>

    </head>

    <body>
    <div class=”centered”>
    <div class=”container”>
    <div class=”header”>
    <h1>404 – Not Found</h1>
    <h2>The page you are trying to access does not exist. <br />
    If this error persists, please contact the website webmaster.</h2>
    </div>
    <div class=”line”></div>
    <div class=”error-container”>If you are the webmaster of this site make sure that:
    <br /><br />

    • You have uploaded correctly your files to the public_html directory
      which is the web-root of your account;
    • You have not misspelled the URL. Bear in mind that letters are case
      sensitive and no white spaces are recommended;
    • In case you have applied SEO – SEF URL rewriting rules, make sure you
      have re-named the htaccess.txt file to .htaccess. If there is already a
      non-empty .htaccess file read it and make sure the necessary rules are
      un-commented.

    </div>
    </div>
    </div>
    </body></html>

    • This reply was modified 7 years, 5 months ago by aqeelat.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Recommended features failed to activate. SyntaxError: Unexpected token < in JSON’ is closed to new replies.