• Can anyone help me resolve these errors? Grateful

    Fatal error: Cannot redeclare _resolve_home_block_template() (previously declared in /home/tecnoaqua/public_html/wp-includes/block-template.php:348) in?/home/tecnoaqua/public_html/wp-includes/deprecated.php?on line?4605

    Fatal error: Uncaught Error: Call to a member function set() on null in /home/tecnoaqua/public_html/wp-includes/l10n.php:786 Stack trace: #0 /home/tecnoaqua/public_html/wp-includes/l10n.php(874): load_textdomain() #1 /home/tecnoaqua/public_html/wp-includes/class-wp-fatal-error-handler.php(47): load_default_textdomain() #2 [internal function]: WP_Fatal_Error_Handler->handle() #3 {main} thrown in /home/tecnoaqua/public_html/wp-includes/l10n.php on line 786

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Check for Duplicate Declarations ,

    i think you are using this (Cannot redeclare _resolve_home_block_template()) twice you have previously declared?some where so please rename the function and it’s hook if have.

    or you can use like this below

    if (!function_exists(‘_resolve_home_block_template’)) { function _resolve_home_block_template() { // Function code here } }

    I hope it work.

    Thread Starter barbizandc

    (@barbizandc)

    Hi, Amir. Thanks for the tip.

    I tried this way but it returned a new error.

    Fatal error: Uncaught Error: Undefined constant “‘_resolve_home_block_template’” in /home/tecnoaqua/public_html/wp-includes/deprecated.php:4605 Stack trace: #0 /home/tecnoaqua/public_html/wp-settings.php(221): require() #1 /home/tecnoaqua/public_html/wp-config.php(80): require_once(‘/home/tecnoaqua…’) #2 /home/tecnoaqua/public_html/wp-load.php(50): require_once(‘/home/tecnoaqua…’) #3 /home/tecnoaqua/public_html/wp-blog-header.php(13): require_once(‘/home/tecnoaqua…’) #4 /home/tecnoaqua/public_html/index.php(17): require(‘/home/tecnoaqua…’) #5 {main} thrown in /home/tecnoaqua/public_html/wp-includes/deprecated.php on line 4605

    Fatal error: Uncaught Error: Call to a member function set() on null in /home/tecnoaqua/public_html/wp-includes/l10n.php:786 Stack trace: #0 /home/tecnoaqua/public_html/wp-includes/l10n.php(874): load_textdomain() #1 /home/tecnoaqua/public_html/wp-includes/class-wp-fatal-error-handler.php(47): load_default_textdomain() #2 [internal function]: WP_Fatal_Error_Handler->handle() #3 {main} thrown in /home/tecnoaqua/public_html/wp-includes/l10n.php on line 786

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Cannot redeclare _resolve_home_block_template()’ is closed to new replies.