Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-02-2012, 03:51 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Custom pages are causing errors with relative path references

I have created custom pages in vb 4.2 that reside outside the /forum directory using this method:

[HOW TO - vB4] Create your own vBulletin page

The issue I'm having is that references to certain directories being called by vB are showing as relative and not the absolute path causing errors to be reported for the pages. Directories like:

/images/misc
/images/cms
/images/site_icons
/clientscript

Not only are the errors showing for the custom pages but also for my CMS which also resides outside the /forum subdirectory and is setup in the root of my domain.

All pages seem to display correctly but cPanel is reporting about 5 errors per page each time they are rendered. BBURL appears to be set correctly, but it seems the issue may be related to it.

Any help would be appreciated, thanks.
Reply With Quote
  #2  
Old 08-02-2012, 05:32 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bzcomputers View Post
All pages seem to display correctly but cPanel is reporting about 5 errors per page each time they are rendered.

Do you know exactly what the errors are? edit: oh, you did list some of the problem directories. But if you find a url that's bad then search the html source of the page for that url, you might be able to figure out why it's not working.
Reply With Quote
  #3  
Old 08-02-2012, 06:49 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is throwing an error for every single relative url reference on the page. I personally used full (absolute) urls in all my custom work, so the errors are coming from relative urls from vBulletin's own templates that are being called like "headinclude", "navbar", etc.

For example these are the errors produced by just my CMS page that resides in the root:
Code:
[Thu Aug 02 14:25:47 2012] [error] File does not exist: /home/cruisin/public_html/images/cms, referer: http://www.cruisin.me/
[Thu Aug 02 14:25:47 2012] [error] File does not exist: /home/cruisin/public_html/images/cms, referer: http://www.cruisin.me/
[Thu Aug 02 14:25:47 2012] [error] File does not exist: /home/cruisin/public_html/images/cms, referer: http://www.cruisin.me/
[Thu Aug 02 14:25:47 2012] [error] File does not exist: /home/cruisin/public_html/images/buttons, referer: http://www.cruisin.me/
[Thu Aug 02 14:25:47 2012] [error] File does not exist: /home/cruisin/public_html/images/cms, referer: http://www.cruisin.me/
[Thu Aug 02 14:25:47 2012] [error] File does not exist: /home/cruisin/public_html/images/site_icons, referer: http://www.cruisin.me/
[Thu Aug 02 14:25:47 2012] [error] File does not exist: /home/cruisin/public_html/images/cms, referer: http://www.cruisin.me/
[Thu Aug 02 14:25:47 2012] [error] File does not exist: /home/cruisin/public_html/images/misc, referer: http://www.cruisin.me/
[Thu Aug 02 14:25:47 2012] [error] File does not exist: /home/cruisin/public_html/images/misc, referer: http://www.cruisin.me/
[Thu Aug 02 14:25:47 2012] [error] File does not exist: /home/cruisin/public_html/images/customlogos, referer: http://www.cruisin.me/
[Thu Aug 02 14:25:46 2012] [error] File does not exist: /home/cruisin/public_html/clientscript, referer: http://www.cruisin.me/

The odd thing is the pages still seem to render correctly.
Reply With Quote
  #4  
Old 08-02-2012, 07:04 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you edit those errors? Because it seems kind of strange that they are directory names and not files (although I don't have all that much experience with web server logs, maybe that's normal?).

In any case, in the settings under "Site Name / URL / Contact Details", what do you have for "Always use Forum URL as Base Path" (or I guess more importantly, if you view your page html source, is there a base tag, and if so, is it correct)?
Reply With Quote
  #5  
Old 08-02-2012, 07:17 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, I didn't edit them it is actually showing the error on the directory in all cases.

Forum URL: http://www.cruisin.me/forum
Always use Forum URL as Base Path: Yes

Forum Component URL: http://www.cruisin.me/forum
CMS Component URL: http://www.cruisin.me
Blog Component URL: http://www.cruisin.me/blog

The Source Code for CMS in root:
Code:
var SESSIONURL = "";
	var IMGDIR_MISC = "images/misc";
	var IMGDIR_BUTTON = "images/buttons";
	var vb_disable_ajax = parseInt("0", 10);
	var SIMPLEVERSION = "420";
	var BBURL = "http://www.cruisin.me/forum";
	var LOGGEDIN = 1 > 0 ? true : false;
	var THIS_SCRIPT = "vbcms";
	var RELPATH = "";
	var PATHS = {
		forum : "http://www.cruisin.me/forum",
		cms   : "http://www.cruisin.me",
		blog  : "http://www.cruisin.me/blog"
	};
	var AJAXBASEURL = "http://www.cruisin.me/";
Source code for custom page:
Code:
var SESSIONURL = "";
	var IMGDIR_MISC = "images/misc";
	var IMGDIR_BUTTON = "images/buttons";
	var vb_disable_ajax = parseInt("0", 10);
	var SIMPLEVERSION = "420";
	var BBURL = "http://www.cruisin.me/forum";
	var LOGGEDIN = 1 > 0 ? true : false;
	var THIS_SCRIPT = "infoandtips";
	var RELPATH = "info/carnival/";
	var PATHS = {
		forum : "http://www.cruisin.me/forum",
		cms   : "http://www.cruisin.me",
		blog  : "http://www.cruisin.me/blog"
	};
	var AJAXBASEURL = "http://www.cruisin.me/info/carnival/";
Reply With Quote
  #6  
Old 08-03-2012, 05:34 AM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shouldn't this
Code:
var RELPATH = "info/carnival/";
Be this
Code:
var RELPATH = "/info/carnival/";
Reply With Quote
  #7  
Old 08-06-2012, 05:19 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone else want to take a try at this ...still no solution.
Reply With Quote
  #8  
Old 08-07-2012, 02:33 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You said in the first post that custom pages are causing the errors - what pages are those? The error log just shows http://www.cruisin.me/. When I look at that page using firebug I don't see any "file not found" errors, and I don't see any requests to those paths mentioned in the errors (except in cases where they have a valid file name on the end).
Reply With Quote
  #9  
Old 08-07-2012, 04:04 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
You said in the first post that custom pages are causing the errors - what pages are those? The error log just shows http://www.cruisin.me/. When I look at that page using firebug I don't see any "file not found" errors, and I don't see any requests to those paths mentioned in the errors (except in cases where they have a valid file name on the end).
All of the linked pages from this starting point are throwing similar errors:

http://www.cruisin.me/info/carnival/

Code:
[Tue Aug 07 11:47:36 2012] [error] File does not exist: /home/cruisin/public_html/info/carnival/images/misc, referer: http://www.cruisin.me/info/carnival/
[Tue Aug 07 11:47:36 2012] [error] File does not exist: /home/cruisin/public_html/info/carnival/images/misc, referer: http://www.cruisin.me/info/carnival/
[Tue Aug 07 11:47:35 2012] [error] File does not exist: /home/cruisin/public_html/info/carnival/images/site_icons, referer: http://www.cruisin.me/info/carnival/
[Tue Aug 07 11:47:35 2012] [error] File does not exist: /home/cruisin/public_html/info/carnival/images/site_icons, referer: http://www.cruisin.me/info/carnival/
[Tue Aug 07 11:47:35 2012] [error] File does not exist: /home/cruisin/public_html/info/carnival/images/customlogos, referer: http://www.cruisin.me/info/carnival/
[Tue Aug 07 11:47:35 2012] [error] File does not exist: /home/cruisin/public_html/info/carnival/mobiquo, referer: http://www.cruisin.me/info/carnival/
[Tue Aug 07 11:47:35 2012] [error] File does not exist: /home/cruisin/public_html/info/carnival/clientscript, referer: http://www.cruisin.me/info/carnival/
But again pages seem to render correctly.

I think you may have been onto something when you mentioned the references were all to directories and not specific files. I think there may be a vB setting that is off and not the actual pages that are causing the errors.

The errors are not always the same for the pages either. For instance this page had 3 different people go to it with seconds of each other and 1 of the 3 sent different errors:

http://www.cruisin.me/info/carnival/alcohol.php

Code:
[Tue Aug 07 11:57:35 2012] [error] [client A] File does not exist: /home/cruisin/public_html/info/carnival/clientscript, referer: http://www.cruisin.me/info/carnival/alcohol.php
[Tue Aug 07 11:57:35 2012] [error] [client A] File does not exist: /home/cruisin/public_html/info/carnival/clientscript, referer: http://www.cruisin.me/info/carnival/alcohol.php
[Tue Aug 07 11:57:35 2012] [error] [client A] File does not exist: /home/cruisin/public_html/info/carnival/clientscript, referer: http://www.cruisin.me/info/carnival/alcohol.php
[Tue Aug 07 11:48:09 2012] [error] [client B] File does not exist: /home/cruisin/public_html/info/carnival/images/misc, referer: http://www.cruisin.me/info/carnival/alcohol.php
[Tue Aug 07 11:48:09 2012] [error] [client B] File does not exist: /home/cruisin/public_html/info/carnival/images/misc, referer: http://www.cruisin.me/info/carnival/alcohol.php
[Tue Aug 07 11:48:09 2012] [error] [client B] File does not exist: /home/cruisin/public_html/info/carnival/images/site_icons, referer: http://www.cruisin.me/info/carnival/alcohol.php
[Tue Aug 07 11:48:09 2012] [error] [client B] File does not exist: /home/cruisin/public_html/info/carnival/images/site_icons, referer: http://www.cruisin.me/info/carnival/alcohol.php
[Tue Aug 07 11:48:09 2012] [error] [client B] File does not exist: /home/cruisin/public_html/info/carnival/clientscript, referer: http://www.cruisin.me/info/carnival/alcohol.php
[Tue Aug 07 11:48:09 2012] [error] [client B] File does not exist: /home/cruisin/public_html/info/carnival/images/customlogos, referer: http://www.cruisin.me/info/carnival/alcohol.php
[Tue Aug 07 11:47:51 2012] [error] [client C] File does not exist: /home/cruisin/public_html/info/carnival/clientscript, referer: http://www.cruisin.me/info/carnival/alcohol.php
[Tue Aug 07 11:47:51 2012] [error] [client C] File does not exist: /home/cruisin/public_html/info/carnival/clientscript, referer: http://www.cruisin.me/info/carnival/alcohol.php
[Tue Aug 07 11:47:51 2012] [error] [client C] File does not exist: /home/cruisin/public_html/info/carnival/clientscript, referer: http://www.cruisin.me/info/carnival/alcohol.php
(swapped ip addresses for letters A-C above)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04039 seconds
  • Memory Usage 2,258KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (7)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete