Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools
Anyone got an idea on this one? Details »»
Anyone got an idea on this one?
Version: , by Zach Zach is offline
Developer Last Online: Sep 2005 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-24-2003 Last Update: Never Installs: 0
 
No support by the author.

First lets start with my forums - http://fswire.com - work fine. (If you go there I am playing around with the design so ignore bad design elements).


What is bugging me is that I write my errors out to a text file on my server. Prefer not to have garbage spilled out to the users, but nicely tucked away for me to take a look at later.

I am getting one error like constantly - I delete the file all the time and had deleted it earlier today. I just ftped in for something and noticed it was at 1.2 gigs :classic:

1.2 gigs actually laughing at it more than anything, that something is throwing an error message every page view I guess, but is not causing anything not to work.

Here is the error, I have looked into it but not deeply since when I got there it was like all variables and I do not have the time to trace it back and see whats up. If nobody has a clue I will get to it sooner or later, just hoping someone has an idea that could save me a lot of time.

This is my error.

Code:
[23-May-2003 23:20:44] PHP Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site5/fst/var/www/html/vbadmin/db_mysql.php on line 154
but imagine thousands upon thousands of them.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-24-2003, 05:37 AM
Zach's Avatar
Zach Zach is offline
 
Join Date: Nov 2001
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to give you an idea of frequency.

With a whopping 18 people online right now, it went from deleted file to 120K from 23:20:36 to 23:31:06.

My site is only really busy during work hours eastern and central time. (Guess people have hard jobs )
Reply With Quote
  #3  
Old 05-24-2003, 05:39 AM
Zach's Avatar
Zach Zach is offline
 
Join Date: Nov 2001
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, and I posted here for the obvious fact that I would never consider going to official support for a forum that is altered as much as mine is (most of it is in newthread.php, but I got junk elsewhere that I have screwed around with)
Reply With Quote
  #4  
Old 05-24-2003, 06:38 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is this line:

/home/virtual/site5/fst/var/www/html/vbadmin/db_mysql.php on line 154

Post it here.

Also, why make a log? Why not make it send an email to you, so you know what is happening. Otherwise, you may not know if something is causing an error until you check the log.
Reply With Quote
  #5  
Old 05-24-2003, 06:04 PM
Zach's Avatar
Zach Zach is offline
 
Join Date: Nov 2001
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
148  function fetch_array($query_id=-1,$query_string="") {
149    // retrieve row
150    if ($query_id!=-1) {
151     $this->query_id=$query_id;
152    }
153    if ( isset($this->query_id) ) {
154      $this->record = mysql_fetch_array($this->query_id);
155    } else {
156      if ( !empty($query_string) ) {
157        $this->halt("Invalid query id (".$this->query_id.") on this query: $query_string");
158      } else {
159        $this->halt("Invalid query id ".$this->query_id." specified");
160      }
161    }
162
163    return $this->record;
164  }

That above is the entire funtion with the line causing the prob.


Now what has me thrown off is that I have never played in this file, and that function is crucial and everything stops with out it. So its working, I guess, just kicking out an ugly error - but we all know that makes as much sense as Mayor Daly calling the butterfly ballot illegal (Chicago uses the butterfly ballot).

Why on the emails - well, its things really do not break if I am not in the server, so getting an email would be a pain cause then I would have to go over their and just read the last one or two, and the delete the next twelve billion. They would end up going the same place I send mail from my forums, the trash bin unread. If it was a normal number maybe but when its something that when you do get you are going to get a boat load of them it makes it worthless, and checking a nice txt file is simplier and more organized.


Now the problem is this. I have no freaking clue what that funtion is doing. It could be doing anything. It almost looks like it is THE query. But again to trace back all that would take just to much time as its not in anything readable unless you just have happened to trace to it already or wrote it.

The only possibility is that files got crossed in an upgrade, but I have reloaded all new files up I believe. Then I also have issue I am more than sure of that I am using two different directories to serve admin files, /admin and /vbadmin - friggin ensigm and its stupid admin redirect.

I have a highly customized admin panel, but again I do not see that causing the problem as this is recent and that has been ripped to shreds for a long time. Really just perplexed on why it works but gives me twelve billion errors. The more I think about it the more I think it is THE query statement, what else would be used with this regularity?
Reply With Quote
 


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 04:56 AM.


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.03764 seconds
  • Memory Usage 2,245KB
  • Queries Executed 20 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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