-
AuthorPosts
-
June 10, 2020 at 6:29 pm #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.
June 10, 2020 at 10:36 pm #1221435Hey 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_tagBest regards,
NikkoJune 11, 2020 at 2:01 pm #1221689Hi 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' ); }
June 11, 2020 at 5:32 pm #1221815Hi 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,
VictoriaJune 11, 2020 at 6:03 pm #1221852Hi 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!June 11, 2020 at 6:39 pm #1221866Hi 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,
VictoriaJune 12, 2020 at 2:44 pm #1222095Thanks Victoria. Do you happen to know what file in WordPress needs to be updated and is it the same code that Nikko mentioned?
June 12, 2020 at 9:50 pm #1222189Hi 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.- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- 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 ). - Click ” Submit “.
- 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,
NikkoJune 15, 2020 at 3:29 pm #1222673Thanks 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!
June 15, 2020 at 3:45 pm #1222687 -
AuthorPosts
- The topic ‘Error Message in Page Titles: avia_set_title_tag is deprecated since version 3.6’ is closed to new replies.