Random Errors

Discussion in 'Troubleshooting' started by sharadjalota456, May 5, 2010.

  1. sharadjalota456

    sharadjalota456 New Member

    Joined:
    Nov 11, 2009
    Messages:
    26
    Hey,

    I am getting these errors on every aMember page:

    Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/shockstr/public_html/amember/config.inc.php on line 26

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 387

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 420

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 450

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 471

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 491

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 508

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 545

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 602

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 938

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 950

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 963

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 974

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 1258

    Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/shockstr/public_html/amember/common.inc.php on line 22

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/shockstr/public_html/amember/config.inc.php:26) in /home/shockstr/public_html/amember/common.inc.php on line 1758

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

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/member.inc.php on line 129

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/member.inc.php on line 137

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/member.inc.php on line 173

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/member.inc.php on line 227

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/member.inc.php on line 314

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/member.inc.php on line 386

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/member.inc.php on line 393

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/member.inc.php on line 436

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/member.inc.php on line 469

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/member.inc.php on line 477

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/member.inc.php on line 520

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/product.inc.php on line 398

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/product.inc.php on line 406

    Deprecated: Assigning the return value of new by reference is deprecated in /home/shockstr/public_html/amember/plugins/db/mysql/mysql.inc.php on line 213

    What is happening? :confused:
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    You are running in a PHP 5.3 environment.

    Couple of ways to address it:

    1) In a custom php.ini (stored in your amember directory) add the following:

    Code:
    display_errors = off
    or

    2) Modify a couple of your aMember files:

    a. Edit /amember/common.inc.php and remove this line:
    set_magic_quotes_runtime(0);
    b. Edit /amember/config.inc.php and add this line to the top of the file:
    ini_set("session.save_path", dirname(__FILE__)."/data");
  3. eastwooddesign

    eastwooddesign New Member

    Joined:
    Jan 8, 2010
    Messages:
    9
    I tried the above fixes and I am still getting the errors. What could I be doing wrong.

    Are there any special steps in creating the php.ini file ?
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    What version of aMember are you using?

    Regarding php.ini, no it just needs to be a simple text file placed in the root of your aMember directory. If your host does not support overriding your php with a local file you may need to ask them to change it via the server php.ini for your account.

Share This Page