If you're getting failed includes like this, your path settings in either the 404.php file or the vbseo CP include path is incorrect.
This is a discussion on Create a Custom vBulletin "404 Page Not Found" Page, and direct vBSEO to use it. within the Member Articles forums, part of the Focus on Members category; If you're getting failed includes like this, your path settings in either the 404.php file or the vbseo CP include ...
If you're getting failed includes like this, your path settings in either the 404.php file or the vbseo CP include path is incorrect.
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Thanks for the reply
Now getting
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/404.php:9) in /home/xxxxxxx/public_html/404.php on line 10
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/public_html/404.php:9) in /home/xxxxxxxx/public_html/404.php on line 11
Thanks in advance.
Make sure you don't have a space in the 404.php file above the <?php line. It must be the VERY first line in the file, no line break, no spaces.
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
After removing the space now getting
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/public_html/404.php:8) in /home/XXXXX/public_html/404.php on line 9
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/404.php:8) in /home/xxxxxx/public_html/404.php on line 10
http://www.consumercourt.in/404.php
Sorry MY Mistake
Its solved now. I have created a file in Dreamviewer and forget to remove the the above code.
Million thanks in advance.
Glad it was an easy fix![]()
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Hi, i applid this trick with an htaccess, however any chances to include a search in the error?
i would like to search the URL:
user comes to site.com/forum/wrong-url/
i would like to show him results for "wrong url"
Support is only offered to vbseo customers. If you hold a valid license, please opena ticket with your forum URL and transaction ID so we can assign your licese to your account.
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
"Create a new template named custom_404 and paste the following content into it".
Paste where!?
AMD Forum: http://www.amdforum.se
When you create a new template, it's blank. that's the body of the template.
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Ah sorry. My fault. I mistook template for style.
AMD Forum: http://www.amdforum.se
It does not seem to work for me. :(
AMD Forum: http://www.amdforum.se
replied to your ticket.
remember to use the /PATH/TO/misc.php, not http://site.com/misc.php
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Does not seems to work... here is what i have done..
Step 1: Created a new template in my default theme named it custom_404 then paste following code in there..
Step 2: Created a file named 404.php with following content.Code:{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> <!-- no cache headers --> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="-1" /> <meta http-equiv="Cache-Control" content="no-cache" /> <!-- end no cache headers --> <title>Page Not Found - {vb:raw vboptions.bbtitle}</title> {vb:raw headinclude} </head> <body> {vb:raw header} {vb:raw navbar} <br /> <div style="padding-left: 25px; padding-right: 25px; font-weight: bold;" align="center"> Sorry, the page you have requested cannot be found. <br/><br/> You can try a <a href="{vb:raw vboptions.bburl}/search.php">search</a> if you are looking for something specific. </div> {vb:raw footer} </body> </html>
Where xxx is my actuall username.Code:<?php header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); $_GET['do']='page'; $_REQUEST['do']='page'; $_GET['template']='404'; $_REQUEST['template']='404'; define('VBSEO_PREPROCESSED', 1); include '/usr/home/xxx/public_html/forums/misc.php'; ?>
And followed this step carefully.
Now here comes the trouble:
When i access www.domain.com/404.php i get this
and when i visit a wrong link, its redirects me to /content.php ( /432125.php )Code:Warning: include(/usr/home/xxx/public_html/misc.php) [function.include]: failed to open stream: No such file or directory in /home/xxx/public_html/404.php on line 9 Warning: include() [function.include]: Failed opening '/usr/home/xxx/public_html/misc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/404.php on line 9
Please Advice
From the error message, it looks like you have conflicting paths. You probably don't need /usr on your url. Check your php info page for your correct path.
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!