• After updating to WordPress 6.4.2 I am getting the following error:

    Deprecated: Function the_block_template_skip_link is deprecated since version 6.4.0! Use wp_enqueue_block_template_skip_link() instead. in /www/camunipress_755/public/wp-includes/functions.php on line 6031

    If I navigate to that line of code within the codebase I have the following:

    trigger_error( $message, $error_level );

    I have searched for that function but it doesn’t seem to be being used within my codebase. I have deactivated all plugins but I still get the error. Any help with this would be appreciated!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    Try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.

    If you’d like to manually make a backup of your site first, please follow the steps at https://www.ads-software.com/documentation/article/wordpress-backups/

    Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    If that makes no difference, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. Hopefully, this will force the default theme to activate and rule out a theme-specific issue (theme functions can interfere like plugins).

    Since updating wordpress caused the Deprecated error. It most likely in a plugin or theme that generating the error. The version of wordpress you updated to doesn’t support that function any longer. You could steep back down to a lower version of wordpress where the function is still being supported. You porbably need to make sure your theme and your plugins are all up to date. If any of the plugins or themes haven’t been updated in a long time. I would look at those files. Here is the page that show the annoucment of the file being deprecated https://developer.www.ads-software.com/reference/functions/the_block_template_skip_link

    / it shows the function should be changed to wp_enqueue_block_template_skip_link().

    Deprecated: Function the_block_template_skip_link is deprecated since version 6.4.0! Use wp_enqueue_block_template_skip_link() instead. in?/home/x/public_html/wp-includes/functions.php?on line?6031


    The function the_block_template_skip_link, which is causing this error, cannot be found in either files or the database. Its name is only mentioned in three files within the wp-includes directory. However, it can consistently trigger the debug error.

    Reinstalling WP didn’t work either. How can I solve this problem?

    Thread Starter ackers123

    (@ackers123)

    Hi

    I have reinstalled a fresh install of the latest version of WordPress and deactivated all plugins to ensure that they weren’t generating the error but I am still getting the same error.

    Deprecated: Function the_block_template_skip_link is deprecated since version 6.4.0! Use wp_enqueue_block_template_skip_link() instead. in /www/camunipress_755/public/wp-includes/functions.php on line 6031

    Are there any other suggestions? Many thanks!

    The same problem happened to me, and I was finally able to solve it by installing version 6.4 (November 2023) and removing the jetpack plugin (which apparently was causing the problem). It is advisable to activate the wp-config debug to true to see the error generated. Try to do it that way.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Deprecated function in wp-includes functions.php’ is closed to new replies.