Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
I implemented custom error pages using .htaccess, and they appear to have some formatting errors. See:
http://kylelucy.com/fragments/ (for 403)
http://kylelucy.com/asdfasdf/ (for 404)
The text is way up in the top left corner. Any ideas on what is going on?
Thanks, Kyle
Kyle Lucy Photography
kylelucy.com
Offline
An update: it isn't every time. Sometimes it appears correctly. I can't find a pattern for when it works and when it doesn't.
Kyle Lucy Photography
kylelucy.com
Offline
What does correctly look like? What are you expecting to see?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
also, this might help: http://theturninggate.net/2013/05/this- … oking-for/
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I can get the correct page by going to the actual error page: eg. kylelucy.com/error/403/index.php
Also, I have screenshots, but, and I'm almost embarrassed to ask, how do I add them to a post?
Kyle Lucy Photography
kylelucy.com
Offline
see the little image icon above the message area? It's right next to the color wheel?
Put your screen shot on line and paste the url between the img tags you'll get when you click that little icon
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Ah, I didn't realize it had to be hosted.
Kyle Lucy Photography
kylelucy.com
Offline
looks to me like the block has no margin or padding
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
That's what it looks like to me as well. But it does. Or, I should say, it was exported with a 24 px top margin, and 24 px left/right padding.
Kyle Lucy Photography
kylelucy.com
Offline
well, with any luck no one will ever see those pages anyway....
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
True enough. I'm more curious about what the cause is.
Kyle Lucy Photography
kylelucy.com
Offline
Kyle, FWIW, I set it up the lazy, simple way within galleries and haven't had a problem at all. Used publisher to install a Stage still image album called "error-trap" within galleries. (I tried to use just "error" but had some problems with that name.) Anyway, I put the following into the .htaccess file:
ErrorDocument 400 http://www.michaelrichardsphotography.c … rror-trap/
ErrorDocument 401 http://www.michaelrichardsphotography.c … rror-trap/
ErrorDocument 403 http://www.michaelrichardsphotography.c … rror-trap/
ErrorDocument 404 http://www.michaelrichardsphotography.c … rror-trap/
ErrorDocument 500 http://www.michaelrichardsphotography.c … rror-trap/
The page copy is:
"Oops, you made a wrong turn somewhere. [**Get back on the main road**](/)".
You can try it out if you want: www.michaelrichardsphotography.com/garbage
I did a similar setup for deleted albums and construction. For deleted, used the album name "my-deleted" as I had some problems with just "deleted". When I delete an album, I set up a folder with the name of the deleted album, and then add a small html re-direct routine called index.html, with the following:
<html>
<head>
<title>Redirect</title>
<script type="text/javascript">
<!--
window.location = "/galleries/my-deleted/"
//-->
</script>
</head>
</html>
If you want to try it out: www.michaelrichardsphotography.com/galleries/personal/stanley.
Also set up a "construction" album: www.michaelrichardsphotography.com/galleries/construction/. A simple html redirect with the name "index.html", added to an album under construction will execute the redirect before any album actions happen. I use this when an album or album set is undergoing extensive re-work. Note that the CE4 publisher option to hide albums or sets from Autoindex came in handy for all 3 albums.
Mike Richards
michaelrichardsphotography.com
Offline
Thanks! I didn't really consider using Publisher to manage the pages. I just set that up and it fixed the formatting issues. I'm not sure what the cause was with the original pages, but it is gone now.
Kyle Lucy Photography
kylelucy.com
Offline
Kyle, In the meantime, I set up a "traps" album set, and moved the error, construction, and deleted traps inside the set. Also separated the errors by number. If you want to check further:
http://www.michaelrichardsphotography.c … -trap-400/
http://www.michaelrichardsphotography.c … -trap-401/
http://www.michaelrichardsphotography.c … -trap-403/
http://www.michaelrichardsphotography.c … -trap-404/
http://www.michaelrichardsphotography.c … -trap-500/
http://www.michaelrichardsphotography.c … struction/
http://www.michaelrichardsphotography.c … y-deleted/
Changed the .htaccess file accordingly, also with the index.html redirect files. Sorry confuse things with more changes, but due to a back problem, my doctor prescribed home rest for a few weeks. So I have too much time at the computer, and fiddle too much with the website. It has become a bit of a hobby horse.
Mike Richards
michaelrichardsphotography.com
Offline
Pages: 1