WordPress.org

Ready to get started?Download WordPress

Forums

WP-setings error (7 posts)

  1. szakal162
    Member
    Posted 4 years ago #

    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 ?

  2. Stian Andreassen
    Member
    Posted 4 years ago #

    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: http://php.net/manual/en/migration53.deprecated.php

  3. szakal162
    Member
    Posted 4 years ago #

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

  4. szakal162
    Member
    Posted 4 years ago #

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

  5. Denis de Bernardy
    Member
    Posted 4 years ago #

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

  6. ranzeal
    Member
    Posted 4 years ago #

    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
    }
  7. donald_j_axel
    Member
    Posted 3 years ago #

    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! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic