Support » Fixing WordPress » Fatal Error

  • I have the below error showing on 3 pages on my website.

    Fatal error: Call to undefined function: the_block() in /homepages/14/d301571190/htdocs/wp-content/themes/euronest/page.php on line 15

    I am new to WordPress so I apologize if this is an easy fix!

Viewing 11 replies - 1 through 11 (of 11 total)
  • try reupload your theme

    Chip Bennett


    Theme Review Admin

    Where did you get the Euronest Theme?

    How do I reupload the theme????

    the theme was custom for us by Craig Snyder

    custom theme designed by RiverBrand and Built by, LLC.

    Chip Bennett


    Theme Review Admin

    You’ll either need to contact the developer, or else post the code somewhere for us to be able to review it.

    The problem is that the Theme calls a function, the_block(), which isn’t defined. But what that function is supposed to be, why the Theme calls it, and where it’s supposed to be defined are questions that are impossible to answer without seeing the actual code.

    Im sorry this is so dumb, but Where can I find the Code? the FTP Server? or do I need to get it from the developer?

    [ 131 lines of code moderated. For more than 10 lines of code please instead. ]

    Is that the code?

    If the function is not important to you, simply go to the theme editor under “appearance” > “editor”

    Click on the “Header” template to the right and put this at the beginning.. (the absolute first line)

    <?php function the_block() { echo “<!– this function is on header.php –>”; } ?>

    This is not optimal but it will get rid of the error.
    I’m guessing this was a wp shortcode from the theme

    What do you mean if the function is not important to me? what will change by adding that?

    the_block() is a custom function from a plugin or your current theme. If you google it, it seems to be related to a plugin called “Multiple content blocks” but I’m not sure (check to see if you have a plugin with that name, it might be disabled).

    You are getting the error because there is a page on your theme trying to access a custom function which does not exist.

    The fix I posted, creates a function the_block() thus eliminating the error. My fix simply outputs some invisible text whenever the theme tries to access the function.

    Other than that, you’ll need to contact a developer to take a deeper look.

    Best of luck.

    I had this problem. It was indeed “Multiple content blocks” and when I checked in Plugins it was deactivated for some reason. I activated it again and the content displayed again.

    Hope that helps someone.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Fatal Error’ is closed to new replies.