How to Fix WordPress deprecated (5 posts)

  1. wp_sam
    Posted 4 years ago #

    Hi there guys I got a problem with WordPress and its seems like very new to me. I cant see WordPress admin backend when I try to access it all I see is white blank page and when I start it in debug mode I see only one error i.e. add_custom_background is deprecated since version 3.4!. Please help.

    Thanks Guys

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    - switching to the Twenty Eleven theme by renaming your current theme's folder inside wp-content/themes and adding "-old" to the end of the folder name using FTP or whatever file management application your host provides.

    - resetting the plugins folder by FTP or phpMyAdmin.

  3. wp_sam
    Posted 4 years ago #

    Thanks Esmi for you quick attention - Yes I can Login now and I guess the problem with is with theme. But how can I Fix as most of the work is completed and only one error is creating problem with my theme. - Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( 'custom-background', $args ) instead. in /home2/speakwi4/public_html/wp-includes/functions.php. Is there any easy fix??

  4. wp_sam
    Posted 4 years ago #

    I replace the deprecated and edit the code to ---> if ( function_exists('add_custom_background')) {add_theme_support('custom-background');}

    I don't see any error now but still I see the admin backend page blank. Help will be appreciated.

  5. perfectweb
    Posted 3 years ago #

    I was able to quickly fix a similar problem by taking the "functions.php" file from the newest twenty eleven theme and replacing the functions.php file in my custom theme. This only works if your theme's functions.php file had not been customized.

Topic Closed

This topic has been closed to new replies.

About this Topic