Title: WP error when pasting PHP HTML code
Last modified: August 18, 2016

---

# WP error when pasting PHP HTML code

 *  [derossi83](https://wordpress.org/support/users/derossi83/)
 * (@derossi83)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/wp-error-when-pasting-phphtml-code/)
 * Hello,
 * I’d like to use my WP to post codes (PHP, html…etc). When I do paste some amount
   of code (67 lines of PHP and html mixture), after pressing the “publish” button
   I get an “Not found” error, saying : “_The requested URL /wp-admin/post.php was
   not found on this server._“
 * I don’t have this problem when I post articles without codes. I tried to use 
   Quickcode, tried to add the code in between [code] or
    [pre] tags, tried to add
   the actual code in both visual and code views but nothing changed it.
 * It was a bit annyoing after finishing one kinda long article to get this error
   message. Any helps wouldd be appriciated.
 * Cheers 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Cal](https://wordpress.org/support/users/themesbycal/)
 * (@themesbycal)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/wp-error-when-pasting-phphtml-code/#post-620726)
 * Check out the wp-syntax plugin, should do what you need
 *  Thread Starter [derossi83](https://wordpress.org/support/users/derossi83/)
 * (@derossi83)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/wp-error-when-pasting-phphtml-code/#post-620729)
 * thanks for the suggestion.
 * it still won’t let me post that specific code. However if I delete like 25% out
   from the code it let’s me go through. Any suggestions?
 *  [workman](https://wordpress.org/support/users/workman/)
 * (@workman)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/wp-error-when-pasting-phphtml-code/#post-620993)
 * Was doing a search on the same error (404 on post.php) when I found this thread
   =]
 * My coworker just had mentioned that sometimes mod_security on the serverside 
   may recognize a request as spam and not serve the page at all as a precaution.
 * I was trying to post an article that referenced blogspot.com and it was rejected.
   After running the URL through tinyURL, it works. Go figure =/
 * If it is mod_security, you’ll just have to narrow it down to what link(s) it 
   may be. Hope it helps.
 *  Thread Starter [derossi83](https://wordpress.org/support/users/derossi83/)
 * (@derossi83)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/wp-error-when-pasting-phphtml-code/#post-620994)
 * hmmm. I didn’t have any issues with URL-s. The problem was-actually the problem
   still is- that if I’d like to post an article with -let’s say – 50 lines of code
   it gets rejected.
 * however if I post the same thing in batches, I get no errors. 🙁
 *  Thread Starter [derossi83](https://wordpress.org/support/users/derossi83/)
 * (@derossi83)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/wp-error-when-pasting-phphtml-code/#post-621012)
 * okay, I now have the solution…sort of.
 * I found out what caused this error 🙂 its really funny. I did this investigation
   paragraph-by-paragraph, then sentence-by-sentence and finally word-by-word. It
   turns out that the reason why the posting fails is because of one simple word.“
   Fetch”. Try to enter this word only to a post, and see the 404 error afterwards….
 * probably there are some workarounds for this 🙂 So fetch it for yourself 😀
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/wp-error-when-pasting-phphtml-code/#post-621013)
 * There are quite a few similar words (mainly those that could be commands in a
   script) that would cause similar issues; e.g. curl, mkdir etc.
    There was a fix
   posted: [http://wordpress.org/support/topic/120012?replies=5](http://wordpress.org/support/topic/120012?replies=5)
 *  Thread Starter [derossi83](https://wordpress.org/support/users/derossi83/)
 * (@derossi83)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/wp-error-when-pasting-phphtml-code/#post-621014)
 * yeah, i took the .htaccess what they recommended there, and it now works! excellent!
   🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘WP error when pasting PHP HTML code’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [derossi83](https://wordpress.org/support/users/derossi83/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/wp-error-when-pasting-phphtml-code/#post-621014)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
