• tc2u

    (@tc2u)


    As the topic says.. I can’t figure this out, but let me add I’m completely noob. How do I change get settings to get options?

    if ( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true ) ) {
    		if ( function_exists( '__' ) ) {
    			if ( $replacement ) {
    				trigger_error(
    					sprintf(
    						/* translators: 1: PHP function name, 2: Version number, 3: Alternative function name. */
    						__( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
    						$function,
    						$version,
    						$replacement

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Where is this code occurring?

    Thread Starter tc2u

    (@tc2u)

    Deprecated: get_settings is deprecated since version 2.1.0! Use get_option() instead. in /home/222417,cloudwaysapps.com.ushgvjqjuu/public_html/wp-includes/function.php on line 4773

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    That’s where it’s detected, not where it’s used.

    Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host.

    Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://www.ads-software.com/support/article/debugging-in-wordpress/

    You can also try this: Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you cannot access wp-admin, there are other ways to deactivate plugins.

    Thread Starter tc2u

    (@tc2u)

    I guess I don’t understand the question “where it’s being used”, it’s all my blog pages. If I enable debug, then all the errors are at top of site for all to see. I’ve done that, and copied them, but disabled so they wouldn’t show. I do not know how to enable debug log. I did look at logs, but didn’t see anything… did I mention I’m noob? I’ve tried disabling plugins, tried a new 2020 theme, enlarging the memory, and contacting host is out of the question as it’s $180 an hour to figure it out… I know a new host would be ideal, but I’m just an employee here.

    • This reply was modified 4 years ago by tc2u.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The link I provided tells you how to enable the debug logs. Do not enable WP_DEBUG_DISPLAY and then the errors won’t be publicly visible, just written to wp-content/debug.log

    Thread Starter tc2u

    (@tc2u)

    Morning,

    I’ve enabled the log, and it’s full of the error messages like the example above. I still don’t know what to do with it, or how to fix the errors. Suggestions?

    I see where it mentions plugin textdomain, but I don’t have that plugin installed that I can find.

    Thanks

    • This reply was modified 4 years ago by tc2u.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Deprecated: get_settings is deprecated since version 2.1.0! Use get_option() ins’ is closed to new replies.