View Full Version : Administrative and Maintenance Tools - vB Error Pages 1.0
Spikeman
11-23-2006, 10:00 PM
This was requested here https://vborg.vbsupport.ru/showthread.php?t=131172
What Hack does:-
When a user receives an error message they will be served one of the appropriate error pages within your vBulletin site.
Why?
More often when a user hits an error message on a site they will hit the back button and leave, this way the user is already on your site and can navigate into your site.
Creates pages for 400, 401, 403, 404 & 500 error messages
Installation:-
Important your server must be able to support .htaccess file.
1. Unzip
2. Upload the contents of forum folder to your forum folder.
2. Add the contents of text file to your .htaccess file at the root of the server, you may need to edit and or rename the paths to suit your setup.
3. Import the product file.
4. You are done.
v1.0 - First Release
If you use it please install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=132337) it
Spikeman
11-24-2006, 05:52 AM
Reserved for additional content
This is an initial release more will be added to this including more error codes and more infomation on diplaying page.
AsianKid
11-24-2006, 06:00 AM
First Install :)
projectego
11-24-2006, 07:18 AM
Just what I was looking for... Thank you!
redlabour
11-24-2006, 09:35 AM
Great thx !
But please use phrasing at next Update and/or a Way to change Messages via AdminCP.
MaestroX
11-24-2006, 12:11 PM
This is great! Thanks for sharing
redlabour
11-24-2006, 01:35 PM
Another Suggestion :
1. WOL Locations are missing
2. Phrases and/or customazible Messages through AdminCP Menu.
COBRAws
11-24-2006, 01:35 PM
Great thx !
But please use phrasing at next Update and/or a Way to change Messages via AdminCP.
That would be great.
Spikeman
11-24-2006, 02:10 PM
Another Suggestion :
1. WOL Locations are missing
2. Phrases and/or customazible Messages through AdminCP Menu.
WOL is in next update
Phrases will also be added
bashy
11-24-2006, 03:18 PM
Hi
Could this be done for the database errors?
Gizmo5h1t3
11-24-2006, 03:29 PM
am i missing something, or are the 2 demo pages showing errorsthat are unconnected to this hacks generated pages???
BWAHAHAHAHHA....how ironic is THAT?
akanevsky
11-24-2006, 03:30 PM
This Account Has Exceeded Its CPU Quota
lol. What a lame error message. And it's BlueHost once again (not the hack author's fault). That provider should be shut down.
Spikeman,
very nice hack. It would be even nicer if it used standard_error instead of separate pages.
TheBlackPoet
11-24-2006, 03:39 PM
lol. What a lame error message. And it's BlueHost once again (not the hack author's fault). That provider should be shut down.
Spikeman,
very nice hack. It would be even nicer if it used standard_error instead of separate pages.
i use Bluehost.com also... and lately, i have been getting that same lame msg.. i figured out it was my shoutbox that was causing the error.. apparently, bluehost servers cant handle the load..and crashes... this was making my site look so bad... that i took the shoutbox out..... so far... no more crashes
oh.... and this hack.... is greatly appreciated.... it makes my site more uniform....now, even my errors are seamless
Spikeman
11-24-2006, 03:40 PM
lol. What a lame error message. And it's BlueHost once again (not the hack author's fault). That provider should be shut down.Tell me about it, I am trying to get it all moved now, how pathetic, 14 users and quota error, does not help that i got a load of script kiddies trying to exploit flashchat ;) but still bluehost are history with me!
Spikeman,
very nice hack. It would be even nicer if it used standard_error instead of separate pages. There are alot of changes been made for next release that will be one.
Spikeman
11-24-2006, 03:42 PM
i use Bluehost.com also... and lately, i have been getting that same lame msg.. i figured out it was my shoutbox that was causing the error.. apparently, bluehost servers cant handle the load..and crashes... this was making my site look so bad... that i took the shoutbox out..... so far... no more crashesI have had the quota errors all week, never had one before, but enough is enough.
oh.... and this hack.... is greatly appreciated.... it makes my site more uniform....now, even my errors are seamless Glad you like it
Spikeman
11-24-2006, 03:46 PM
Just what I was looking for... Thank you!
This is great! Thanks for sharing
Glad you like it, but hit the install guys this will be updated soon ;)
redlabour
11-24-2006, 04:27 PM
I am glad that you will make the Changes. Thx ....
redlabour
11-24-2006, 05:24 PM
I am glad that you will make the Changes. Thx ....
Another Suggestion - is it possible to give a 301 back at 404 Errors to forum/index.php ?
Best was if this was changeable at AdminCP to forum/cmps_index.php for the ones that use vBadvanced.
Spikeman
11-24-2006, 05:43 PM
Another Suggestion - is it possible to give a 301 back at 404 Errors to forum/index.php ?well, 301=moved permanently, auto redirect? I will look into that, i checked w3.org whilst I was writing the hack, and opted to leave out alot of codes for the reason of doing more research for compliance. w3.org. If 301 is received by a request other than GET or HEAD, the user agent MUST NOT automatically redirect unless confirmed by user, since this may change the conditions which request was issued. That could bring in a 410(gone) if the server knows, through some internal configurable script that it has permantly unavailable and has no forwarding address...... and it goes on and on as you may know.... there are a few things to look into, but it will take some time I believe. I will get wol and phrases done first and then take it from there.
Best was if this was changeable at AdminCP to forum/cmps_index.php for the ones that use vBadvanced. Yes I think all of these will need to go through AdminCp so they can be turned on and off or as you say redirect for the vBa users on cmps_index.php
redlabour
11-24-2006, 05:46 PM
well, 301=moved permanently, auto redirect? I will look into that, i checked w3.org whilst I was writing the hack, and opted to leave out alot of codes for the reason of doing more research for compliance. That could bring in a 410(gone) if the server knows, through some internal configurable script that it has permantly unavailable and has no forwarding address...... and it goes on and on as you may know.... there are a few things to look into, but it will take some time I believe. I will get wol and phrases done first and then take it from there.
Yes I think all of these will need to go through AdminCp so they can be turned on and off or as you say redirect for the vBa users on cmps_index.php
Great .... ;)
Genjuro-Sensei
11-24-2006, 05:58 PM
How can i use this on host that not allow htaccess files ?
Thx !
Spikeman
11-24-2006, 06:03 PM
How can i use this on host that not allow htaccess files ?
Thx !
My apologies, I did forget to put in the header that you need .htaccess file. It is not posssible to run this hack without.
I presume you are on windows?
Snake
11-24-2006, 06:09 PM
Thanks for this! :)
dilbert
11-24-2006, 06:18 PM
I presume you are on windows?
Does this mean Windows folks can't run this mod?
Spikeman
11-24-2006, 06:18 PM
Another Suggestion - is it possible to give a 301 back at 404 Errors to forum/index.php ? Thinking about this, it will need some db work for storage of urls on the redirect, input through acp for example.
redirect 301 /product.php to http://domain.com/productlist.php
redirect 301 /download.php to http://domain.com/downloadhacks.php
is this more what you had in mind?
Spikeman
11-24-2006, 06:33 PM
Does this mean Windows folks can't run this mod?
You can not run files on windows that start with a . so unfortunatly not.
However, I do know there is alot of talk about windows, apache and .htaccess on the net, but this is mainly down to password use. Maybe you can find a solution. try here this is a web host writing about windows and apache with .htaccess http://customersupport.websiteproviders.net/tutorials/htaccess/
Spikeman
11-24-2006, 06:39 PM
Hi
Could this be done for the database errors?
vB already has database error reporting built in reported by email as you probably now, generally when you get a db error the only place you are going is refresh or back.:)
voteforbird
11-24-2006, 07:08 PM
Hm? can't get it to work right. It shows properly for my root directory, ex:
http://www.volconvo.com/asdf
?but my forums directory still shows a plain "Page not found" message, ex:
http://www.volconvo.com/forums/asdf
Why is this?
bashy
11-24-2006, 07:29 PM
Thats a shame, the standard db error page is pretty pants, would be better if it showed the error on a page inside the forum :(
vB already has database error reporting built in reported by email as you probably now, generally when you get a db error the only place you are going is refresh or back.:)
redlabour
11-24-2006, 08:02 PM
Thinking about this, it will need some db work for storage of urls on the redirect, input through acp for example.
redirect 301 /product.php to http://domain.com/productlist.php
redirect 301 /download.php to http://domain.com/downloadhacks.php
is this more what you had in mind?
Yes ! :)
Spikeman
11-24-2006, 08:08 PM
Hm? can't get it to work right. It shows properly for my root directory, ex:
http://www.volconvo.com/asdf
?but my forums directory still shows a plain "Page not found" message, ex:
http://www.volconvo.com/forums/asdf
Why is this? Looking at you forum, i see that you are using vbseo, which rewrites the urls from php to html, is this interfering with the calling of the 404.php? Never used or looked at vbseo so i do not know if there are any settings to be changed? There is no reason I can see why this is not working as it works on you index page.
Yorixz
11-25-2006, 08:59 AM
You can slap me if I'm getting this wrong, but when I enter some random url on your website the error returned is simply the default 'Not Found
The requested URL /forums/billie.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. ' is served to me, instead of a nice-looking page, hopefully you can help me understand that ;)
Spikeman
11-25-2006, 09:20 AM
You can slap me if I'm getting this wrong, but when I enter some random url on your website the error returned is simply the default 'Not Found
The requested URL /forums/billie.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. ' is served to me, instead of a nice-looking page, hopefully you can help me understand that ;) No this was all me, I have just spent the last 10hours moving servers from that joke company called bluehost and the only thing i forgot to do was put the .htaccess back in place :) but all is good now.
Yorixz
11-25-2006, 09:25 AM
No this was all me, I have just spent the last 10hours moving servers from that joke company called bluehost and the only thing i forgot to do was put the .htaccess back in place :) but all is good now.
Allright, thanks. This indeed looks a lot better than the default errors, installed ;)
dcasux
11-27-2006, 03:54 AM
You can not run files on windows that start with a . so unfortunatly not.
However, I do know there is alot of talk about windows, apache and .htaccess on the net, but this is mainly down to password use. Maybe you can find a solution. try here this is a web host writing about windows and apache with .htaccess http://customersupport.websiteproviders.net/tutorials/htaccess/
Hey Spikeman, you rawk!
Unfortunately, I'm in a WinBlows environment, so, alas, I cannot use this. How I wish I could!
Thanks for the great work! Keep it up!
redlabour
11-28-2006, 08:45 PM
Looking at you forum, i see that you are using vbseo, which rewrites the urls from php to html, is this interfering with the calling of the 404.php? Never used or looked at vbseo so i do not know if there are any settings to be changed? There is no reason I can see why this is not working as it works on you index page.
Works with vBSEO !
hoangminh
11-29-2006, 02:31 AM
Try: http://www.internetwatchers.co.uk/forums/test/billie.php and you'll find all link is incorrect.
This will helpfull for any resource that caused error under forum folder only, sub-folder will make it trouble
4yBak
11-30-2006, 06:06 PM
Try: http://www.internetwatchers.co.uk/forums/test/billie.php and you'll find all link is incorrect.
This will helpfull for any resource that caused error under forum folder only, sub-folder will make it trouble
and see next:
Warning: main(./global.php): failed to open stream: No such file or directory in /home/interne/public_html/forums/errorpages/404.php on line 26
Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/interne/public_html/forums/errorpages/404.php on line 26
Spikeman
12-01-2006, 12:48 AM
This error was generated as I installed vBSEO and it appears that it takes over the 404 errors, so i need to look in to that ;)
redlabour
12-01-2006, 04:40 AM
This error was generated as I installed vBSEO and it appears that it takes over the 404 errors, so i need to look in to that ;)
You have only to enter your 404.php Path to vbseo.cp at the 404 Managesection. :)
Spikeman
12-01-2006, 08:28 AM
You have only to enter your 404.php Path to vbseo.cp at the 404 Managesection. :)
Yeah, thats what I thought, but it would not work, thats is where the errors came from, had to change the 404.php script and all is good again, will include that for next release.
da420
12-01-2006, 04:03 PM
Im using Zoints and it works fine for me. :)
MaestroX
12-06-2006, 09:08 PM
A problem, when testing, i got an error 404 and my CSS didn't load. ?
Please help :)
4yBak
12-07-2006, 02:51 PM
Bug:
1) try go to example link http://yuorboardname/bla/bla.php (directory BLA not exist)
2) so, if this directory not exist we can see vbulletin page with error 404 that did this hack, BUT:
- we also lost all style graphics
- we also has broken links on forum, example:
a) Contact Us - http://yourboardname/bla/sendmessage.php
b) Archive - http://yourboardname/bla/archive/index.php
c) FAQ - http://yourboardname/bla/faq.php
So, as you can see we has broken style and links. Hope, you fix it.
Thanks for hack!
Slash_
12-08-2006, 05:40 AM
installed
thanks man!
adonfun
12-27-2006, 11:11 PM
Clicked install.
I'll be waiting for the updated version before actually installing it :)
SaN-DeeP
12-27-2006, 11:20 PM
thank you for this addon :)
maxicep
12-29-2006, 11:55 AM
thanks installed
One other person has posted this problem so at least I know it's not just me :P
I recently migrated to vB from another system. Since vB has new URLs from the old system visitors are being taken to this error pages mod.
The problem is that since the bad page call is in a different directory than vB folder the css is not called correctly.
As an example try these:
1: http://www.politicalforums.net/oldforum/index.php
2: http://www.politicalforums.net/forums/badpage.php
Link 1 is similar to what people going to the old forums get. All graphics are missing.
Link 2 is the error page under the current vB folder where it can find the css data to generate the graphics.
I've trying to figure out a way around this but haven't had any luck. The only thing left I can think of is to put the css info directly into the error.php file but this would make it a real pain to change every time I update the forums.
Thanks for any help with this.
Brew
masterme
01-06-2007, 02:01 PM
Installed and very nice. Always a better look and a better service towards visitors this way!
Smoothie
01-06-2007, 02:39 PM
Where are the phrases?
Smoothie
01-06-2007, 07:39 PM
One other person has posted this problem so at least I know it's not just me :P
I recently migrated to vB from another system. Since vB has new URLs from the old system visitors are being taken to this error pages mod.
The problem is that since the bad page call is in a different directory than vB folder the css is not called correctly.
As an example try these:
1: http://www.politicalforums.net/oldforum/index.php
2: http://www.politicalforums.net/forums/badpage.php
Link 1 is similar to what people going to the old forums get. All graphics are missing.
Link 2 is the error page under the current vB folder where it can find the css data to generate the graphics.
I've trying to figure out a way around this but haven't had any luck. The only thing left I can think of is to put the css info directly into the error.php file but this would make it a real pain to change every time I update the forums.
Thanks for any help with this.
Brewsame here, this mod is worthless to me now. Uninstalled
same here, this mod is worthless to me now. Uninstalled
I was able to get it mostly working but I had to hard-code the image paths and links.
So long as I don't update the skin anytime soon I'll be ok.
:classic:
Smoothie
01-07-2007, 02:28 PM
I was able to get it mostly working but I had to hard-code the image paths and links.
So long as I don't update the skin anytime soon I'll be ok.
:classic:I hear that. Not worth the time or effort for me to do that. Thanks for the heads up though.....
This has actually been working very well. So it's no knock on the author.
It just has this one issue as far as I can tell.
Fix the skin problem and it'll be top notch.
In the mean time you just have three templates to change the links to the images and forums to. It's really not at all difficult.
vulture
01-09-2007, 08:40 PM
I like this hack but it doesn't work properly (even on the authors forum)
This gives the correct error page: http://www.internetwatchers.co.uk/forums/blah
This totally screws up: http://www.internetwatchers.co.uk/blah
On my site if I do the later example the forums/ parts just disappears in any hyperlink. Is there a fix for this?
4yBak
01-15-2007, 01:45 PM
how about fixing this (https://vborg.vbsupport.ru/showpost.php?p=1133889&postcount=45) bug?
redlabour
01-17-2007, 01:36 PM
Still waiting for the WOL Fix. Everything else works perfect.
jgommel
01-25-2007, 12:49 PM
I'm not sure if this will help anyone or not, but I added the following code to each .php error page in order to get my skins images/paths etc to work correctly.
FIND:
require_once('./global.php');
ADD UNDER:
// #################### HARD CODE JAVASCRIPT PATHS ########################
$headinclude = str_replace('clientscript', $vbulletin->options['bburl'] . '/clientscript', $headinclude);
TheFrienzNet
01-25-2007, 09:27 PM
Thanks a lot, i've been looking for something like this for a while!
*Edit*
I can't seem to find any place where I can edit the error pages in AdminCP.
blogtorank
01-25-2007, 11:33 PM
Thanks this works perfect!
TheFrienzNet
01-27-2007, 07:51 PM
Thanks a lot, i've been looking for something like this for a while!
*Edit*
I can't seem to find any place where I can edit the error pages in AdminCP.
Err?
da420
01-27-2007, 08:06 PM
Try your style manager.
TheFrienzNet
01-31-2007, 07:42 PM
Try your style manager.
Hm?
da420
01-31-2007, 07:49 PM
vberrorpages_400
vberrorpages_401
vberrorpages_403
vberrorpages_404
vberrorpages_500
Those are the templates that are added with this modification. To make them look different you will need to edit those templates.
Ericsson
03-01-2007, 07:53 PM
The error pages arnt showing up for me: http://www.ps3blab.com/dsadsa
What should the .htaccess file look like?
tehPARADOX
03-08-2007, 05:30 AM
I'm not sure if this will help anyone or not, but I added the following code to each .php error page in order to get my skins images/paths etc to work correctly.
FIND:
require_once('./global.php');
ADD UNDER:
// #################### HARD CODE JAVASCRIPT PATHS ########################
$headinclude = str_replace('clientscript', $vbulletin->options['bburl'] . '/clientscript', $headinclude);
This has solved the issue with missing style images when error page is outside of forum directory.
thincom2000
03-08-2007, 04:06 PM
I have just made it a rule to always use full paths in my templates since I first had an error like this, and so far no problems (except when a hack uses str_replace() on top of my pre-empt).
Also, with specific regards to this hack, I noticed that when using these error pages, the error is not sent to my server's error logs, while if using the default error pages, they are.
SaN-DeeP
03-10-2007, 12:13 AM
does this modification calls error pages for deleted threads as well ??
dazed12
03-15-2007, 07:38 PM
if you wanted to customize it via a phrase, then add a phrase and leave where the txt would have been :: $vbphrase[what_ever_you_want_your_phrase_to_be]. you could even look in the articles on how to add links in the admincp and set up your own menu for customized phrases that you made or edit daily
4yBak
03-16-2007, 02:57 PM
I'm also was uninstall this hack through not existing support.
thincom2000
03-17-2007, 07:26 AM
Also, with specific regards to this hack, I noticed that when using these error pages, the error is not sent to my server's error logs, while if using the default error pages, they are.
Scratch that. For some reason as of this week it has begun reporting the error details to my server's logs.
radarhunter
08-07-2007, 05:02 AM
hey man
your own site is giving this error
Warning: main(./global.php): failed to open stream: No such file or directory in /home/interne/public_html/forums/errorpages/404.php on line 26
Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/interne/public_html/forums/errorpages/404.php on line 26
could u please tell that is this hack still workin` and if yes then does it work on higher end versions.......
RichieBoy67
08-10-2007, 12:42 AM
Some of you guys up above only have to edit your paths in htaccess just as thre instructions stated.... It is set by default for /forums/ Change it to your own...
I just installed without a problem but I have not testes funtionality yet... My only concern was seo and possible looping...
I usually create my own error pages and what I do is use a meta refresh redirect to redirect back to my home page after like 5 seconds. That solves the looping problem plus it redirects back to the home page....
How is this accomplished with this mod as to not cause looping???
Thanks
Harley D
05-25-2008, 02:37 PM
Very Nice!!!!
Thank You.
SevenUp
02-09-2009, 12:11 PM
works with 3.8
thank you!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.