PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
MySQL.php driver issue: areequals() function not defined
Goto page 1, 2, 3  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions
View previous topic :: View next topic  
Author Message
perpetuallyconfused



Joined: 10 Mar 2008
Posts: 16

PostPosted: Mon Mar 10, 2008 5:07 pm    Post subject: MySQL.php driver issue: areequals() function not defined Reply with quote

I'm currently running PHP 5.0.2, MySQL server 5.0, Apache 2.2, latest PEAR, and 1.6.19 Smarty.

Whenever I try to load my pages, I get this error:
Fatal error: Call to undefined method MDB2::areequals() in C:\****\libs\PEAR\MDB2\Driver\mysql.php on line 436

Can anyone help me with this? Driving myself crazy.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Mon Mar 10, 2008 5:10 pm    Post subject: Reply with quote

We've had this issue some weeks in the German PEAR forum. The problem was that the MDB2 and/or MDB2_Driver_mysql package was outdated.

pear upgrade mdb2
pear upgrade mdb2#mysql
Back to top
View user's profile Send private message
perpetuallyconfused



Joined: 10 Mar 2008
Posts: 16

PostPosted: Mon Mar 10, 2008 5:15 pm    Post subject: Reply with quote

Ok, I'm a complete idiot, I guess, because that response doesn't make sense to me. Where do I type those?

Also, I just downloaded the latest MDB2 mysql.php driver...

Thanks for the quick response, and hopefully, I'm not too painfully slow.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Mon Mar 10, 2008 5:18 pm    Post subject: Reply with quote

perpetuallyconfused wrote:
Ok, I'm a complete idiot, I guess, because that response doesn't make sense to me. Where do I type those?


On your shell, that's the recommended way to install and update PEAR packages.

perpetuallyconfused wrote:
Also, I just downloaded the latest MDB2 mysql.php driver...

Thanks for the quick response, and hopefully, I'm not too painfully slow.


Did you also download MDB2 itself? Did you use the right directory structure? Are you sure that the downloaded file really gets included (and not an older version)?
Back to top
View user's profile Send private message
perpetuallyconfused



Joined: 10 Mar 2008
Posts: 16

PostPosted: Mon Mar 10, 2008 5:20 pm    Post subject: Reply with quote

Quote:
On your shell, that's the recommended way to install and update PEAR packages.


On my shell? I'm using Windows...is this a linux term?

As far as installing MDB2, I checked the option to install it when I went to localhost/web/go-pear.php and installed everything there.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Mon Mar 10, 2008 6:10 pm    Post subject: Reply with quote

perpetuallyconfused wrote:
Quote:
On your shell, that's the recommended way to install and update PEAR packages.


On my shell? I'm using Windows...is this a linux term?


"Command line" is maybe a more common term on Windows. You'll find it somewhere in Windows' start menu. (Or: Start menu, "Run ...", type "cmd" in the new window, hit Enter, and you're there.)

perpetuallyconfused wrote:
As far as installing MDB2, I checked the option to install it when I went to localhost/web/go-pear.php and installed everything there.


Okay, you have the PEAR installer then. You can type the two commands into the window that I've described above.
Back to top
View user's profile Send private message
perpetuallyconfused



Joined: 10 Mar 2008
Posts: 16

PostPosted: Mon Mar 10, 2008 6:28 pm    Post subject: Reply with quote

Quote:
Well, the directory with pear.bat isn't in your PATH environment variable then. If you don't know the directory in which this file resides, you'll need to search for it. Then type "c:\somewhere\pear upgrade mysql", or change the directory ("cd c:\somewhere\") and use the commands as in my second answer.


My web root directy is:
C:\Web

My pear directory is:
C:\Web\libs\PEAR

Directory that has pear.bat in it:
C:\Web\libs

Going to either of these and typing pear upgrade mdb2 or the other command results in the error message:
Quote:
' "C:\Web\libs" ' is not recognized as an internal or external command, operable program, or batch file.


I'm pretty sure I have pear in my include path. In my config.inc.php file, I have the following:
Code:

$path = ini_get('include_path');
 ini_set('include_path', SITE_ROOT . '/libs/pear'.PATH_SEPARATOR.$path);


Do I have to add something to my php.ini file in my windows folder?[/code]
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Mon Mar 10, 2008 6:36 pm    Post subject: Reply with quote

You forgot the "cd" command ("change directory"):

cd C:\Web\libs
pear upgrade MDB2
...
Back to top
View user's profile Send private message
perpetuallyconfused



Joined: 10 Mar 2008
Posts: 16

PostPosted: Mon Mar 10, 2008 6:38 pm    Post subject: Reply with quote

mark wrote:
You forgot the "cd" command ("change directory"):

cd C:\Web\libs
pear upgrade MDB2
...


What I posted was what happens after I changed directories to C:\Web\libs.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Mon Mar 10, 2008 6:39 pm    Post subject: Reply with quote

perpetuallyconfused wrote:
What I posted was what happens after I changed directories to C:\Web\libs.


Are you sure? The message
Quote:
' "C:\Web\libs" ' is not recognized as an internal or external command, operable program, or batch file.
indicates that you typed in only the directory, but not a command before it.

If you're already in the directory, just go ahead with "pear upgrade MDB2".
Back to top
View user's profile Send private message
perpetuallyconfused



Joined: 10 Mar 2008
Posts: 16

PostPosted: Mon Mar 10, 2008 6:50 pm    Post subject: Reply with quote



If I change the directory to C:\Web\libs\PEAR, then I get that 'pear' is not recognized as a command.[/img]
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Mon Mar 10, 2008 6:52 pm    Post subject: Reply with quote

Well, pear.bat is in C:\Web\libs, not in the PEAR subdirectory.
Back to top
View user's profile Send private message
perpetuallyconfused



Joined: 10 Mar 2008
Posts: 16

PostPosted: Mon Mar 10, 2008 6:54 pm    Post subject: Reply with quote

mark wrote:
Well, pear.bat is in C:\Web\libs, not in the PEAR subdirectory.


Right, but in the image I linked, you can see that I was using C:\Web\libs, not C:\Web\libs\PEAR. I was just saying that I tried both folders and neither one is doing anything. Is this an install issue?
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Mon Mar 10, 2008 7:17 pm    Post subject: Reply with quote

I couldn't see the image on the first try, but now it works. The message is strange, I have no idea what's causing it. You could try to reinstall PEAR, or, simply in your case, just take the downloaded file and use it for installing:
pear upgrade nameOfTheDownloadedMDB2DriverFile.tgz

If this also doesn't work, you could extract the contained files to the right place.
Back to top
View user's profile Send private message
perpetuallyconfused



Joined: 10 Mar 2008
Posts: 16

PostPosted: Mon Mar 10, 2008 7:34 pm    Post subject: Reply with quote

Oh, I already extracted everything to the PEAR directory (or the Pear/Driver directory). What could be causing this issue otherwise?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions All times are GMT + 2 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement