Articles of 404 error

Pagination shows 404 after a certain number of pages

This issue is in my index.php (although i’m thinking about moving this code to home.php instead). I have a custom WP_Query which shows some posts per page, specifying post types (i have a custom type which the main query was not able to show). I have 42 posts atm (it’s the WordPress theme unit plus […]

Only on 404 page, get notice: trying to get property of non-object on nonce

I am using a WordPress plugin. Everything work fine. Exect when open a 404 page, I got this notice: Notice: Trying to get property of non-object in D:\MYWEB\InstantWP_4.3.1\iwpserver\htdocs\wordpress\wp-content\plugins\sama-author-review\user-rate.php on line 49 Line 49 looks like this: ‘nonce’ => wp_create_nonce(‘ajax-user-rate-nonce-‘. $post->ID) Here the code: /** * enqueue scripts used in frontend * */ function sama_enqueue_scripts() { […]

When a link doesn't exist, how to tell WordPress what to do? (404 Error Page)

If you click any link that doesn’t exist in my main site site, for example this link, i expect the WordPress to use the default index.php file that has this loop inside it: <div class=”main col <?php post_class(); ?>”> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php $post_id = […]

Form in WordPress : 404

In my WP site I’ve got a Contact page whose URL is and which contains a <form> with an action attribute set to action=”/contact/” Clicking on the submit button brings me to this : This is the exact URL of my contact page (which works very well if I use this URL). Yet, […]

Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)

I’ve got problems getting pretty permalinks to work. When changing the permalinks (e.g. to month/name), my .htaccess (in the wordpress directory – there is another one one level up) is changed like this: AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/ RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f […]

How do I skip wordpress's 404 handling?

I want to extend my website in a way that is parallel to the wordpress theme. Example: My website with wordpress is at: By ftp I added a directory named test, in which there is a php file test.php The problem is that if I write in the url: it redirects me to […]

WordPress “Page not found error” when I edit a page

On a WordPress based website, when I add text using wordpress visual editor or HTML source to a particular page – it gives “page not found error”. I tried by adding some other text and its working fine. Then I typed all the text again and in between kept checking if it is giving any […]

WordPress 404 page returning with default in IIS7

I’ve installed a number of WordPress sites across many different platforms and I’m finding that when installed on IIS7 I’m getting the nasty default IIS7 404 error. I nuked Window’s hold on the 404 and now I’m receiving the standard. The resource you are looking for has been removed, had its name changed, or is […]

How To Create A Custom Taxonomy 404 Page

I can’t seem to find any documentation on this and Google is only showing results for people who have 404 pages caused by their incorrectly implemented taxonomies. I want to show a custom 404 page for my custom taxonomy. I would hope that there would be a simple naming convention like with taxonomy-{taxonomyName}.php. Maybe something […]

What causes an Unexpected HTTP Error within install plugins?

Within “install plugins” I’m receiving an error stating “An Unexpected HTTP Error occurred during the API request.” When I do a plugin search it throws me back to my site’s 404 page. Any idea what would prevent my site from syncing properly with WordPress’s servers? I added Hameedullah’s code to functions.php and recevied this returned […]