The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vBulletin load 2 times global.php
I think I found mini bug,
I open new table on my PHPMYADMIN, Than I enter to "global.php" file, and add code that will add 1 to the exit number (if 0 it need up to 1, if it 1 in need up to 2) when enter to some page on web. I check the value after one refresh on main page of my website, and it up to 2 from 0, I thought it mistake, so I tryed again, and again it up to 4 from 2, and again and again, so I tryed to disable my hooks and go to default style, and it didn't help. I continue to check and I found that the function fetch_template and print_output, when they come together it happened. how I can fix it? and it bug or what? Thank you a lot ! |
#2
|
|||
|
|||
I'm not sure I completely understand what you're saying, but one refresh of the main page results in a number of requests to the server. In particular, cron.php is called, so that could be the source of your second load of global.php. To make sure, as part of your code you could print some debug info to a file and include the value of THIS_SCRIPT in the debug info.
|
#3
|
|||
|
|||
You understand me very well.
The cron is not the problem. The debug, return me where i am found, and the "index". I searched about it but nothing. What can be the problem? I have vbseo but I cancel him to check, and it didnt help.. |
#4
|
|||
|
|||
Thank you for help,
I founf the problem. It was JS function that dont exist and it load the forum twice for serch the function. Thank for help ! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|