Title: Strange error 404 with PHP code.
Last modified: August 18, 2016

---

# Strange error 404 with PHP code.

 *  [papalagi](https://wordpress.org/support/users/papalagi/)
 * (@papalagi)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/strange-error-404-with-php-code/)
 * Hi all. I’m a newbye having to do with my first blog, but I know a little bit
   of php. Yesterday I’ve tried to insert some simple php code in a WordPress “Page”.
   It didn’t work (obviusly, I didn’t have the plug-in) but the strange is that 
   at the supposed url appeared a classic “error 404” page, not the WordPress’one!
   I deleted that page and created a new simple page without php code inside (same
   name), but it still appeared the classic Error 404. Endly I delete all, and now
   there’s still the classic Error 404 instead of the WordPress one. I’ve looked
   in the database but I found only the post’s table, not the Pages’ one. Wath’s
   happened?
 * Edit: suddenly, it started working fine.

Viewing 1 replies (of 1 total)

 *  [Christopher J. Hradil](https://wordpress.org/support/users/chradil/)
 * (@chradil)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/strange-error-404-with-php-code/#post-447813)
 * WP pages are stored in the posts table, so that’s no problem. sounds to me from
   what you’re describing you should do the following:
    1) disable all plugins 2)
   check your permalink structure/options 3) check your .htaccess file to make sure
   WP code has been added 4) check permissions on .htaccess 5) start re-activating
   plugins one at a time until the problem happens again, then you’ll know which
   plugin is causing the problem.
 * if you’re getting the ‘classic’ 404 page, the re-writes aren’t working (nothing
   is being re-directed to index.php which is what needs to happen for WP and the
   WP 404 page to kick in).
 * ….c

Viewing 1 replies (of 1 total)

The topic ‘Strange error 404 with PHP code.’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Christopher J. Hradil](https://wordpress.org/support/users/chradil/)
 * Last activity: [19 years, 11 months ago](https://wordpress.org/support/topic/strange-error-404-with-php-code/#post-447813)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
