vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   vBulletin load 2 times global.php (https://vborg.vbsupport.ru/showthread.php?t=270873)

MAORBARI 09-25-2011 02:49 AM

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 !

kh99 09-25-2011 05:02 AM

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.

MAORBARI 09-25-2011 09:22 AM

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..

MAORBARI 09-26-2011 02:35 PM

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 !


All times are GMT. The time now is 06:34 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.03972 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete