Title: WP-setings error
Last modified: August 19, 2016

---

# WP-setings error

 *  [szakal162](https://wordpress.org/support/users/szakal162/)
 * (@szakal162)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/wp-setings-error/)
 * 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)

 *  [Stian Andreassen](https://wordpress.org/support/users/stiand/)
 * (@stiand)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/wp-setings-error/#post-1309780)
 * 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](http://php.net/manual/en/migration53.deprecated.php)
 *  Thread Starter [szakal162](https://wordpress.org/support/users/szakal162/)
 * (@szakal162)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/wp-setings-error/#post-1309784)
 * 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](https://wordpress.org/support/users/szakal162/)
 * (@szakal162)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/wp-setings-error/#post-1309893)
 * anyone can help ? I realy dont wana lose 5k of posts;/ I forgot to back up ;/
 *  [Denis de Bernardy](https://wordpress.org/support/users/denis-de-bernardy/)
 * (@denis-de-bernardy)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/wp-setings-error/#post-1309914)
 * upgrade to WP 2.9 RC1, it should be fixed in there.
 *  [ranzeal](https://wordpress.org/support/users/ranzeal/)
 * (@ranzeal)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp-setings-error/#post-1310032)
 * 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
       }
       ```
   
 *  [donald_j_axel](https://wordpress.org/support/users/donald_j_axel/)
 * (@donald_j_axel)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/wp-setings-error/#post-1310047)
 * 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.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 6 replies
 * 5 participants
 * Last reply from: [donald_j_axel](https://wordpress.org/support/users/donald_j_axel/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/wp-setings-error/#post-1310047)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
