Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16
  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    295

    Default Fatal error: Cannot redeclare _pear_call_destructors() (previously declared

    Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /home/user/public_html/banners/lib/pear/PEAR.php:771) in /usr/lib/php/PEAR.php on line 802

    Seems a recent cpanel update has chanegd the way that pear is being used

    I looked at the php.ini and it appears to be ok

    would love some clues as to where to look for change that would have happened in lat week

    The error above is for openx banners BUT other apps are failing with similar errors

  2. #2
    Registered User
    Join Date
    Apr 2009
    Posts
    4

    Default

    Create .htaccess file in the document root of openx (Note that you do not place it under the .htaccess of your domain document root) .

    .htaccess should have the line

    php_value include_path ".:/path/to/php/PEAR"

    give the correct path to the php pear


    Enable AllowOverride in your apache configuration

    <Directory /home/user/../../openx_doumentroot>
    AllowOverride all
    </Directory>


    Hope this helps.

  3. #3
    Member
    Join Date
    Mar 2002
    Posts
    295

    Default

    I appreciate the response but I would love to know what changed in the past few days of updates that would have resulted in this

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Silver_2000 View Post
    I appreciate the response but I would love to know what changed in the past few days of updates that would have resulted in this
    What is your full cPanel version number?

    When did you last build Apache, PHP, etc?
    Kenneth
    Product Development
    cPanel, Inc.

  5. #5
    Member
    Join Date
    Mar 2002
    Posts
    295

    Default

    cPanel 11.24.4-R36167 - WHM 11.24.2 - X 3.9

    I havent built apache or php in months

    PHP Version 5.2.8
    Apache/2.2.11

    Something changed on the server in the last 7 days

    Software add on alerts started getting emailed - havent seen them in months
    and there are at least 2 applications with similar pear errors

  6. #6
    Registered User
    Join Date
    Apr 2009
    Posts
    4

    Default

    Not sure . But i guess the cpanel update has something to do with the issue .

    Hasn't the fix work for you ? Tell the php to include the local pear directory.

    Instead of the .htaccess method try creating a file called php.ini and pasting the following source code into it:

    include_path = ".:/usr/lib/php:/usr/local/lib/php:/home/user/pear";

    Make sure you change user to your actual cPanel username. Also the first two paths (/usr/lib/php:/usr/local/lib/php) should remain so that the default PHP libraries are loaded.

    This php.ini file must be copied in each directory where pear packages are needed.

  7. #7
    Member
    Join Date
    Mar 2002
    Posts
    295

    Default

    local php.ini doesnt work

  8. #8
    Member
    Join Date
    Mar 2002
    Posts
    295

    Default

    any ideas ??

  9. #9
    Member
    Join Date
    Mar 2002
    Posts
    295

    Default

    the htaccess solution doesnt work

    perhaps due to this

    http://forums.cpanel.net/f34/htaccess-119709.html

  10. #10
    Member
    Join Date
    Mar 2002
    Posts
    295

    Default

    another app broken by pear updates that have been denied

    Catchable fatal error: Object of class MDB2_Error could not be converted to string in /home/userr/public_html/tree/classes/family_database.class.php on line 206

  11. #11
    Member
    Join Date
    Mar 2002
    Posts
    295

    Default

    cpanel support response to similar problem was that I had customized the pear config in this area of every account

    /usr/local/apache/conf/userdata/std/2account_name/cp_php_magic_include_path.conf

    trouble is the change was likely done by some setting in easy apache but Ive been given NO idea or clue as to what setting it was and how to undo it

    can anyone tell me where these settings are set so I can undo it ?

  12. #12
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Silver_2000 View Post
    /usr/local/apache/conf/userdata/std/2account_name/cp_php_magic_include_path.conf
    Note: Apache userdata include files that begin with cp_ are installed by cPanel ( hence the cp in the name ).

    This file in particular is installed in all virtual hosts by activating the PHP Magic User Loader. You can enable and disable this feature in WHM. To check or change this:
    • Login to WHM as root
    • Click Module Installers ( it is in the Software menu block )
    • Click the Manage link for PHP Extensions and Applications Package
    • The status of the Magic User Loader is at the top of the page

    Disabling the magic loader will remove the include file and reference from all virtual hosts ( you might need to regenerate httpd.conf for this to take affect ).
    Kenneth
    Product Development
    cPanel, Inc.

  13. #13
    Member
    Join Date
    Mar 2002
    Posts
    295

    Default

    thanks for the info Kenneth
    Support supposedly told my host that I had modified the files myself
    The problem had nothing to do with 'pear updates' last time; if you remember, it was custom code inserted by the user in /usr/local/apache/conf/userdata/std/2/<USERNAME>/<DOMAINNAME>/
    if this is a php config setting that ISNT "custom code"

    ill check that setting in the am

    just checked it - it was enabled and disabling fixed the multiple pear issues.

    THANKS
    Last edited by Silver_2000; 08-08-2009 at 01:42 AM.

  14. #14
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Silver_2000 View Post
    thanks for the info Kenneth
    Support supposedly told my host that I had modified the files myself


    if this is a php config setting that ISNT "custom code"

    ill check that setting in the am

    just checked it - it was enabled and disabling fixed the multiple pear issues.

    THANKS
    I'm glad that worked. If by 'support' you mean the cPanel support team, please PM me the ticket number. Thank you.
    Kenneth
    Product Development
    cPanel, Inc.

  15. #15
    Member
    Join Date
    Mar 2002
    Posts
    295

    Default

    The ticket was put in by steadfast - My server and support is through them

    I dont have the ticket number


    here is quote that steadfast sent me from the Cpanel response to ticket


    The problem had nothing to do with 'pear updates' last time; if you remember, it was custom code inserted by the user in /usr/local/apache/conf/userdata/std/2/<USERNAME>/<DOMAINNAME>/

    If they're having issues with include paths, I strongly recommend they update them in their custom configurations (listed above) so that they do not have this issue. As you can understand, we do not troubleshoot customer code. In the previous ticket, while investigating the cause, I found their custom configuration and fixed their problem as a courtesy - but they need to look at their custom config in the future when addressing include problems like this, since they're setting custom directives for the very issue. Thank you.

    To clarify, the customer is wrong when they say it's due to 'cPanel pear updates'. It's due to their custom include paths in the above-referenced include files, and it's something they need to fix in their own custom configurations. Thank you.
    The frustrating part for me is that Im looking for "custom code"

    When in fact I should have been looking for a cpanel check box. I admit that I likley checked that box BUT its not custom code to me ....

Similar Threads & Tags
Similar threads

  1. Replies: 12
    Last Post: 09-20-2008, 06:55 PM
  2. Replies: 2
    Last Post: 12-06-2006, 04:21 PM
  3. Replies: 57
    Last Post: 11-05-2005, 08:16 AM
  4. Berkeley DB error: fatal region error detected; run recovery
    By griz in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-24-2005, 04:37 AM
  5. Replies: 1
    Last Post: 05-25-2004, 11:46 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube