The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Location in session table
Hi,
I was creating some web pages outside of vBulletin and wanted them to appear in the WOL page. Not that hard, since I only had to include global.php and eventually create a module to display "correct" names on WOL. And it's working. But... things went wrong when I sent the pages on my ISP Location was not showing anymore, but instead was showing 'viewing index' when on forum at the same time or not showing at all if the pages were located outside of vBulletin directory (which of course will often be the case). If debug is active, I can see that $filename is empty when page is outside of vb directory. In the session table, location is : "/forum/" while it should be "/forum/myfile.php" or something like that. The differences between me and my ISP are :
So my question is : what can cause my problem ? apache ? php ? And of course, how can I get around this ? Any help is welcome. |
#2
|
|||
|
|||
Make sure you have a line like (before including global.php):
PHP Code:
|
#3
|
|||
|
|||
I have this line
I've been waiting a bit to answer in order to leave cookies go away, so I won't get spoiled by them. Here's what is going on now, with this code : PHP Code:
On the ISP side, I get : HTML Code:
Test page #/test01.php# #/test01.php# On local side : HTML Code:
Test page ## #/test01.php# Both environment are not giving the same results, as you can see |
#4
|
|||
|
|||
The above only means that the webserver on your localhost, does not set a $_SERVER['SCRIPT_URL']."#";
|
#5
|
|||
|
|||
Not only
On localhost, /test01.php is in session table; not on ISP... So... I've asked my ISP to migrate one of my accounts to PHP 5.1.5 & MySQL 5.0.22 and then I have installed a copy of vB on it (yes, I know it's illegal, but I will delete it, don't worry) . Same test page but this time : good results on WOL page and $filename contains the correct file name. Apache server is still the same. So it appears that my problem is related to the version of PHP running on the server. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|