I'm using woocommerce rest api version 2 and I'm having problem to list all order as its not giving me list of all recently added orders.
For example: If I had add one order which has order id :1922 so its added to backend but when I want to view orders using this api : wp-json/wc/v2/orders
it give me all orders except order which I had recently added which is 1922.
Its working charm till I have transferred server but after moving to other server it suddenly stopped working and due to that I'm having issue in my Ionic app in which I'm using Woocomerce v2 API.
What would be the issue?
I have solved this issue by disabling static and dynamic cache and also cleared memcache too.
Its actually issue in server side above actions need to done and i disabled static and dynamic cache and also cleared memcache so it solve the issue.
So if anyone have such kind of issue please follow this step and issue will be resolved but if you have transfered site from one server to another then this solution will help.
Related
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.
I mean It is not even loading, nothing is happening.
I will add a link to a screen recoding for help.
Video Link
It's default woocomerce functionality. If REST API is not generating means there is an issue with any other plugin or js error.
so first deactivate all other plugins and try again if working, then again active other plugins one by one and try it to generate key, in this way, you can easily found which plugin has an issue.
I am working on to the website, after making transfer into another server the woocommmerce order area not working but rest of website works properly.
Can anyone who get this issue. Please help me to find the issue.
Wordpress version:4.8.8
PHP version:7.4
Woocommerce version: 2.5.5
Thanks
You check first is that your orders are available in database or not. If Order lists data available in your database then you should check you site using your debugging tools.
I am facing a very weird caching issue on my site. The site is hosted on WP Engine with Cloudflare setup. Here is the complete scenario when the user tried to access the site.
When the user upgrades to pro after successful payment, then all the pro listing should be visible to them OR I can say they can access pro listing. But after successful payment when a user tries to access the pro listing it shows you need an upgrade to pro. After hard refresh 2 to 3 times. It works normally.
Note:
I have already reached out to the support team. They are working
on it. I am just want to prepare my self for plan B :)
My site does not have any caching plugin.
I have already bypassed the caching from Cloudflare for that page.
I have added Cache Level to Bypass in page rules. Let me know if I need to add anything else to the page rules.
I am sure it is a caching issue. I am open to suggestions on how to fix that.
Thanks!
you can use wp-super cache plugin.
and you need to clear your browser cache.
I am using wp-engine. when I faced like that, I used wp-super cache plugin.
if the plugin is not working, you are working on different place.
check your file path, please. live site or staging site... because you might make a mistake..
I'm working on a project using WP's API along with VueJs + Nuxt for the front-end. Everything seemed to be working just fine, but since yesterday not all of my changes are fetched by the API.
It's really weird because, in the WP admin my changes are displayed as normal, but when looking at the response using postman, I can only see what was on my site prior to my changes, or only a few recent changes that don't even appear on the final render.
I am not using any type of extensions for cache as of now, but I've tried several extensions to empty it anyway, even if all of them signaled me that nothing is in the cache.
Could it be that the API got somehow "stuck" at some point and now no update is ever taken into account? Then is there anyway to "reset" this and force it to update?
Problem solved! I am using Gandi to host my site and I had no idea thye used Varnish as a caching solution. Disabled it and everything went back to normal. Thanks for your answers!
Twitter have stopped api 1 in the last few days and as a result 'wp to twitter' has stopped working. There seems little (comprehendible) info on the twitter site for updating to 1.1.v. I deleted the app (or tried another issue) and created a new application (with read and write). I then went to my wordpress plugin and updated the tokens and keys but still get the message
Twitter requires authentication by OAuth. You will need to update your settings to complete installation of WP to Twitter.
Should I just change the wordpress plugin?
Any help would be appreciated.
If you really have entered your tokens correctly, then it sounds like a bug in the plugin.
Give my plugin a try if you like. http://wordpress.org/plugins/latest-tweets-widget/
If you have the same problems I'll try to help.