( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /home/andyinf/magnior.com/wp-includes/post-template.php on line 284 Call Stack #TimeMemoryFunctionLocation 10.0001401632{main}( ).../index.php:0 20.0002403672require( '/home/andyinf/magnior.com/wp-blog-header.php' ).../index.php:17 31.258632996872require_once( '/home/andyinf/magnior.com/wp-includes/template-loader.php' ).../wp-blog-header.php:19 41.260333082280include( '/home/andyinf/magnior.com/wp-content/themes/ab-theme/single-knowledgebase.php' ).../template-loader.php:74 51.260333082280get_header( ).../single-knowledgebase.php:2 61.260333082656locate_template( ).../general-template.php:41 71.260333082752load_template( ).../template.php:647 81.260533103376require_once( '/home/andyinf/magnior.com/wp-content/themes/ab-theme/header.php' ).../template.php:688 91.261833114096get_the_excerpt( ).../header.php:40 101.261833114096apply_filters( ).../post-template.php:381 111.261833114496WP_Hook->apply_filters( ).../plugin.php:203 121.261833116000wp_trim_excerpt( ).../class-wp-hook.php:288 131.261833116000get_the_content( ).../formatting.php:3337 " /> 404 – Page Not Found – Magnior

404 – Page Not Found

While you work hard to make sure that every link actually goes to a specific web page on your site, there is always a chance that you click on link that becomes a famous 404 – Page not found. This can happen for various number of reasons.

The most probable reason for 404 page is that something is set wrong in the permalinks settings.
You may set them in Dashboard > Settings > Permalinks, but in case that doesn’t work, you’ll have to modify your .htaccess file.
You can read more about .htaccess file here.

The .htaccess file is in your WordPress root folder (not in the theme).
Log in to the site via FTP.
The dot before its name means that the file is hidden by default.

Note that messing with .htaccess file should be done as a last resort.

404 page

Here are some other solutions to fix 404 error:

  • Refresh the web page by pressing F5, clicking the refresh/reload button, or trying the URL from the address bar again.
  • Check for any errors in the URL. Often times 404 error appears because the URL was typed wrong or the link that was clicked on points to the wrong URL.
  • Move up one directory level at a time in the URL until you find something. For example, if www.somepage.com/1/2/3.html gave you the 404 error, move up to www.somepage.com/1/2/. If you get nothing here (or an error), move up to www.somepage.com/1/. This should lead you towards what you’re looking for, or at least confirm that it’s no longer available.
  • Clear your browser’s cache – if you have any indication that the 404 message might just be yours. For example, if you can reach the URL from your phone but not from your tablet, clearing the cache on your tablet’s browser might help.
Next article