Fatal error: Cannot redeclare _pear_call_destructors()

Discussion in 'Troubleshooting' started by smithdp1, Oct 11, 2009.

  1. smithdp1

    smithdp1 New Member

    Joined:
    Oct 10, 2009
    Messages:
    4
    :eek:
    getting this error when signing up:

    Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /public_html/amember/plugins/payment/google_checkout/PEAR/PEAR.php:765) in /usr/local/lib/php/PEAR.php on line 842

    I have submitted a support ticket for this. i see others are having the same problem but there is no solution here. I cant get them to answer my tickets??? Did I make a mistake by paying them $180??? :mad:
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    As far as I can see this was fixed in helpdesk already?
    Let me know if not.
  3. bfritton

    bfritton Certified aMember Developer

    Joined:
    Oct 26, 2009
    Messages:
    54
    Alexander,
    There's a number of threads about this error here and now I'm encountering it. Is it possible to just include the modified file here so we don't have to submit tickets? Perhaps make it available only to forum users that are in the customer group like myself?
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Try to edit /amember/config.inc.php and add this at the top of the file:
    Code:
    <?
    ini_set("include_path", ".");
    ?>
    
    Let me know if this will not help.
  5. christine_baker

    christine_baker New Member

    Joined:
    Apr 19, 2007
    Messages:
    9
    I tried that, now I get this error:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/factors/public_html/amember/config.inc.php:5) in /home/factors/public_html/amember/common.inc.php on line 1718
  6. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    @christine_baker: first keep in mind that this thread is from 2009 so the references may be different from your version of aMember.

    That being said, for the error you are getting, open the config.inc.php and common.inc.php files and ensure there are no extra spaces at the top or bottom of the file. If there are remove them and resave.

Share This Page