Forums

Assigning the return value of new by reference is deprecated in on line 520 (3 posts)

  1. Vitalik
    Member
    Posted 1 year ago #

    The following is popping up when accessing my website:

    Deprecated: Assigning the return value of new by reference is deprecated in Z:\home\localhost\www\localblog\wp-settings.php on line 520

    Deprecated: Assigning the return value of new by reference is deprecated in Z:\home\localhost\www\localblog\wp-settings.php on line 535

    Deprecated: Assigning the return value of new by reference is deprecated in Z:\home\localhost\www\localblog\wp-settings.php on line 542

    Deprecated: Assigning the return value of new by reference is deprecated in Z:\home\localhost\www\localblog\wp-settings.php on line 578

    Deprecated: Function set_magic_quotes_runtime() is deprecated in Z:\home\localhost\www\localblog\wp-settings.php on line 18

    Can anyone help to resolve this poroblem.
    Note: I cant even access through admin. The WordPress Version in use is 2.9.2.

    Help would be appreciated.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Ten theme to rule out any theme-specific problems?

  3. synergyx
    Member
    Posted 1 year ago #

    The problem is that your php version is 5.3.0 or higher and the return value of new by reference is deprecated.

    To fix change:
    $wp_locale =& new WP_Locale();

    to

    $wp_locale = new WP_Locale();

    Remove all the ampisand signs at the lines specified.

    That should work.

Topic Closed

This topic has been closed to new replies.

About this Topic