FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=7576&edit=1

ID: 7576
Comment by: lakiluk60
Reported By: lakiluk60 at go2 dot pl
Summary: Fatal error: Call to undefined method
MDB2_Error::setLang()
Status: Bogus
Type: Bug
Package: Translation2
Operating System: winxp
PHP Version: 5.1.2
Assigned To: quipo
New Comment:

[...]
$driver = 'MDB2';
require_once 'Translation2.php';
$tr =& Translation2::factory($driver, $dbinfo, $params);
if (PEAR::isError($tr)) {
echo "Error connecting database!";
die($tr->getMessage());
}
$tr->setCharset('utf8');
[...]

The result is:
MDB2 Error: not found


Previous Comments:
------------------------------------------------------------------------

[2006-05-08 04:21:00] quipo

In the example, error checking was omitted to make the example more
concise, but in a real script you have to check for errors after every
method call:

$tr =& Translation2::factory($driver, $dbinfo, $params);
if (PEAR::isError($tr)) {
//oops... deal with it
}

------------------------------------------------------------------------

[2006-05-08 04:11:58] hammam at islamway dot net

Description:
------------
Fatal error: Call to undefined method MDB2_Error::setLang() in
C:\wamp\www\tests\translation.php on line 62

i am using your example:
http://pear.php.net/manual/en/package.internationalization.translation2.intro.php

------------------------------------------------------------------------

Search Discussions

  • Lakiluk60 at Oct 13, 2009 at 2:41 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=7576&edit=1

    ID: 7576
    Comment by: lakiluk60@go2.pl
    Reported By: hammam at islamway dot net
    Summary: Fatal error: Call to undefined method
    MDB2_Error::setLang()
    Status: Bogus
    Type: Bug
    Package: Translation2
    Operating System: winxp
    PHP Version: 5.1.2
    Assigned To: quipo
    Roadmap Versions:
    New Comment:

    But I don't know what is "not found". If I use later in script
    $tr->setCharset('utf8');
    i have a message like this:
    Fatal error: Call to undefined method MDB2_Error::setCharset() in
    E:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test.php on
    line 61


    Previous Comments:
    ------------------------------------------------------------------------

    [2009-10-13 15:35:30] lakiluk60

    [...]
    $driver = 'MDB2';
    require_once 'Translation2.php';
    $tr =& Translation2::factory($driver, $dbinfo, $params);
    if (PEAR::isError($tr)) {
    echo "Error connecting database!";
    die($tr->getMessage());
    }
    $tr->setCharset('utf8');
    [...]

    The result is:
    MDB2 Error: not found

    ------------------------------------------------------------------------

    [2006-05-08 04:21:00] quipo

    In the example, error checking was omitted to make the example more
    concise, but in a real script you have to check for errors after every
    method call:

    $tr =& Translation2::factory($driver, $dbinfo, $params);
    if (PEAR::isError($tr)) {
    //oops... deal with it
    }

    ------------------------------------------------------------------------

    [2006-05-08 04:11:58] hammam at islamway dot net

    Description:
    ------------
    Fatal error: Call to undefined method MDB2_Error::setLang() in
    C:\wamp\www\tests\translation.php on line 62

    i am using your example:
    http://pear.php.net/manual/en/package.internationalization.translation2.intro.php

    ------------------------------------------------------------------------
  • Cweiske at Oct 13, 2009 at 2:51 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=7576&edit=1

    ID: 7576
    Updated by: cweiske@php.net
    Reported By: hammam at islamway dot net
    Summary: Fatal error: Call to undefined method
    MDB2_Error::setLang()
    Status: Bogus
    Type: Bug
    Package: Translation2
    Operating System: winxp
    PHP Version: 5.1.2
    Assigned To: quipo
    Roadmap Versions:
    New Comment:

    This is not a discussion forum.
    Please read the FAQ about your "not found" error.
    http://pear.php.net/manual/en/package.database.mdb2.faq.php

    Please post further to the pear-general mailing list.


    Previous Comments:
    ------------------------------------------------------------------------

    [2009-10-13 16:41:25] lakiluk60

    But I don't know what is "not found". If I use later in script
    $tr->setCharset('utf8');
    i have a message like this:
    Fatal error: Call to undefined method MDB2_Error::setCharset() in
    E:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test.php on
    line 61

    ------------------------------------------------------------------------

    [2009-10-13 15:35:30] lakiluk60

    [...]
    $driver = 'MDB2';
    require_once 'Translation2.php';
    $tr =& Translation2::factory($driver, $dbinfo, $params);
    if (PEAR::isError($tr)) {
    echo "Error connecting database!";
    die($tr->getMessage());
    }
    $tr->setCharset('utf8');
    [...]

    The result is:
    MDB2 Error: not found

    ------------------------------------------------------------------------

    [2006-05-08 04:21:00] quipo

    In the example, error checking was omitted to make the example more
    concise, but in a real script you have to check for errors after every
    method call:

    $tr =& Translation2::factory($driver, $dbinfo, $params);
    if (PEAR::isError($tr)) {
    //oops... deal with it
    }

    ------------------------------------------------------------------------

    [2006-05-08 04:11:58] hammam at islamway dot net

    Description:
    ------------
    Fatal error: Call to undefined method MDB2_Error::setLang() in
    C:\wamp\www\tests\translation.php on line 62

    i am using your example:
    http://pear.php.net/manual/en/package.internationalization.translation2.intro.php

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedOct 13, '09 at 1:41p
activeOct 13, '09 at 2:51p
posts3
users3
websitepear.php.net

3 users in discussion

Cweiske: 1 post Lakiluk60: 1 post Lakiluk60: 1 post

People

Translate

site design / logo © 2022 Grokbase