• Resolved roz333

    (@roz333)


    Hey guys

    Today I tried to install site kit plugin for the first time on this domain but I got an error after I tried to connect this plugin to my google account

    Your site may not be ready for Site Kit: Site Kit cannot access the WordPress REST API

    I did check the site health, there is no any error regarding rest api
    I installed and configured sit kit on three websites that are being hosted on same server and same cloudflare account without any problem, I am having this problem only on this domain
    I remember once I installed a plugin for disabling rest api but it was deactivated and removed long time ago
    How can I fix this issue?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter roz333

    (@roz333)

    There is no any support here?

    Plugin Support James Osborne

    (@jamesosborne)

    Hi @roz333,

    Thanks for reaching out. Note also that support is provided over the weekdays only, and not during weekends.

    With regards the error you’re facing, your WordPress REST block could be coming from a host or firewall configuration, or the block could be from when you use a third party plugin previously to disable your REST API. The block may have been configured in one of your WordPress configuration files. So we can determine more on this, please share the following:

    1. Your Site Health information. You can use this form to share privately if preferred.  
    2. Do you recall the plugin you previously used to disable your REST API?
    3. If you temporarily bypass Cloudflare for this site, are you able to proceed?

    Once we have the above we can assist with this further. Let me know if you have any questions with the above.

    Thread Starter roz333

    (@roz333)

    Thank you James for your explanation
    I submitted the info you asked right now
    I don’t think so this issue is relevant to server because I have 4 domains. I installed and configured sit kit on three other domains without any problems .. All 4 domains are being hosted on same server with same IP same server configuration , same firewall configuration and same cloudflare account (with same configuration in cloudflare setting and firewall and DNS)
    I am confident that issue has been created since I activated that plugin for disabling REST API
    unfortunately I don’t recall the name of plugin

    Thread Starter roz333

    (@roz333)

    I installed manually google analytics G4 on my website alongside with UA google analytic but It seems it doesn’t work properly, It doesn’t show real number of users and although I have connected both codes via google console, I cannot see my previous data and statistics in the new Google Analytics. This is why I am trying to install site kit

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for providing these additional insights @roz333. From reviewing your site I noticed some mixed content errors, and these can lead to REST errors. Can you ensure that the http version of your site redirects to http? At present both are accessible. After doing so, please attempt Site Kit set up on this site once more.

    I also noticed various optimizations performed that may also be impacting Site Kit setup. You’ll see various console errors when visiting your site, some which indicated mixed content as mentioned above, while others referencing your optimization plugins. If you managed to make your site fully https only, and the same WordPress REST API notice appears please follow the steps below:

    1. Login to your live site from a Chrome browser incognito window.
    2. Install and activate the Health Check & Troubleshooting plugin.
    3. Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
    4. From the same screen click on the “Available Plugins” tab at the top right and then click on the “Enable” option next to “Site Kit by Google“.
    5. Attempt to setup Site Kit once more or check for the same error.

    Let me know if you have any questions with the above.

    I installed manually google analytics G4 on my website alongside with UA google analytic but It seems it doesn’t work properly, It doesn’t show real number of users and although I have connected both codes via google console,

    The changes you see here may be due to what GA4 highlights as “Users”. With Universal Analytics (UA) the “Total Users” metric highlights all site visitors simply as “Users”. If you then view your GA4 data from analytics.google.com the “Users” metric refers to “Active Users”, which can differ from the “Total Users” metric.

    To summarize, GA4 highlights your “Active Users” whereas UA highlights the “Total Users“. Active means users who revisit your site, or navigate between your site. Total users can include one time visitors. The metrics between both are unlikely to match.

    The product experts over at the Analytics Help Center can advise on the above more than we can here, but do let me know of the above regarding troubleshooting your REST related issue.

    Thread Starter roz333

    (@roz333)

    I really really appreciate you man
    You are the best
    Everything went well and it works great now, After configuring site kit at incognito I should have changed http to https and everything is ok now

    Just two last question
    1- As you can see here (https://imgur.com/8LjGDrN) impression section doesn’t show the data it just shows “gathering data” Is that a bug? (All data showed up in dashborad except this one)

    2- Is that possible you remove all data I shared with you in private form?

    Thank you again sir


    Plugin Support James Osborne

    (@jamesosborne)

    Great news, glad to hear that resolves your issue.

    1- As you can see here (https://imgur.com/8LjGDrN) impression section doesn’t show the data it just shows “gathering data” Is that a bug? (All data showed up in dashborad except this one)

    Gathering data is normal if there is no impression data yet. The information shown within Site Kit for this metric comes from your Search Console account, so it should match what you see within Search Console directly. It’s just a matter of waiting I suspect. If you’re finding different at Search Console directly I’d be happy to check this further if you can provide a screenshot or recording of what you’re seeing in Site Kit compared to what you’re seeing in Search Console (for the same reporting period). I suspect it’s just a matter of waiting.

    2- Is that possible you remove all data I shared with you in private form?

    Done!

    Let us know if you have any further questions on the above, and be sure to reach out if you have any further Site Kit queries. If you have a moment free please also consider leaving a plugin review once you’ve tested out the dashboard and features Site Kit offers.

    Thread Starter roz333

    (@roz333)

    Problem solved. Data started showing up since a few hours ago
    Thank you very much for all your help
    I wish you all the best.

    Plugin Support James Osborne

    (@jamesosborne)

    Excellent, thank you for the update. Best of luck with your site going forward. Be sure to reach out if you have any further queries.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Rest API Error’ is closed to new replies.