PHP Fatal error

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
DeepR
Posts: 2
Joined: Wed Aug 25, 2004 2:37 am

PHP Fatal error

Post by DeepR »

Hi

I have php 5.0 - apache2.0.50 - mysql.4.0.20 Slackware 10.0

cat /var/log/apache2/error.log

[client 10.0.0.11] PHP Fatal error: Call to undefined function mysql_connect() in
/var/www/htdocs/cacti-0.8.6-cvs/lib/adodb/drivers/adodb-mysql.inc.php on line 323

Line 323 =>

Code: Select all

// returns true or false^M
        function _connect($argHostname, $argUsername, $argPassword, $argDatabasename)^M
        {^M
                if (ADODB_PHPVER >= 0x4300)^M
                        $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,^M
                                                                                                
$this->forceNewConnect,$this->clientFlags);^M
                else if (ADODB_PHPVER >= 0x4200)^M
                        $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,^M
                                                                                                $this->forceNewConnect);^M
                else^M
                        $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword);^M
        ^M
                if ($this->_connectionID === false) return false;^M
                if ($argDatabasename) return $this->SelectDB($argDatabasename);^M
                return true;    ^M
        }^M
        ^M
// returns true or false^M
 
with php4 works great but with php5 :(

please let me to know what is rong

Thank you.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

There was a fix posted. Just do a search on ADODB on the forum and you will find it. We have upgraded ADODB in the new/beta version. There is a single line change in one file to fix this, or you can download the entire quite from the internet. I suggest you search the forum.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
DeepR
Posts: 2
Joined: Wed Aug 25, 2004 2:37 am

Post by DeepR »

Thank you
I solve this pproblem
TheWitness wrote:There was a fix posted. Just do a search on ADODB on the forum and you will find it. We have upgraded ADODB in the new/beta version. There is a single line change in one file to fix this, or you can download the entire quite from the internet. I suggest you search the forum.

TheWitness
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests