• Resolved khanarslan1115

    (@khanarslan1115)


    Hello there,

    I am trying to generate a REST API Key to connect an app with my site but after many trials, I could not get able to generate key.
    I tried different names, Read-Write-Read/Write…but every time the Generate API Key did not work. After clicking nothing happens. I have tried different browsers, Cleared Browser and WordPress Cache along with my cpanel cache, But nothing changed.
    The Generate Key button is not responding at all.

Viewing 15 replies - 1 through 15 (of 34 total)
  • Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @khanarslan1115,

    I’ve performed some cross-testing for us today on several of my sites which have the latest versions of WordPress, WooCommerce and our free Storefront theme as the only enabled software. When doing so I’ve not been able to replicate the behaviour which you describe with not being able to generate REST API access keys.

    Below is an animated screenshot of testing from one of our sites which was performed using WooCommerce v5.6.0.

    Image Link: https://cloudup.com/c4A1t8aXhPd

    From what you have described and the results of our comparison testing, it could be code from another plugin or theme which has caused a possible conflict and affected the functionality of WooCommerce.

    To see if that is the case we’d suggest carrying out a conflict test on your site by disabling all other plugins aside from WooCommerce along with switching to a theme like Storefront. This will help with trying to and locate what software you have installed which could possibly be causing this behaviour? You could use a free plugin called Health Check and Troubleshooting to carry out such testing.

    When in Troubleshooting mode all plugins will be deactivated and only the admin of the site carrying out the troubleshooting would see those changes. Any customers visiting the site would see no changes at all.

    Once you have disabled all other plugins and switched themes if the behaviour is resolved you can then enabled your theme and sites plugins testing after each one is enabled until the behaviour returns to locate the culprit.

    https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Thread Starter khanarslan1115

    (@khanarslan1115)

    @stuartduff Thank you so much for you detailed help.

    Isn’t there any other way to generate api keys? I mean this procedure to locate the culprit by disabling the plugins and themes is a long procedure and also that it might effect my shop, as it is up and running and might kick back the customers if they see nothing while this troubleshoot is happening.

    Oh and im using 5.8 version of wordpress

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @khanarslan1115,

    Regrettably, there really isn’t another way to test other than to initially perform some conflict testing. Using the Health Check and Troubleshooting I recommended wouldn’t affect anyone aside from the site Administrator.

    You could also perform that level of testing on a staging/test site so that the live site is not affected. Some web hosts have staging functionality included within their hosting packages if not you could use a plugin like this below to set one of those test sites up.

    https://www.ads-software.com/plugins/wp-staging/

    Thread Starter khanarslan1115

    (@khanarslan1115)

    Oh great..so would the plugin Health Check and Troubleshooting locate the faulty plugin for me?

    Thread Starter khanarslan1115

    (@khanarslan1115)

    hey @stuartduff
    Well I just enabled only woocommerce all the other plugins were disabled by the health check plugin. And i am still facing the same problem. I dont know how to record the screen. Though it is like i click on generate key and nothing happens..it does not even load..

    Thread Starter khanarslan1115

    (@khanarslan1115)

    @stuartduff
    Here is a small video:

    Video Link

    Thread Starter khanarslan1115

    (@khanarslan1115)

    @stuartduff any help??

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there ??

    When you load the REST API page, try to create a new key, right-click anywhere, and then in the menu that pops up, select “Inspect/Console” (it might be named slightly differently based on your browser).

    Then the tools that will pop up will have a space called “Console”.

    From there, please send us a screenshot of what’s being displayed in the browser console.

    I recommend https://snipboard.io for easily sharing screenshots – please follow the instructions on the page, then paste the URL here. It works with Chrome, Firefox, Safari, and Edge.

    Cheers.

    Thread Starter khanarslan1115

    (@khanarslan1115)

    @gabrielfuentes Hello, Thank you so much for coming here. I have done what you asked and here are the screen shots:

    Pic 1
    Pic 2
    Pic 3

    Thread Starter khanarslan1115

    (@khanarslan1115)

    Mirko P.

    (@rainfallnixfig)

    Hi @khanarslan1115,

    Thanks for the screenshots!

    Do you have a firewall installed or an AdBlock extension in the browser? Checking the Console errors it sounds like something is blocking the connection and the developer tools are displaying a WebSocket connection failure.

    Does it work if you access from another network and device? Please test it and let us know. You could also contact your host and check if some settings on the server are blocking the connection to Rest Api.

    Thanks!

    Thread Starter khanarslan1115

    (@khanarslan1115)

    hello @rainfallnixfig
    Thank you for your response.

    There is no ad blocker or something, i have tried different browsers as well as devices but the issue stays the same.

    Thread Starter khanarslan1115

    (@khanarslan1115)

    @rainfallnixfig
    here is a link to somewhat same problem and the guy has fixed it but the link there of code is not opening, maybe what he have said would help you some way?

    Link

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Thank you very much for the screenshots!

    I will recommend you to perform a full conflict check one more time without using the Health Check & Troubleshooting plugin. This is because the Health Check & Troubleshooting doesn’t work as expected in some scenarios.

    For this, you can create a staging site (as previously recommended) using WP-Staging plugin and perform the testing there.

    And for the conflict test, please follow the steps below:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem while navigating as Icongnito

    Let us know how it goes ??

    Thread Starter khanarslan1115

    (@khanarslan1115)

    @gabrielfuentes Sure let me follow the steps.

Viewing 15 replies - 1 through 15 (of 34 total)
  • The topic ‘REST API, Generate Key not responding’ is closed to new replies.