Questions tagged [404-error]

a 404 error occurs when the requested page cannot be found

Filter by
Sorted by
Tagged with
0 votes
1 answer
155 views

404 not working, going to homepage; how to fix?

Whenever I call a non-existent page, say http://www.example.com/foobar/, it should invoke the 404.php theme template file. In my case, however, the site redirects to the homepage, / I'm not sure ...
Robert Andrews's user avatar
0 votes
3 answers
543 views

Site Address (URL) - causing error 404

I have the following situation which I tried to solve by using the website and forum but unfortunately no success so far. I am working on a new site (old still-now online) but when changing the Site ...
Stefan's user avatar
  • 13
0 votes
0 answers
71 views

Show custom post status when logged out

Background: I have a few different custom post status on my installation. We use them for a workflow. Lets just say for example we have: Draft (built in) ForClient (custom) Published (built in) Now ...
Justin J James's user avatar
0 votes
0 answers
886 views

Loading ACF Field content on a 404.php page

I am trying to load a ACF Field from a page to my 404.php but i cannot get it to work. get_post_field works fine but get_field does not <?php /** * The template for displaying 404 pages (not ...
Evolis's user avatar
  • 1
0 votes
1 answer
395 views

Custom taxonomy template list not working (404)

I have created a custom post type 'item': function mywp_add_item_post() { $labels = array( 'name' => 'Items', 'singular_name' => 'Item', 'add_new' => 'Add New ...
sariDon's user avatar
  • 265
0 votes
1 answer
64 views

404 error when calling php

<html> <body> ***<form action="abc.php" method="post"> First Name: <input type="text" name="firstname"><br> ...
Dahere's user avatar
  • 1
4 votes
1 answer
16k views

WP Rest API not working

WP 5.2.4 /wp-json/wp/v2/ Gives 404 error. I updated permalinks,have a working .htaccess on Apache and not using "plain permalinks" and still this thing don't work. My Apache and its configuration ...
Daniel W.'s user avatar
  • 145
0 votes
2 answers
34 views

HTTP status 404 (error) when trying to log in

I've changed the http:// host to https://, then accidentally saved it. Now I can't log in to the admin panel having '404 Not Found' page. How can I fix this?
kristine's user avatar
1 vote
0 answers
1k views

Some PDF files get Forbidden Access and other open normally on the same directory subsites

I have a WordPress multi-site with 4 subdomains. All PDFs in the main domain site work fine while on subdomain I get Forbidden access for certain PDFs. For instance when I open: http://example.com/...
Koa's user avatar
  • 11
0 votes
1 answer
119 views

wp-admin send 404 error

I installed the plugin "yoast seo" and now when I enter and exit, they give me an error. And I can only come through /wp-login.php. how to fix ? please help
kaizer's user avatar
  • 1
0 votes
2 answers
89 views

I have a 404 error on all my pages! What do I do?

I have changed default permalinks into custom structure, and I got 404 error across all of my site.
PetarM's user avatar
  • 3
3 votes
1 answer
23k views

REST API: No route was found matching the URL and request method

I'm having issues adding a custom REST API route to Wordpress. Using my own plugin, i've registered the route as followed: add_action( 'rest_api_init', function() { register_rest_route( $namespace, ...
BroodjeBE's user avatar
1 vote
1 answer
150 views

Missing Page, But Still Exists In Preview

A page went down and I get a "Page Not Found" error. I tried looking at all existing pages and the page is simply not there. It isn't in trash, either. However, when I created another page and hit "...
SirenKing's user avatar
  • 113
0 votes
2 answers
27 views

Error 404 Display on otherlinks apart from homepage

i transfered wp hosting to godaddy only the homepage displays i get 404 error when click on other links.. (The domain name is hosted on namecheap tho and i changed name server from the former hosting ...
Steven Gee's user avatar
0 votes
2 answers
502 views

Giving specific category posts its own permalink structure returns 404

i am trying to give a specific category posts it's own permalink. Followed the steps from this topic (Give specific category its own permalink structure) but the posts are giving a 404 error. Cleared ...
Praveen Kumar's user avatar
0 votes
0 answers
33 views

Custom taxonomy named 'tag' return 404 page

I registered a custom taxonomy named 'tag', code below: add_action('init', 'reg_custom_tag'); function reg_custom_tag() { register_taxonomy('tag', array('my_custom_post_type'), array( '...
CNVSO's user avatar
  • 1
0 votes
0 answers
58 views

Problem with a wordpress admin system. and website

When i use wordpress i got random connection problem, and website is off for around 5 to 10 min. Wen i check error logs i got somethink like this: Any help?
Jakub Krzyżanowski's user avatar
0 votes
0 answers
23 views

Custom post shows 404 after theme change

i have a custom post created using a plugin. But randomly say if i change the theme the post shows a 404. I tried flush_rewrite_rules() and resaving the permalink, theme change but still it shows 404. ...
user avatar
0 votes
1 answer
45 views

How can I get custom post types to recognize pretty permalink variables?

I'm using PODS to create a custom post type called "automobile" on my site. This results in a permalink structure that looks like this: /automobile/automobile-page I want to be able to send ...
Bill's user avatar
  • 1
0 votes
1 answer
212 views

How to customize file path for 404 redirection in php?

I made a plugin with a custom post type postcard. Most of postcards are private. I would like to redirect the logged out user in a specific php file inside my plugin instead of the 404.php or achive....
J.BizMai's user avatar
  • 850
0 votes
1 answer
158 views

Custom rewrite to fetch feed data

I am trying to fetch and display data from a feed when the user goes to a specific url like /items/32 where the 32 is the actual id of the feed item that should be fetched and displayed. Notice that I ...
Cyclonecode's user avatar
  • 1,154
0 votes
1 answer
134 views

Expired event redirect to parent category

I build a website for a client of mine, that is going to continuously host events for his area. One of the requirements he has is to expire and remove from the database the events already completed. ...
KodeFor.Me's user avatar
0 votes
0 answers
21 views

404 Not Found Error showing when I run wordpress

I setup all things properly means I did all things that need wordpress running with LEMP stack on Ngnix. But when I load localhost/wordpress for test purpose it is giving 404 Error code. Please ...
Ashraf Ullah's user avatar
0 votes
0 answers
2k views

Pages in wp-admin is not found 404

I moved my website from localhost to web server. The website works fine. When I explore any page the urls on the website(front-end) are working fine so permalinks are not a problem. Issue is when I ...
Moiz Nadeem's user avatar
1 vote
0 answers
229 views

Wordpress as backend for SPA - problem of 404 page for custom routing

I'm going to use wordpress as backend rest api and vue.js (it doesn't matter what framework) as frontend part. I have some custom route on frontend side, e.g. "/custom". Actually it works on my ...
lenden's user avatar
  • 113
3 votes
1 answer
131 views

How can I force a "404 Not Found" error

I have a couple of pages that are populated with data from non-Wordpress tables in my database. https://pageURL/?asi_id=12345 causes the DB-lookup to get the correct data. If someone uses the wrong ...
David Snow's user avatar
0 votes
0 answers
204 views

Scripts/styles not loading on cloned WP Site when logged in

I've cloned a WordPress site using installatron (on cPanel). The front-end loads fine when not logged in, but when I am logged in, scripts & styles aren't loading and changes I make to plugin ...
Nexus6's user avatar
  • 23
1 vote
2 answers
412 views

Exclude JS file from 404 error page

I have a custom tracking system in place which works with an include of a .js file in the footer of each page. Unfortunately some high traffic sites are including images from my site which are ...
Justin's user avatar
  • 111
1 vote
1 answer
442 views

How do I redirect all 404 error url to Subcategory url

I have a b blog of over 200k+ post and I moved all post from a specific category to a subcategory, I have also deleted the post from the my main site, so all the post of that category have been moved ...
XATA's user avatar
  • 67
0 votes
2 answers
964 views

Page editing in backend redirecting to 404 page not found with url /post.php

Today I migrated a WordPress site from another server to a new server, there is a new domain and new host, so I follow the manual way to upload my site. That was, I downloaded files and upload it on ...
Sahan Pasindu Nirmal's user avatar
0 votes
0 answers
690 views

Enabling hierarchical in a Custom Post Type gives error 404

For a project I have a custom post type called Place. This custom post type can have a page as a parent, and that page can have other parent and so on. Place is always at the end of the sequence. At ...
Bruno Faúndez's user avatar
1 vote
1 answer
3k views

oEmbed 404 errors when trying to use embed block

When trying to add a Youtube Embed Block in the Gutenberg editor, I'm seeing these 404 errors in the browser console: GET https://example.com/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube....
protohominid's user avatar
0 votes
0 answers
34 views

Another site within WordPress page, disabling 404 error for pages that exist but outside of WP system

TLDR; Is there a way to disable WordPress's 404 feature for certain pages? On one domain, I am running a WordPress site and, under the same domain, I am also trying to run another site parallel to ...
Brad Ahrens's user avatar
2 votes
1 answer
49 views

Why specific file directory fails to redirect but its parent folder succeeds?

I activated multisite using subdirectories on my old WordPress site, and I created a new site (say my-example.com/new-site/). I found links such as my-example.com/new-site/wp-content/mu-plugins/css/ ...
Guoyang Qin's user avatar
1 vote
1 answer
167 views

Error 404 using wpml plugin

I have a multi site in WordPress. I want to use the wpml plugin for the root site. The problem I encounter is that when I add a new language to the website, it does not recognize the second language ...
Miss Tahereh HZ's user avatar
1 vote
0 answers
212 views

Page preview is shown, updating page gives 404 error

I can add new pages and preview them, but once I upload them I get a 404 "Not found" error. I thought it's a problem with my permalinks, so I followed some tutorials to fix this like http://www....
Rin's user avatar
  • 11
0 votes
2 answers
983 views

404 on pretty permalinks when serving via HTTPS

I deployed my wordpress site in Google Cloud Compute Engine. To enable SSL I followed the the steps outlined here https://www.onepagezen.com/free-ssl-certificate-wordpress-google-cloud-click-to-deploy ...
DarkLeafyGreen's user avatar
0 votes
1 answer
147 views

404 error on published page with specific permalink

I am experiencing a strange error with my Wordpress install. I've got a dozen of pages, %postname% permalink structure, everything works fine. For one of the published pages, I reverted it to draft ...
Denis's user avatar
  • 1
0 votes
1 answer
492 views

Wordpress Inner pages giving 404 Error after shifted to new server

When we made site at our server end it was working fine which was linux server.after hosting this site to AWS then it is giving me error for inner pages and if we change something it is not affecting ...
Sagar Shendarkar's user avatar
1 vote
1 answer
878 views

removed index.php now all pages 404

I added this code to my .htaccess file to get rid of index.php from the website urls, but now all the pages 404 (the hyperlinks are mapped to the correct url) # BEGIN WordPress <IfModule ...
blau's user avatar
  • 13
0 votes
1 answer
54 views

Since moving HTTPS using cloudflare, the admin and login pages no longer work

Recently routed our site through cloudflare as part of moving to HTTPS. All the pages work apart from the administrative pages for which we get a 404 error. I don't really know what is causing the ...
Arthur Le Calvez's user avatar
-1 votes
1 answer
69 views

Please Help me with Archive 404 Pagination

When I click on page 2, there is a 404 page. How could i fix it ? This is my pagination on archive.php <?php global $query; $big = 999999999; // need an unlikely integer echo paginate_links( ...
WDCreativ's user avatar
1 vote
2 answers
5k views

Why am I sometimes getting a 404 error when I try to update a page with Elementor?

When updating a page with Elementor, we're occasionally receiving a 404 error. Most of the time we can update the page just fine, but when we try to add a <script> tag or a button with a custom ...
Pikamander2's user avatar
0 votes
1 answer
57 views

Pages counts are showing in WordPress backend but pages shows 404

I'm using WP latest version and suddenly I saw today all of my pages are shows 404. It's working fine till yesterday. Here are screenshots that what happens to me. What I have done : All plugins are ...
Parth Shah's user avatar
1 vote
2 answers
47 views

Should the actual /category/ directory be 404? Is that normal WP behaviour

I'm not sure if this is 'normal' but on my WP install the actual directory for 'category' throws a 404 error. So, for example, if I had a category called 'apples' then every post or page associated ...
Henry's user avatar
  • 983
1 vote
1 answer
3k views

<!doctype html> : Failed to load resource

I am using the code below: <!doctype html> <html lang="<?php language_attributes(); ?>" dir="ltr"> <head> <meta charset="<?php bloginfo('charset') ?>"> &...
Mostafa Norzade's user avatar
0 votes
1 answer
742 views

Custom post type permalink returns 404 when set to private

I have a custom post type that is configured to use a permalink structure prepended with the post type name. When using get_permalink(), the URL that is returned does not include the post type name. ...
Jonathan Holvey's user avatar
0 votes
1 answer
905 views

404s after changing site url in settings

I was working on my Wordpress site (hosted on DigitalOcean) using the ip address as the website address. I decided to change the address to my domain name so I went into settings and updated the ...
oli's user avatar
  • 1
0 votes
0 answers
1k views

Display a custom 404 page without a redirect

In a plugin I want to display a specific page without redirecting (and thus without changing the URL) like the plugin https://wordpress.org/plugins/404page/ does. I can capture 404s and redirect them, ...
AaronJ's user avatar
  • 101
0 votes
0 answers
43 views

Standard Page Child of CPT Not Found (404)

I am about to lose my mind figuring this out. I have a custom post type called "portal" and posts of that type can be the parent of a standard page. To accomplish that I've written code that adds the ...
John Dawson's user avatar

1 2 3
4
5
19