View Single Post
  #1  
Old 04-28-2010, 05:11 PM
Valof Valof is offline
 
Join Date: Feb 2009
Location: Poland
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default PHP crash - vb query

Hello!

I have very important problem. When a lot of logged users are viewing my site - my web hosting developer blocks my site because
"my site makes php loop and then crash"
that's query with problem is:

poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(4, "m\0\0\0\3\r\n\t\t\tSELECT * FROM user FORCE INDEX (lastactivity)\r\n\t\t\tWHERE lastactivity > 1272232800 ORDER BY username\r\n\t\t"..., 113)

brk(0x911b000) = 0x911b000
time(NULL) = 1272306532
time(NULL) = 1272306532
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2679, ...}) = 0
time(NULL) = 1272306532
time(NULL) = 1272306532
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2679, ...}) = 0
time(NULL) = 1272306532
time(NULL) = 1272306532
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2679, ...}) = 0
time(NULL) = 1272306532
time(NULL) = 1272306532
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2679, ...}) = 0
time(NULL) = 1272306532
time(NULL) = 1272306532

write(4, "\242\1\0\0\3\n\t\tSELECT\n\t\t\tuser.username , (user.options & 512) AS invisible, user.usergroupid,\n\t\t\tsession.userid, session.inforum, session.lastactivity, session.badlocation,\n\t\t\tIF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid\n\t\t\t\n\t\tFROM session AS session\n\t\tLEFT JOIN user AS user ON(user.userid = session.userid)\n\t\t\n\t\tWHERE session.lastactivity > 1272305629\n\t\t\t\n\t\tORDER BY username ASC\n\t"..., 422) = 422

Queries are from file (developer said):

"/home/login/domains/nazwa-domeny.pl/public_html/includes/functions_forumlist.php"

and second (i blocked/uninstalled all plugins which show any users list etc, so query has been changed):
Deleted plugins:
-advanced statistic
-members who has visited
-guest tracking

write(4, "\307\0\0\0\3\n\t\t\t\tSELECT forum.forumid, lastpost, lastposter, lastthread, lastthreadid, lasticonid, threadcount, replycount, lastpostid, lastprefixid, default_tags_ids\n\t\t\t\t\t\n\t\t\t\tFROM forum AS forum\n\t\t\t\t\n\t\t\t\t\n\t\t\t"..., 203) = 203

Please help me!

Best regards
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01204 seconds
  • Memory Usage 1,764KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (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_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete