Help!

Hii tried to upload image in the article then its showing this error also when i tried to save it as draft its showing error help.

is this wordpress control panel?

can you upload images with ftp software?

i get your problem now. it’ looks corrupted:

https://infinityfree.net/support/how-to-fix-a-corrupted-wordpress-installation/

1 Like

It looks like one of the AJAX endpoints which WordPress tries to connect to gives bad data. You can figure out which request that is through the Developer Tools in your browser.

On desktop browsers, you can usually open the developer tools by pressing the F12 key, or by right clicking anywhere on the page and clicking Inspect Element. Please check the documentation of the browser you’re using for more detailed instructions.

Then, navigate to this page, open Developer Tools, go to the Network Tab and enable Preserve Logs. Then, try to upload the file. Hopefully, there is only one request there. You can then select this request and go to the Response tab. In there, you should see what the server returned instead.

I suspect that the server returned some kind of error message there, and knowing that error message is very useful to knowing how to fix it.

1 Like

I didn’t get what you said

i think they mean this:

if an error happens. you’ll see a new error on right side

1 Like

I say more like this:

I used fegelein.com as a test, and it returns “304 Not Modified” as status code. I would also use my website and get no error codes but success codes. For the owner of the other website (not the test one) it may be, after selecting the file and trying to upload it, an error status code.

@anon19508339, the console shows only JS errors, not server status codes / errors, by the way.

1 Like

Im not getting what you guys are trying to say about developer option or whatever but when i tried to upload featured image its showing this error.

Right click and click on “Inspect” on that page. It should show the Developer Tools; it also depends on the browser you’re using, and the language of it (in my case it’s “Ispeziona” (Inspect) because I’m Italian, and the language of my downloaded browser is also Italian).
Then change the tab of the Developer Tools from “Elements” to “Network”, toggle “Preserve Logs”, try to upload the file you’re trying to upload on the Chrome normal tab (not Developer Tools), click on the first request generated by WordPress on the Developer Tools, and see the Error Status Code that prints WordPress.

Click on the red request on “Developer Tools”. It should show the error status code perfectly.

You didn’t understand; from my knowledge the autosaves file has a “400 Bad Request” error status code. So you should CHMOD with a FTP client or a File Manager the contents (files, subdirectories) and the wp-content directory with Read-Write-Execute permissions on all the groups (777) or simply reinstall WordPress.

ok so will my data’s will lost?

Not if you use the same database as before (just posts and pages will be saved, and you should upload all the media again if you want your files back again); if you use a different database all your data will be lost.

ok

1 Like

That response text looks like WordPress (or at least something in your WordPress installation) is blocking you from updating that posts. Judging by the message, I’d guess it’s some kind of permissions issue, but I don’t know WordPress to that level of detail.

You could double check if there are other failed requests (you’ll want to select the XHR or Doc types for that).

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.