Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Error Fatal error: Call to undefined method MDB2_Error::getDecorator()

Discussion in 'General Discussion' started by david.crk01, Jul 20, 2014.

  1. david.crk01

    david.crk01 Member

    Joined:
    Jul 19, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Villafranca del Panadés, Spain
    cPanel Access Level:
    Root Administrator
    Hi all,

    I'm moving one domain to a new server. It was working before without problems, and now I get this error:

    Error Fatal error: Call to undefined method MDB2_Error::getDecorator()

    It's not a CMS, it's a custom web develop. It was using php 5.3.26 before, but I've tried in this new server with php 5.3.27/5.3.28 and PHP 5.4.

    I've also installed pear Translation2 packages and MDB2:

    Installed packages, channel pear.php.net:
    =========================================
    Package Version State
    Archive_Tar 1.3.11 stable
    Console_Getargs 1.3.5 stable
    Console_Getopt 1.3.1 stable
    Console_GetoptPlus 1.0.0RC1 beta
    Log 1.12.8 stable
    MDB2 2.4.1 stable
    MDB2_Driver_mysql 1.4.1 stable
    PEAR 1.9.5 stable
    Structures_Graph 1.0.4 stable
    Translation2 2.0.4 stable
    XML_RPC 1.5.5 stable
    XML_Util 1.2.3 stable

    Any clue ?

    Thanks!
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    834
    Likes Received:
    29
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    That looks like an issue within the application itself. Are you sure all its files were moved?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. david.crk01

    david.crk01 Member

    Joined:
    Jul 19, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Villafranca del Panadés, Spain
    cPanel Access Level:
    Root Administrator
    Yes the app is OK.

    I have tested it in another server with plesk. After specify the php dir ( wich contains Translation2 and more classes ) it works OK.

    I can see all classes it needs inside a PHP folder ( in root structure of this user in cpanel ). How can i make to use this folder ? In the old cpanel it was working OK and I can't see any custom include_path in .htaccess or similar
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,233
    Likes Received:
    1,939
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Have you verified all of the same PHP modules are installed/enabled on the new server? You may want to compare the output of "php -m" on each server to verify that.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. david.crk01

    david.crk01 Member

    Joined:
    Jul 19, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Villafranca del Panadés, Spain
    cPanel Access Level:
    Root Administrator
    Hi and thanks for your reply

    problem is that pear packages stored in /home/user/php/ aren't loading. This function works with pear/Translation2 package. I have installed in system-wide ( Translation2 2.0.4 stable ) but it isn't loading. It doesn't load anyway for this domain ( the old server hasn't got it installed system-wide and is working OK, as has this required files:

    /home/u448h1/php

    ls:

    ls -la
    total 712K
    drwxr-xr-x 31 u448h1 u448h1 4,0K jul 21 17:54 .
    drwx--x--x 26 u448h1 u448h1 4,0K jul 22 00:33 ..
    drwxr-xr-x 2 u448h1 u448h1 4,0K sep 27 2012 Archive
    drwxr-xr-x 5 u448h1 u448h1 4,0K sep 27 2012 Auth
    -rw-r--r-- 1 u448h1 u448h1 39K sep 27 2012 Auth.php
    drwxr-xr-x 3 u448h1 u448h1 4,0K sep 27 2012 Cache
    drwxr-xr-x 3 u448h1 u448h1 4,0K sep 16 2010 .channels
    drwxr-xr-x 2 u448h1 u448h1 4,0K sep 27 2012 Console
    drwxr-xr-x 2 u448h1 u448h1 4,0K sep 27 2012 Crypt
    drwxr-xr-x 12 u448h1 u448h1 4,0K sep 27 2012 data
    drwxr-xr-x 2 u448h1 u448h1 4,0K sep 16 2010 Date
    -rw-r--r-- 1 u448h1 u448h1 42K sep 16 2010 Date.php
    drwxr-xr-x 4 u448h1 u448h1 4,0K sep 27 2012 DB
    -rw-r--r-- 1 u448h1 u448h1 42K sep 27 2012 DB.php
    -rw-r--r-- 1 u448h1 u448h1 21K oct 1 2012 .depdb
    -rw-r--r-- 1 u448h1 u448h1 0 oct 1 2012 .depdblock
    drwxr-xr-x 33 u448h1 u448h1 4,0K oct 1 2012 docs
    drwxr-xr-x 2 u448h1 u448h1 4,0K sep 16 2010 ext
    drwxr-xr-x 4 u448h1 u448h1 4,0K sep 27 2012 File
    -rw-r--r-- 1 u448h1 u448h1 66K oct 1 2012 .filemap
    drwxr-xr-x 4 u448h1 u448h1 4,0K sep 16 2010 HTTP
    drwxr-xr-x 7 u448h1 u448h1 4,0K sep 16 2010 I18Nv2
    -rw-r--r-- 1 u448h1 u448h1 13K sep 16 2010 I18Nv2.php
    -rw-r--r-- 1 u448h1 u448h1 0 oct 1 2012 .lock
    drwxr-xr-x 2 u448h1 u448h1 4,0K sep 27 2012 Log
    -rw-r--r-- 1 u448h1 u448h1 27K sep 27 2012 Log.php
    drwxr-xr-x 2 u448h1 u448h1 4,0K sep 27 2012 Mail
    -rw-r--r-- 1 u448h1 u448h1 9,7K sep 16 2010 Mail.php
    drwxr-xr-x 4 u448h1 u448h1 4,0K oct 1 2012 MDB
    drwxr-xr-x 4 u448h1 u448h1 4,0K sep 28 2012 MDB2
    -rw-r--r-- 1 u448h1 u448h1 139K sep 28 2012 MDB2.php
    -rw-r--r-- 1 u448h1 u448h1 26K sep 27 2012 MDB.php
    drwxr-xr-x 2 u448h1 u448h1 4,0K sep 27 2012 Net
    drwxr-xr-x 2 u448h1 u448h1 4,0K sep 27 2012 OS
    drwxr-xr-x 11 u448h1 u448h1 4,0K sep 27 2012 PEAR
    -rw-r--r-- 1 u448h1 u448h1 1,1K sep 27 2012 PEAR5.php
    -rw-r--r-- 1 u448h1 u448h1 15K sep 27 2012 pearcmd.php
    -rw-r--r-- 1 u448h1 u448h1 34K sep 27 2012 PEAR.php
    -rw-r--r-- 1 u448h1 u448h1 930 sep 27 2012 peclcmd.php
    drwxr-xr-x 5 u448h1 u448h1 4,0K oct 1 2012 .registry
    drwxr-xr-x 2 u448h1 u448h1 4,0K nov 12 2010 Services
    drwxr-xr-x 5 u448h1 u448h1 4,0K sep 27 2012 SOAP
    drwxr-xr-x 3 u448h1 u448h1 4,0K sep 27 2012 Structures
    -rw-r--r-- 1 u448h1 u448h1 20K sep 27 2012 System.php
    drwxr-xr-x 27 u448h1 u448h1 4,0K oct 1 2012 tests
    drwxr-xr-x 2 u448h1 u448h1 4,0K sep 27 2012 tools
    drwxr-xr-x 5 u448h1 u448h1 4,0K sep 16 2010 Translation2
    -rw-r--r-- 1 u448h1 u448h1 18K sep 16 2010 Translation2.php
    -rw-r--r-- 1 u448h1 u448h1 41K sep 27 2012 Validate.php
    drwxr-xr-x 3 u448h1 u448h1 4,0K sep 27 2012 XML

    I have tested this web migrating to other dedicated server with plesk for example. It worked when I pointed include_path to this php pear files ( Same php 5.4 version, so php 5.4 works with this web page )

    Thanks !
     
  6. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    834
    Likes Received:
    29
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Either add that to your include path in local php.ini, or go into WHM and enable the module loader for PHP.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice