• 3 days ago when I enter my site I got error :

    Deprecated: Assigning the return value of new by reference is deprecated in /customers/domian.com/domian.com/httpd.www/wp-settings.php on line 520

    Deprecated: Assigning the return value of new by reference is deprecated in /customers/domian.com/domian.com/httpd.www/wp-settings.php on line 535

    Deprecated: Assigning the return value of new by reference is deprecated in /customers/domian.com/domian.com/httpd.www/wp-settings.php on line 542

    Deprecated: Assigning the return value of new by reference is deprecated in /customers/domian.com/domian.com/httpd.www/wp-settings.php on line 578

    Deprecated: Function set_magic_quotes_runtime() is deprecated in /customers/domian.com/domian.com/httpd.www/wp-settings.php on line 18

    Now I cant Log in to my Admin panel ;/ I was trying to replace wp-setings.php with new one but that did not help ;/

    How I can rep. that ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Are you running the latest version of WP?

    Have your host recently updated PHP to a newer version? PHP 5.3 have some deprecated features: https://php.net/manual/en/migration53.deprecated.php

    Thread Starter szakal162

    (@szakal162)

    I dont have last version of wp.
    Yes my host update to the new ver of PHP.
    but what I can do now?

    Thread Starter szakal162

    (@szakal162)

    anyone can help ? I realy dont wana lose 5k of posts;/ I forgot to back up ;/

    upgrade to WP 2.9 RC1, it should be fixed in there.

    Well,It happens when Server upgrades with PHP 5.3 and compatibility issue

    Problem is solved by adding this function and including a brace in the wp-settings.php 18th line !!

    if(version_compare(PHP_VERSION, '5.3.0', '<'))
    {
    set_magic_quotes_runtime(0); //18th line
    }

    After building PHP-5.3.3 and installing /usr/local/lib/php
    I got the same deprecation notices from WordPress-3.0.0 so I found out that php.ini /usr/local/lib/php.ini was NOT automatically updated. After editing or just copying php.ini-production the deprecation messages were suppressed.

    I think there is an important lesson here: We must find out how to replace the statements giving deprecation notices:

    Deprecated features:
    * Assigning the return value of new by reference is now deprecated.
    * Call-time pass-by-reference is now deprecated.
    * The use of {} to access string offsets is deprecated. Use [] instead.

    It is the first on which we focus:

    /**
     * WordPress Query object
     * @global object $wp_the_query
     * @since 2.0.0
     */
    $wp_the_query =& new WP_Query();

    This wordpress code could be corrected. I am trying to find out how! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP-setings error’ is closed to new replies.