• Resolved zoddshop63

    (@zoddshop63)


    Could not use sg optimizer with nginx. Always says cannot connect to wordpress api. Seems to be a bug.

    No, I don’t have any security plugins

    No, I don’t have anything at all in htaccess

    Yes, wp-json works perfectly fine

    Yes, all other wordpress rest api plugins are working fine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Plamen M

    (@plamenm)

    Hello @zoddshop63 ,

    The servers of SiteGround, the server setup also uses Nginx and the Rest API Connections work perfectly fine.

    Try: Disabling all of the other plugins in your site. Then re-enable the SG Optimizer plugin only. If the error is gone, then re-enable the plugins one by one, testing the Optimizer after each re-enabled plugin.

    You may want to also try to temporarily switch to one of the default WordPress Themes while testing. Some theme specific entries in the functions.php file may also block the requests.

    You can also check your console for any errors that could indicate the exact reason for the API to not function properly.

    In a test WordPress installation, try installing our plugin alone. See if it would work there.

    Regards,
    Plamen Martinov
    Tech Support Team
    SiteGround.com

    Thread Starter zoddshop63

    (@zoddshop63)

    I tried it on 2 fresh installs of wordpress core on 2 separate dedicated servers running ubuntu 22 php-fpm 8.1 and wordpress core alone. Its definitely a problem with siteground optimizer.

    Plugin Support Simeon Boev

    (@k3llanved)

    Hello @zoddshop63,

    We asked our developers for further assistance on the matter based on your feedback. Unfortunately, they cannot recreate the issue using different testing environments using core WordPress application with default theme and only our SiteGround Optimizer plugin. I strongly recommend taking a deeper look into the configuration and settings of your local environments for any form of restriction or limitation that could prevent connection to the WordPress API.

    Best Regards,

    Simeon Boev

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Could not connect to wordpress api’ is closed to new replies.