How to fix: “The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.”

Caveat I know this question is a little out of date and our question/issue is technically regarding an Azure WordPress Resource not a hosted environment… but I thought it might be helpful to answer for future readers. Background/Issue We spun up an Azure Worpress resource and migrated our site to it using updraft. Once transferred … Read more

make wordpress log errors in apache log file

I use a separate error-log-file for WordPress that i add to wp-config.php like this: Step 1: Create a log file Create an empty file called “php-errors.log”. This file will serve as your site’s PHP error log. Your server will need write access to this file, so make sure to set the appropriate permissions. Step 2: … Read more

WordPress triggers 404 on page 2 for custom search query

index.php is the default template, the fallback. If we look here: http://codex.wordpress.org/Template_Hierarchy And at the diagram: We can see here that search.php is the appropriate template. Have you considered using author.php and the author archives instead of modifying the search template? There are far better ways of implementing what you want, even the searching via … Read more

404 redirecting to home [closed]

If this is not occurring on your local installation: have you checked your webserver’s configuration? Since the locally it works and it seems to work for the 404’s of your subsites of your mainsite I would check this and make sure no plugins are activated during debugging this issue. If you use Apache with mod_rewrite … Read more

Why do I have a weird rendering issue only on 404.php caused by wp_nav_menu?

I’m not sure that this would be causing your problem, but one way you’re definitely Doing It Wrong is referencing menu instead of theme_location in your call to wp_nav_menu(). Let’s assumed you’ve registered your menu as “main-navigation” in functions.php, like such: register_nav_menus( array( ‘main-navigation’ => ‘Main Navigation’, ‘secondary-navigation’ => ‘Secondary Navigation’ ) ); …then your … Read more

404 error on dynamic stylesheet creation

The solution you’re using to get the stylesheets onto the page is a terrible method. WordPress provides the enqueue functions specifically to do what you’re trying to do. The codex page on wp_enqueue_style() explains exactly what you need to do. If you would like to add a dynamic version, there is a parameter for that.

cutsom posts 404ing

Since you’re hosted by WPEngine, I recommend contacting them directly and asking for advice. It might be that your CPT isn’t reliably making it into their cache for some reason, but they can give you a better answer than any of us. You should definitely escalate the ticket you’ve already submitted for the issue. If … Read more