I am getting a "response is not a valid json response" error when trying to save Block widgets. I have tried everything I can think of; reset permalinks, deactivated all plugins, reset to a default theme (TwentyTwenty-One), and deleted all widgets, but get the same
{"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}
error when checking in Inspect. Tried in Edge and Chrome.
Using Ubuntu 20.04 and PHP 7.4.3 with WP 6.0, although it was happening in previous WP versions. Nothing unusual in wp-config.php, and nothing in sites-enabled that I can see. I do have multiple wordpress instances (3 total) running on the server.
Saving a post in the block editor works fine, it's only in trying to save widgets.
It's either something in the database(s), or something in Nginx, probably, but I'm hitting a wall. Any suggestions?
Related
I recently migrated my website to DigitalOcean under plesk panel using all in one migration plugin. I kept having issues with 404 error only for pages that used permalinks configured as %postname%. For better URL format for my Content. But now if I enable the permalink I keep getting 404 error.
I used the popular suggestion of editing the nginx conf file through (through putty).
https://www.cyberciti.biz/faq/how-to-configure-nginx-for-wordpress-permalinks/
I wasn't sure of the save and exit step given after using the editor. ctrl+X shows a set of ^O^D commands. I pressed ^O and restarted it.
Now my entire website looks broken. Due to many 500 internal errors. What am I doing wrong here? kindly help me out please?
My website address is https://ourmoon.life/
I've a problem with my wordpress website. When I insert some url for being embedded, it's not working fine.
Here is the issue URL : https://www.duosia.id/windows/cara-mengekstrak-files-menggunakan-winrar-dengan-mudah
And here is the Screenshot :
When I try to visit the embedded url. It's return 404 not found. You can check the embedded url here, https://www.duosia.id/windows/cara-mengekstrak-files-menggunakan-winrar-dengan-mudah/embed/
I've try these common solutions.
Update everything including WordPress, the theme and plugins. Available updates appear in Dashboard > Updates.
Deactivate all plugins in case there is a conflict. If the problem goes away while all plugins are inactive, then reactivate them one by one to determine which is causing the problem.
Switch to the default theme (such as Twenty Thirteen) then try to do what was not working. If the problem remains, it is a general WordPress or hosting issue. If it happens only while using our theme, please let us know.
Clear cache in both your browser and in any caching plugins that you are using (also disable services like CloudFlare, if used with your website).
Revert code changes if you have modified the theme’s code. If using a child theme, reactivate the parent theme.
But, seems no one work.
The WordPress post embeds don't seem to be working on your site.
This URL shows a live example of the problem:
https://www.duosia.id/windows/whatsapp-for-pc/
The two embeds present in that URL are returning a 404, therefore, oEmbeds are not loading properly and showing the 404 page:
https://www.duosia.id/windows/facebook-messenger-for-pc/embed/#?secret=kMPv636bx1
https://www.duosia.id/windows/line-for-pc/embed/#?secret=65m4VpxiYi
Have you tried testing those URLs in the plugin "Rewrite Rules Inspector"?
You should see something like this for any of the "embed" URLs:
index.php?name=$matches[1]&embed=true
Also, have you tried flushing the rewrite rules in WordPress or maybe setting the permalink structure to a different/default one (right now you seem to be using a structure of "category/post-name") to see if it changes anything?
For the file that you are embedding, are you uploading it to the Media Library or some other plugin?
First I would check on the server to verify that the file you are looking to access does exist.
Once you know that the file does exist, then repeat the steps you have listed again.
I've seen some other people with the same issue on net,
but the solution that worked for them (updating the .htacess file), didn't go very well for me!
I used buddypress to migrate my wordpress site to my local pc, but after everything is setup, only the home page is working, other posts or pages are getting 404 errors, I also tried to deactivate plugins and changing the theme, but nothing worked.
I'm on windows 10 and i'm using wampserver 2.5.
I think that the issue is caused by Apache, but I don't know how to fix it!
my Apache version is 2.4.9
Thanks in advance guys :)
Your site’s permalink (WordPress Admin > Settings > Permalink) is set as Default, please change it to any of the other option available below. e.g: Day and name, Post name etc.
Then you’ll be able to access the board instead of the 404 error.
Another way is troubleshooting:
WordPress sites can complicate the 404 troubleshooting process. Why? WordPress is a content management system that processes its own internal rewrite array as a part of its permalinks feature.
The first step to troubleshooting 404s is to figure out whether the 404 is being caused by the web server or by WordPress.
Static file
If your file is static (e.g. a jpg image) open your FTP client and verify that the file exists.
As an example, let’s say that the URL http://example.com/wp-content/uploads/picture.jpg is producing a 404 error. You will want to:
Open FTP Client and connect to your server (if you don’t know how to do so, read this.)
Navigate to the file’s location
Verify that the file exists
If it is does not exist, you have found the source of your 404.
However, it it does exist, yet pulling the URL up in a browser results in a 404 error, continue on to find out whether the issue is web server-based or WordPress-based.
Reference Link: http://websynthesis.com/fixing-wordpress-404-errors/
The frontend works correctly, it's only when trying to log in the backend that the error occurs.
On the frontend, I can see that I'm logged in (the black ribbon on the top), when I click on any link I get this error message too
Content Encoding Error
I tried everything I found on the web. Disabled plugins, updated WordPress and the theme to no avail.
I tried the same code on my local machine, and it's working flawlessly.
If you are using a MySQL server older than version 5.5.3, you might need to change your tables' character encoding back to utf8.
This might also help
I've been able to fix this issue thanks to #jpg0002 in his answer.
There were too many configurations on my vhost. I have simplified it and I can access the admin.
I'm using wordpress 3.4 and i just register a custom post type and taxonomies for it and its working fine but the problem is sometimes some pages shows blank including front-end and back-end
Blank pages are usually caused by PHP errors. Something makes WordPress to crash, and if error display is disabled on your server, all you get is a blank page.
Check your PHP error log for any recent messages. They should point you to the file that contains the problematic code. Usually it will either be a buggy plugin or theme. Alternatively, the error might be caused by WordPress running out of memory. If it's a plugin or theme, you can fix the problem by deactivating it. If it's an "out of memory" error, increase the PHP memory limit.
See also:
3 Ways to Monitor PHP Errors in WordPress
Error Log Monitor plugin
Increasing memory allocated to PHP