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

Reply
 
Thread Tools
In dire need of help, please check [PHP error] Details »»
In dire need of help, please check [PHP error]
Version: , by E E is offline
Developer Last Online: Mar 2008 Show Printable Version Email this Page

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

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home/fiendwor/public_html/forum/admin/db_mysql.php on line 40

I havent touched this file at all, & I have no clue why it has an error in it.

I went into the file & found line 40 [using EditPlus]

This is line 40

PHP Code:
          $this->link_id=mysql_connect($this->server,$this->user,$this->password); 

& here are the codes surrounding it -

PHP Code:
  function connect() {
    global 
$usepconnect;
    
// connect to db server

    
if ( == $this->link_id ) {
      if (
$this->password=="") {
        if (
$usepconnect==1) {
          
$this->link_id=mysql_pconnect($this->server,$this->user);
        } else {
          
$this->link_id=mysql_connect($this->server,$this->user);
        }
      } else {
        if (
$usepconnect==1) {
          
$this->link_id=mysql_pconnect($this->server,$this->user,$this->password);
        } else {
          
$this->link_id=mysql_connect($this->server,$this->user,$this->password);
        }
      }
      if (!
$this->link_id) {
        
$this->halt("Link-ID == false, connect failed");
      }
      if (
$this->database!="") {
        if(!
mysql_select_db($this->database$this->link_id)) {
          
$this->halt("cannot use database ".$this->database);
        }
      }
    }
  } 
^ That is from line 25 down to 53.
line 53 is just a space :-\

I'm not too familiar w/ PHP,
please help if you can,
I cant stand members messaging me asking "is the site down??"
lol, Thanks in advance - peace.

Show Your Support

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

Comments
  #2  
Old 04-29-2003, 06:59 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't it a server problem ?!
Reply With Quote
  #3  
Old 04-29-2003, 07:05 PM
E's Avatar
E E is offline
 
Join Date: Mar 2002
Location: Fieldale Virginia
Posts: 421
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It probably was,
I decided to refresh to see if it was still working & boom..
It worked.
I was like..... how the????
lol, Thanks for the help though,
the sites up & running now
peace.
Reply With Quote
Reply


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 10:15 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.03402 seconds
  • Memory Usage 2,225KB
  • Queries Executed 18 (?)
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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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