• Resolved TGC5308

    (@tgc5308)


    What does this mean, and how do I fix it?

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\wp-settings.php on line 601

Viewing 10 replies - 1 through 10 (of 10 total)
  • Deprecated means that the relevant function or technique should no longer be used and may not be supported by PHP for much longer.

    Thread Starter TGC5308

    (@tgc5308)

    I deleted the settings but now nothing will work. I now have to fix line 365 in the Link Template. Should I delete that?

    How should I change these settings? Delete them or change the values…

    Sorry but I’ve no idea what you did, what you’re working on and/or what you’re trying to achieve.

    Thread Starter TGC5308

    (@tgc5308)

    This is what I am getting:
    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\wp-settings.php on line 601

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\wp-settings.php on line 616

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\wp-settings.php on line 623

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\wp-settings.php on line 630

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\wp-settings.php on line 666

    Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\wp-settings.php on line 18

    I removed these specified lines in the settings file. The site would not come up at all. I got a message saying, “Fatal error” and something about line 365 in another file. I didn’t want to delete line 365 and make matters worse so I put everything back in. Now, I can see my site but with the above warnings.

    How can I disable these errors without disabling the entire site?

    Thanks for getting back to me on this.

    Leave wp-settings alone. It’s a core file and should not be edited unless you really, really, know what you’re doing. Plus there’s nothing wrong with that file. It’s working fine on thousands of other WP sites.

    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 default theme to rule out any theme-related problems?

    You should probably configure your WAMP and set it not to show PHP warnings.
    I agree with esmi – don’t touch wp-settings.php.

    Thread Starter TGC5308

    (@tgc5308)

    Do I configure that through phpMyAdmin?

    The warnings were there before the new theme went in so it’s not the theme.

    No – it’s part of your server configuration.

    If I remember correctly, you can right-click on WAMP icon in the notification area and choose PHP->Edit php.ini or something like this. Anyway, you need to find php.ini file and edit a line in it that contains something similar to
    error_reporting = E_ALL
    you may want to change it to
    error_reporting = E_ERROR
    for example, this will show only critical errors. For other values see here – https://www.php.net/manual/en/errorfunc.constants.php

    Thread Starter TGC5308

    (@tgc5308)

    Thanks. For this site I decided to download the new theme to my existing online blog and work from there. For next time though I will keep these fixes in mind.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Deprecated’ is closed to new replies.