Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1221307

    I’m getting this showing up in the page titles of one of our client’s websites:

    Deprecated: avia_set_title_tag is deprecated since version 3.6! Use WP recommended function _wp_render_title_tag() – since WP 4.1 – instead. in /home4/anchorn4/public_html/aemltd.com/wp-includes/functions.php on line 4713 Advanced Energy Management Ltd. | Managing Energy for Buildings

    All the plugins, WordPress and Enfold are all up to date. Any help would be great.

    #1221435

    Hey NicomIT,

    Please check in your child theme, if you have this code: avia_set_title_tag
    To fix it, just replace it with: _wp_render_title_tag

    Best regards,
    Nikko

    #1221689

    Hi Nikko,
    I’m assuming you are referring to the ‘functions.php’ file? If so, there weren’t any changes made to that file in the child theme or any code added to it. But I copied the code below from the parent theme file, made the change you suggested and it didn’t seem to work.

    <?php
    
    /*title fallback (up to WP 4.1)*/
    if ( ! function_exists( '_wp_render_title_tag' ) )
    {
        function av_theme_slug_render_title() 
        {
    	    echo "<title>" . _wp_render_title_tag() ."</title>";
    	}
    	add_action( 'wp_head', 'av_theme_slug_render_title' );
    }
     
    #1221815

    Hi NicomIT,

    It’s not the in the theme home4/anchorn4/public_html/aemltd.com/wp-includes/functions.php, it’s the WordPress files.

    You might need to run the WordPress update again to make sure all the files get updated.

    Best regards,
    Victoria

    #1221852

    Hi Victoria,
    Just to confirm – WordPress itself needs to be updated, or the parent theme? If it’s the parent theme, I have updated that and when it was updated, I uploaded the new version of Enfold separately from the old one. So there shouldn’t be any issues with the files not being updated. Also, can you let me know what specific file needs to be updated and it’s location/path?
    Thanks!

    #1221866

    Hi NicomIT,

    Yes, I am talking about WordPress update not the theme. You have the path in the error text – home4/anchorn4/public_html/aemltd.com/wp-includes/functions.php.

    Best regards,
    Victoria

    #1222095

    Thanks Victoria. Do you happen to know what file in WordPress needs to be updated and is it the same code that Nikko mentioned?

    #1222189

    Hi NicomIT,

    I think it’s a misunderstanding, I was just on assumption that maybe you have used that function in your child theme, but if you haven’t added it in the child the theme then there’s no need to modify anything.
    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( to be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #1222673

    Thanks for clarifying that Nikko and providing the additional info. I suspect this could be related to where the website was hosted. Our client actually moved it to a different host last week and the error is not appearing now. So it looks like that fixed it. It’s possible they may have updated WordPress when doing that as well. Thanks again!

    #1222687

    Hi,

    Thanks for the update!

    We will close this thread for now. If you have any other questions or issues, please feel free to start a new one :)

    Regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Error Message in Page Titles: avia_set_title_tag is deprecated since version 3.6’ is closed to new replies.