• 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)
  • 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.