• Plugins arent working on my website, some of them started giving me REST API problem (All in ONE SEO plugin) even the new plugin (WP-Discuz) arent not working. The Rest of the plugin are woocommerce, Yoast SEO etc

    Image – https://ibb.co/z76p7Jh

    I have tried everything even disabled all the plugin then switched to WordPress 20 20 theme but still problem remain same. anybody please help?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey @shaprack ??

    First you’ve to Check if the WordPress REST API is enabled or not

    The best way to check is to visit this URL: https://yoursite.com/wp-json. If you see some JSON response, REST API is enabled. If it’s showing some error page or returns to home page, REST API is not enabled. Then we’ve to enable it first.

    If done, Go to settings > Permalinks > Click Save , this will reset .htaccess file to default.

    Let me know if it works.

    Thread Starter shaprack

    (@shaprack)

    Hi,

    Thank you for taking time to answer my problem, I have tried it before and can see json response, codes and can confirm that Rest API is enable. Thats the problem dont know why i am getting this error while my REST API is enable.

    Any more suggestion?

    Sorry to hear that @shaprack ??

    I see that a lot of people are facing similar issues when one or more plugins are used in combination. Some developers have updated this in their newer versions but the conflict remains unchecked.

    Since you have already deactivated plugins and issue persists, here is what I recommend:

    Try and increase WordPress memory limit to 256 MB. More on this: https://codex.www.ads-software.com/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    Add this code to your wp-config.php to increase WP memory:

    /** Memory Limit */
    define('WP_MEMORY_LIMIT', '256M');
    define( 'WP_MAX_MEMORY_LIMIT', '256M' );

    Paste it just before:
    /* That's all, stop editing! Happy blogging. */

    Let me know how it goes.

    Thread Starter shaprack

    (@shaprack)

    That didnt work either :/

    Method tried after applying the code in wp-config.php

    1. Deleted some theme and plugins (to even free up space)
    2. Checked each and every plugin to see if it solved problem for any of the plugin (answer is Big “No”)
    3. Increased the Memory limit to 512M in wp-config (Nothing happened)
    4. Double checked if i have applied the code at right place (Yes)

    @shaprack I tried and found several threads but those were plugin specific issues
    Please go through this: https://meowapps.com/fix-wordpress-rest-api/

    Check which rest routes are available using this plugin: https://www.ads-software.com/plugins/wp-rest-api-controller/

    You can also post this issue on AIO SEO support sub-forum : https://www.ads-software.com/support/plugin/all-in-one-seo-pack/ and WpDiscuz support sub-forum: https://www.ads-software.com/support/plugin/wpdiscuz/

    Thread Starter shaprack

    (@shaprack)

    Thanks btw,

    i have already tried that plugin and submitted my problem in both the forum (no solution) idk if it was problem with one plugin that can be understood but at same time lots of other plugin got affected with the same problem, it make me wonder if it problem of wordpress recent update?

    Or its the reason of plugin conflict, what can be possible reason?.

    Thanks for your effort

    @shaprack If you updated recently, I would suggest rolling back to the previous stable version using this: https://www.ads-software.com/plugins/wp-rollback/

    Your welcome ??

    Thread Starter shaprack

    (@shaprack)

    I have completely solved the problem and the problem have no connection to REST API. It simply due to Plugins loading non-secure https://yoursite.com site, it block the plugins execution bcs plugins need to load over secured https:// (that how they are design) in my case thats weird because i already have SSL certificate and running over secured https:// so thats why this thing overlooked by me.

    I have just put the these code in .htaccess file just above the #END WordPress

    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    It will solve the misbehaving of the plugins. I hope it helps for those who are looking for answer

    • This reply was modified 3 years, 5 months ago by shaprack.
    • This reply was modified 3 years, 5 months ago by shaprack.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘All Plugins not working due to Rest API’ is closed to new replies.