PHP Warning: mysql_get_server_info()

Here is the bug :slight_smile: i have google it and i am the only one in the world getting this problem on my server logs

First of Thank you with out you guys BlogLines.co.za will not be were it is today :slight_smile:

Here is just what i have been doing for the whole day

1 ) Loged in to my server with SSH and then run grep -i blogline /usr/local/apache/logs/error_log* i then see these like ever sec

PHP Warning: mysql_get_server_info() expects parameter 1 to be resource, boolean given in /home/blogline/public_html/wp-content/db.php on line 699

I then started removing all plugs one by one and add ed them back one by one but yet the err was still there

I then had a look at Multi-Domains as this was also a bug but it seems fixed now.

I then rebuild EasyApache (Apache Update) and i also added DSO + FCGI + CGI as my php handler i have then set out to test with each of these to make sure that is was not Apache causing the bug the bug “699” was still there .

So what i need to know is how do we fix this.

Thx

Mark

  • DavidM
    • DEV MAN’s Mascot

    Hi Mark,

    Just confirm though, there’s currently no display or other issues except for those error messages in your logs, apparently only when viewed through that grep command?

    I’ll flag the developer regarding the error as it does seem to be pointing to Multi-DB.

    -David

  • Mark de Scande
    • Syntax Hero

    login as: root

    [email protected]’s password:

    Last login: Wed Dec 7 18:36:52 2011 from 41.52.187.195

    root@server2 [~]# php -v

    PHP 5.3.8 (cli) (built: Dec 7 2011 17:41:50)

    Copyright (c) 1997-2011 The PHP Group

    Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

    with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator

    with the ionCube PHP Loader v4.0.9, Copyright (c) 2002-2011, by ionCube Ltd.

    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

    root@server2 [~]#

    Default PHP Version (.php files) 5

    PHP 5 Handler dso

    PHP 4 Handler none

    Apache suEXEC off

    Server Information

    Processor Information

    Total processors: 8

    Processor #1

    Vendor

    GenuineIntel

    Name

    Intel(R) Xeon(R) CPU E31270 @ 3.40GHz

    Speed

    1600.000 MHz

    Cache

    8192 KB

    Processor #2

    Vendor

    GenuineIntel

    Name

    Intel(R) Xeon(R) CPU E31270 @ 3.40GHz

    Speed

    1600.000 MHz

    Cache

    8192 KB

    Processor #3

    Vendor

    GenuineIntel

    Name

    Intel(R) Xeon(R) CPU E31270 @ 3.40GHz

    Speed

    1600.000 MHz

    Cache

    8192 KB

    Processor #4

    Vendor

    GenuineIntel

    Name

    Intel(R) Xeon(R) CPU E31270 @ 3.40GHz

    Speed

    3401.000 MHz

    Cache

    8192 KB

    Processor #5

    Vendor

    GenuineIntel

    Name

    Intel(R) Xeon(R) CPU E31270 @ 3.40GHz

    Speed

    1600.000 MHz

    Cache

    8192 KB

    Processor #6

    Vendor

    GenuineIntel

    Name

    Intel(R) Xeon(R) CPU E31270 @ 3.40GHz

    Speed

    1600.000 MHz

    Cache

    8192 KB

    Processor #7

    Vendor

    GenuineIntel

    Name

    Intel(R) Xeon(R) CPU E31270 @ 3.40GHz

    Speed

    1600.000 MHz

    Cache

    8192 KB

    Processor #8

    Vendor

    GenuineIntel

    Name

    Intel(R) Xeon(R) CPU E31270 @ 3.40GHz

    Speed

    1600.000 MHz

    Cache

    8192 KB

    Memory Information

    Memory for crash kernel (0x0 to 0x0) notwithin permissible range

    Memory: 16423436k/17825792k available (2606k kernel code, 343636k reserved, 1662k data, 224k init)

    System Information

    Linux server2.bloglines.co.za 2.6.18-274.7.1.el5 #1 SMP Thu Oct 20 16:21:01 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

    Physical Disks

    SCSI device sda: 286494720 512-byte hdwr sectors (146685 MB)

    sda: Write Protect is off

    sda: Mode Sense: 06 00 10 00

    SCSI device sda: drive cache: write through w/ FUA

    SCSI device sda: 286494720 512-byte hdwr sectors (146685 MB)

    sda: Write Protect is off

    sda: Mode Sense: 06 00 10 00

    SCSI device sda: drive cache: write through w/ FUA

    sd 0:0:0:0: Attached scsi removable disk sda

    SCSI device sdb: 490065920 512-byte hdwr sectors (250914 MB)

    sdb: Write Protect is off

    sdb: Mode Sense: 06 00 10 00

    SCSI device sdb: drive cache: write through w/ FUA

    SCSI device sdb: 490065920 512-byte hdwr sectors (250914 MB)

    sdb: Write Protect is off

    sdb: Mode Sense: 06 00 10 00

    SCSI device sdb: drive cache: write through w/ FUA

    sd 0:0:1:0: Attached scsi removable disk sdb

    sd 0:0:0:0: Attached scsi generic sg0 type 0

    sd 0:0:1:0: Attached scsi generic sg1 type 0

    Current Memory Usage

    total used free shared buffers cached

    Mem: 16426336 16314508 111828 0 384840 9245776

    -/+ buffers/cache: 6683892 9742444

    Swap: 4193584 3356 4190228

    Total: 20619920 16317864 4302056

    Current Disk Usage

    Filesystem Size Used Avail Use% Mounted on

    /dev/sda3 15G 5.7G 8.2G 41% /

    /dev/sda7 53G 15G 36G 30% /home

    /dev/sda5 15G 2.0G 12G 15% /tmp

    /dev/sda2 49G 25G 22G 54% /var

    /dev/sda1 99M 24M 70M 26% /boot

    /dev/sdb1 231G 35G 185G 16% /backupdrive

    tmpfs 7.9G 0 7.9G 0% /dev/shm

  • Mark de Scande
    • Syntax Hero

    I have updated 3.12 :slight_smile:

    I have also removed the contents of my error_log and will test in about 20 minutes with SSH and these commands:

    grep -i blogline /usr/local/apache/logs/error_log*

    tail -F /usr/local/apache/logs/error_log

    Will update and let you know how things goes

    Thx

    Mark