Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

ORIGINALLY POSTED ON http://stackoverflow.com/questions/2682332/mdb2-pear-mysql-error however as its a server issue thought i may have more luck here.


Hi Guys,

I have PEAR, MDB2 and Mysql Driver installed however I keep getting:

Fatal error: Call to undefined function: MDB2_Driver_mysql::_isNewLinkSet(). in /home/**/PEAR/MDB2.php on line 1937.

The Server is CentOS

I am stuck, any help would be appriciated.

Thanks :)

share|improve this question
add comment

1 Answer

I had a similar problem yesterday.

Try explicitly including the file that contains the MDB2_Driver_mysql class before you call that function. That fixed it for me. I think this is the path/name to do it:

require_once "MDB2/Driver/mysql.php";

I know that this question is 4 mos old, but since I stumbled across it someone else might too. I hope this answer helps someone.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.