a 404 error occurs when the requested page cannot be found

learn more… | top users | synonyms (1)

0
votes
1answer
608 views

using wp_redirect to redirect to a permalink

I'm using wp_redirect to change the URL of my 404 page: function show_404($message = 'page not found'){ wp_redirect(home_url() . '/error/404?m=' . urlencode($message)); exit(); } I have ...
0
votes
1answer
307 views

Testing for a shortcode using a function. 404 page throwing PHP Notice

I'm using the following function (can't remember where I found it, but I think it was written by pippin so thanks to him) to test for a shortcode. function has_shortcode($shortcode = '') { ...
1
vote
0answers
389 views

403 thrown instead of 404 on iis [closed]

I am running a wordpress blog (3.4.1) on iis 7.5 with php manager 5.3.13. I cannot configure correctly the 404 page. I have created a 404 page which can be successfully viewed through /404.php. ...
2
votes
1answer
557 views

Multisite custom post type's single page 404

I have two sites in my multisite setup - domain.tld (site A) and domain.tld/lifestyle (site B). This is my first multisite attempt. I've made a widget that creates a custom post type "latest-news" ...
0
votes
1answer
277 views

Setup proper 301 redirect for deleted tags

I recently deleted a large number of tags (~20k-25k) from one of the categories that publishes news items. These tags were contributed by our authors and added no value to the site. As a result, ...
-1
votes
1answer
276 views

Parent pages not found with pretty permalinks

I'm building a site and for some reason all the parent pages are 404ing, only sub-level pages are displaying with pretty permalinks. If I use default permalinks, everything works fine. I've tried ...
0
votes
1answer
155 views

Permalinks not working (404) for the 'item' post type

I have searched various forums and blogs, however I could not find the isuse so far, neither a way to fix it. item does not seem to be a wordpress-reserved word. My custom post type registers just ...
1
vote
1answer
50 views

Defining a custom 404 for non-WordPress parts of site

I have a site with WordPress located in a directory under the root. The root directory contains the main files for the non-WordPress part of the site. Wordpress is included in all of these pages by ...
0
votes
1answer
90 views

All of the “more results” and navigation links lead to a 404 error

This is really starting to look like something that will never get fixed! I've tried EVERYTHING I found on the internet and it doesn't work. The navigations on the pages (more results, 1,2,3 etc.) ...
0
votes
1answer
73 views

old permalinks not found

Looking through Google Webmaster Tools, I have a lot of 404s for posts with permalink structure of /%year%/%month%/%day%/%postname%/ I have since changed permalinks to /%category%/%postname%.html I ...
0
votes
1answer
119 views

Custom taxonomy page returns 404

Ive created a custom post type and a custom taxonomy. I can create new posts and assign those taxonomies, but it returns a 404 when I go to mydomain.com/mycustomtaxonomy/termslug Here is my code: ...
1
vote
6answers
3k views

How do I go about fixing this apparently messed up upgrade?

I'm a WordPress novice trying to help a friend (who is even more of a WordPress novice) with his WordPress blog hosted on GoDaddy. It was working fine until he apparently (he doesn't fully remember) ...
0
votes
1answer
183 views

How to properly print a 404 error without redirecton? (i.e. keeping the current URL)

There are some pages on my BuddyPress install that I would like to hide by printing a 404 error. With the help of the following question: Redirect Restricted Page to 404 I came up with this code: ...
1
vote
2answers
412 views

Using /wp-admin works, using /login gives a 404. Why?

I just did a manual install and tried to login, but was unable to do so using domain.com/login. I got a 404 error. When I used domain.com/wp-admin, no issues. Did I do something wrong or forget to do ...
1
vote
1answer
333 views

Moving local wordpress page to a real server subdomain broke my permalinks?

I developed a site locally with /%postname%/ permalink structure. I did some sample posts locally and wanted to move this entire local setup to a temporary subdomain like http://review.clientsite.com. ...
0
votes
1answer
336 views

Safe to throw 404 error in request filter?

I am working on a plug-in for my personal site and I would like it have a certain permalink structure (/projects/project-type/sub-type/project). To achieve this, I am using the request filter. Inside ...
-2
votes
2answers
580 views

Moved site to 1&1 hosting, but is broken and redirecting to GoDaddy 404 [closed]

I'm actually just trying to mirror a GoDaddy site on a subdirectory of my personal 1&1 hosting. I just strait up copy-pasted the file structure, and copied the Database, using a search replace ...
1
vote
0answers
4k views

Failed to load resource: the server responded with a status of 404 (Not Found) [closed]

Using Google Chrome Console and also Firebug I get Failed to load resource error on each page. It's an undefined image and the undefined resource is always http://mysite.com/pagename/undefined I've ...
2
votes
1answer
920 views

Pagination gives 404 error

It's seems that this bug of WP never was solved by WP team. I have custom post-type, my url structure is /%category%/%postname%/ And if i click on 2nd page i will get 404 error. I tried everything i ...
0
votes
1answer
87 views

404 Error for Custom Post type

I have a function on my theme ("dancefloor" by "Gorilla Themes") that allows me to make a post in a section in my dashboard called Events (Custom post Type). If you schedule the date to anytime in ...
1
vote
0answers
88 views

Getting 404 error on my wp rewrite error

The code I'm using to rewrite urls with query vars: function add_query_vars($aVars) { $aVars[] = "city"; $aVars[] = "address"; $aVars[] = "pg"; return $aVars; } // hook add_query_vars ...
1
vote
0answers
127 views

Wordpress 404 Page displaying on a sub directory that has it's own 404 page

On a subdirectory such as http://website.com/sub/index.html that has it's own .htaccess is still for some reason showing the 404 page I have for Wordpress which is on the directory above this one. ...
0
votes
2answers
870 views

Some plugins adding full server path after url (with custom wp-content folder)

Installing Wordpress SEO (an a few others but not all plugins) gives the following console error: GET ...
0
votes
2answers
600 views

Multisite - 404 when accessing sub-sites

Setting up a multisite on a blog which root url is dev.domain.com, using subdomains. So, for example, a subsites address : site1.dev.domain.com Everything works fine as long as i stay on the main ...
0
votes
1answer
285 views

Failed to load resource:404 image

website is http://pleevi.com. when i look on the problems with the website, i get this. http://i.imgur.com/aHQky.png here is the entire list of what i get as i cannot post more than 2 hyper links :( ...
1
vote
0answers
719 views

How do I locate the exact location where this error is occurring 404 page not found

I recently installed a wordpress theme and lots of plugins. This error appears on blog post after refreshing page for second time anywhere in between the post content. Here's the link to my site: ...
3
votes
2answers
2k views

Including category-base in a post permalink results in 404

I have static front-page and separate page /news/ as the Posts page. I would like to have the single-post URLs like this: www.example.com/news/categoryname/subcategory/postname/ and for the ...
1
vote
1answer
884 views

make wordpress log errors in apache log file

I need to log 404 errors and wp-login failed attempts on wordpress site. Unfortunately it natively handles everything and doesn't write to apache log file. I tried this: 404.php <?php ...
-1
votes
1answer
817 views

Page/2 posts don't load and give 404

I load 10 posts on my home.php and I have the 'posts_nav_link()' function to acces to latest entries. But when I click on the previous entries, the link redirect me to mysite.com/page/2 and give me a ...
0
votes
1answer
2k views

The requested URL was not found on this server [closed]

I'm running wordpress locally on 127.0.0.1 on mac osx lion. All links work fine. Problem is when I add pages, and set permalinks to the page, and then associate the page with one of my template ...
1
vote
0answers
85 views

redirect deleted / drafted pages

A client asked me to unpublished a page, which I did. However, I kept it as a draft, just in case they wanted to republish at a future date. My issue is that anyone with this link will hit a 404 ...
0
votes
1answer
198 views

Pagination/404 I believe wp is getting a page ahead of itself

My site is using the Faceted Search Widget upon reaching an archive page. The widget works fine provided you stay on the initial archive page, but if I try using it on the second page of the archive ...
0
votes
1answer
762 views

either single-{custom}.php 404's OR /taxonomy/ 404's - custom post type and taxonomy permalinks

I've been playing around with custom post types and taxonomies and banging my head off walls on numerous occasions now - I believe I've read every forum on the internet on how to solve various issues ...
0
votes
1answer
978 views

Issue with front page navigation after upgrading to 3.4

I upgraded to WordPress 3.4 and am having an issues with showing a different amount of post on the first page versus the rest. The first page is still showing 5 posts but when I go to /page/2/ I'm ...
1
vote
1answer
467 views

All pages after level 1 showing 404 after WordPress migration plugin - how to fix?

I am in the process of moving my blog away from GoDaddy (yey!) to HostGator. I used the migration plugin on GoDaddy tat created the gz archive of the database, and I copied all my files over to the ...
0
votes
2answers
490 views

styles/default.css in markup, where does it come from? [closed]

I have the following line under the head tag but I don't have the file styles/default.css in my theme and consequently get a loading error in browsers. I'd like to eliminate this line but I don't know ...
0
votes
1answer
86 views

Permalinks break every day

I have critical problem! My Wordpress Blog has the permalink structure /%category%/%postname%/. The problem is that very often the permalinks break so I get a lot of 404-Errors. I can fix it ...
0
votes
1answer
141 views

404 when Previewing an unsaved draft

I just started at a new job and I'm being thrown into some pretty heavy WordPress bugs on their heavily modified system. Basically what's going on is that they have their own CMS that handles most of ...
2
votes
1answer
66 views

Putting footer content in a “page” - Doing it wrong?

So, in my shortish WordPress development career, I've gotten in the habit of creating a "page" for the content in a footer, and adding different fields with the wpalchemy class. Everything with this ...
0
votes
1answer
143 views

$_POST['message'] gives a 404 [duplicate]

I am using Wordpress 3.3.1 and building a small API to be able to send an SMS to insert data. <?php /** * Template Name: API: Response * */ print_r('hello'); ?> The following $_POST ...
0
votes
1answer
162 views

How can i maintain permalink structure and avoid a 404 error when loading external content?

I created a page called Catalog and also a template called page-catalog.php. The url looks like this now: sitename.com/catalog So far so good, however i use some custom php stuff to list products ...
0
votes
1answer
501 views

Sub Domain's Pages return 404

Need some help, I created these websites http://mccsedu.org http://parents.mccsedu.org http://faculty.mccsedu.org http://students.mccsedu.org The main site is working fine, but the pages of the ...
0
votes
1answer
239 views

Bizarre Permalinks Issue: 404 Errors Everywhere

First and foremost, this is definitely a duplicate of the age old question of "my Wordpress permalinks are generating 404 errors", but in a way it's different because no solutions I've tried have ...
2
votes
1answer
1k views

Child pages on hierarchical Custom Post Types 404s

I've been working with Custom Post Types lately and haven't had any major problems. This time I'm trying something new. I want to create a CPT which basically works like Pages, with page hierarchy. ...
0
votes
1answer
302 views

Page not found when trying to link to files in child theme directory

I'm trying to create a child theme based on Toolbox 1.4 by Automattic. I have my scripts file saved as child_theme/js/scripts.js on my server and I enqueue it by using wp_enqueue_script( 'scripts', ...
4
votes
2answers
5k views

Display search results within the same page

Problem I have a page on my site where I need to do additional searching within that page. I am using the default way of WordPress searching with <?php get_search_form(); ?> for my main header ...
0
votes
2answers
636 views

Is the 404 page the same as “well this is embarrasing” page?

I'm not sure if wordpress 3 upgraded itself from displaying 404 pages to having a "well, this is embarrassing" text in pages that aren't there, but I would like to know whether the tutorials that say ...
4
votes
3answers
650 views

Hierachical Custom post types permalinks not working

Been looking for someone with this same problem for hours now so I decided to post my own thread. I have a hierachical custom post type called contact-information. Using this I have parentpages ...
0
votes
1answer
597 views

wp-admin redirects to 404

Yesterday I logged onto my site and found that when I log in as an admin I get a 404 error as seen below: I have done a bit of research and uploaded a backup, modified my .htaccess file to below: ...
1
vote
1answer
196 views

cutsom posts 404ing

I can't stop my custom post types from sporadically 404ing. It doesn't always happen and I can't predictably replicate the problem - as in sometimes it happens, sometimes it doesn't. However, once I ...