最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

500 internal error - Wordpress 4.9.8 doesn't save if content has style="

matteradmin9PV0评论

Wordpress 4.9.8 when I save a draft/publish return me an error:

    Gone

The requested resource
/wp-admin/post.php
is no longer available on this server and there is no forwarding address. Please remove all references to this resource.

I found that the problem is because my text has " style="bla bla bla" ". If I remove style= it works. I tried disabling all plugins, change to default theme, create a new installation, change PHP version from 5.6 to 7, 7.1, 7.2 : doesn't change.

Any ideas?

Wordpress 4.9.8 when I save a draft/publish return me an error:

    Gone

The requested resource
/wp-admin/post.php
is no longer available on this server and there is no forwarding address. Please remove all references to this resource.

I found that the problem is because my text has " style="bla bla bla" ". If I remove style= it works. I tried disabling all plugins, change to default theme, create a new installation, change PHP version from 5.6 to 7, 7.1, 7.2 : doesn't change.

Any ideas?

Share Improve this question asked Oct 29, 2018 at 15:52 AculineAculine 133 bronze badges 2
  • I cannot replicate this error, so it must have something to do with your particular setup. – cjbj Commented Oct 29, 2018 at 16:19
  • This sounds like something mod_security or some kind of firewall might do. – Milo Commented Oct 30, 2018 at 0:22
Add a comment  | 

3 Answers 3

Reset to default 1

I've had the same issue recently.

Inline styles, as well as <img> tags, would cause the 410 Gone status and error message (The requested resource /wp-admin/post.php is no longer available on this server and there is no forwarding address. Please remove all references to this resource. upon previewing or publishing the post.

The problem was due to the hosting provider doing some maintenance on mod_security in cPanel.

I found out when I asked them for the Apache logs so that I could look into it more.

Contact your hosting provider to get this fixed.

SOLVED:
as @milo suggests, I found solution disabling mod_security under cPanel. So I ask to my hoster (register.it) if there was some problem. They confirm me that servers are under updating security stuff and to disable and then re-able mod_security in CPanel. After that, post.php works properly.

Thank you all.

in general it's not a good idea to insert inline styles.

try with a CSS class and add your custom CSS to your theme.

Post a comment

comment list (0)

  1. No comments so far