This is such a unique plugin and so useful. Would the developer please update it?
Thanks!
]]>I’m not 100% certain at this point whether this is an incompatibly between WordPress 6.0.1 and Custom Error Pages 1.1 or if it’s caused by my theme or 34 other plugins…
But basically, the error pages stopped rendering (sometime in the last month – but WP has had a couple of updates since then). My theme used to be able to display the title and the content of the error pages using /content-page.php and code similar to:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_title('<h1>','</h1>') ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
but it stopped working and just rendered an empty title and content section (the theme itself continued to work as expected).
To get it to work, I had to modify the above to be something like:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php global $post;
if (($post instanceof WP_Post) && (1===preg_match("/^\d{3}-error-\d{4,}$/",$post->post_name))) :
?>
<h1><?php echo $post->post_title; ?></h1>
<?php $content=$post->post_content;
$content=apply_filters('the_content',$content);
$content = str_replace( ']]>', ']]>', $content );
echo $content; ?>
else :
<?php the_title('<h1>','</h1>') ?>
<?php the_content(); ?>
<?php endif; ?>
<?php endwhile; endif; ?>
`
Anybody else having this problem with WordPress 6.0.1?
]]>Hello,
Thank you so much for another solution by code. I found it almost touch what i need.
https://websistent.com/wordpress-custom-403-401-error-page/
My web had wp-content/theme/theme-name/404.php
==> How do i make all error 401, 403 used defaul theme error 404?
==> If available can you please create similar article all in one error to 404?
P/S: I used wp super cache and couldfare.
Thank you!
]]>After installing and activating this Custom Error Pages plugin, changing the text and saving, then adding the required lines to the htaccess page, all pages on my site went to an Error 500 page and I couldn’t get past that to deactivate the plugin. I called my hosting company (siteground) support, told the rep what had happened and he went in, found the plugin and deleted all the changes it had made. I have no idea how he did that, but my site was quickly back working again. I don’t think I’ll be trying this plugin again.
]]>Hello,
Any chance to be able to have error pages by language ? I’m using Polylang now and I can only have error pages in English.
Thanks in advance !
Didier.
]]>Hello,
It seems that your plugin will not work for 500 & 503 error pages right?
Should be a good update if you can get it in ??
The error pages are showing pingbacks. Is there a fix for this?
Seems extremely buggy with multiple pages of the same pingbacks.
]]>I normally create my own HTML 403 error page but decided to go with your plugin.
However, it doesn’t work for me. The error I get is when it’s activated (and I block my own IP address temporarily to test):
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
It doesn’t even show my own custom message at all. Any ideas? If not, don’t worry about it. I’ll just uninstall and go another way. Was trying to save myself work, not create more. LOL!
]]>Does this plugin send google a hard or soft 404 record before it redirects the user to the custom 404 page we assign to it?
]]>THis evening, I was trying to set up the Buddypress plugin, and twice when I reviewed pages, I came on “Sorry, but the page you are looking for is not here” and NOT on either of the custom pages I made, which include an aplogy to the user and a request to let me know about the error. Nope, my custom pages did not work for me so how can I think they will work for website visitors?
]]>Hi,
I am using the suffusion theme, the error pages this plugin generates contain all the comments my site has got, so I don’t know why that’s happening. Also is it ok for me to set caching to true in the edit page of the plugin, as I’m using wp super cache. Some bots I have banned get served these error pages, but that still puts a strain on my server at times, therefore caching would help? ideally it would be nice to have a more minimal error page, as my sidebar widgets being loaded by banned bots getting redirected to these error pages is unnecessary.
Thanks for your work though and any suggestions!
]]>I’m using a theme “tesseract2” by Tyler Moore and a plugin “Custom Erorr Pages”. However the plugin does not do anything as it should- I followed the plugin directions given, but still only get 1 error page (404) that is included with the theme itself. At no time am I able to generate 401 or 403 errors no matter what I put into the browser.
The following test “should” create a 401 error as the page exists but requires authentication.
test this link – instead it only generates a 404 page which is not correct.
Thanks in advance
]]>