Community @ The Turning Gate

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.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2014-08-26 08:33:03

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Custom Error Page Formatting

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

#2 2014-08-26 08:48:25

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Custom Error Page Formatting

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

#3 2014-08-26 09:03:27

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Custom Error Page Formatting

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

#4 2014-08-26 09:05:24

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Custom Error Page Formatting


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2014-08-26 09:14:11

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Custom Error Page Formatting

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

#6 2014-08-26 09:21:58

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Custom Error Page Formatting

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

#7 2014-08-26 09:24:45

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Custom Error Page Formatting

Ah, I didn't realize it had to be hosted.

Capture.JPG
Capture2.JPG


Kyle Lucy Photography
kylelucy.com

Offline

#8 2014-08-26 09:29:57

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Custom Error Page Formatting

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

#9 2014-08-26 09:35:32

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Custom Error Page Formatting

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

#10 2014-08-26 11:18:54

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Custom Error Page Formatting

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

#11 2014-08-26 19:43:07

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Custom Error Page Formatting

True enough. I'm more curious about what the cause is.


Kyle Lucy Photography
kylelucy.com

Offline

#12 2014-08-27 00:18:13

richam
Member
From: Preveza, Greece
Registered: 2013-01-06
Posts: 143
Website

Re: Custom Error Page Formatting

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.

Offline

#13 2014-08-27 10:18:37

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Custom Error Page Formatting

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

#14 2014-08-27 18:26:21

richam
Member
From: Preveza, Greece
Registered: 2013-01-06
Posts: 143
Website

Re: Custom Error Page Formatting

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.

Offline

Board footer

Powered by FluxBB