• I was trying to put button into the header-right with genesis and since then I can’t have any access to the website…

    the link for the site is written bellow:

    https://hopemeetsart.net/

    Fatal error: Call to undefined function get_template_directory() in /var/sites/h/hopemeetsart.net/public_html/wp-includes/functions.php on line 3

    Any idea on how to resolve it? I’m desperate as the website is for a client and was almost ready… ??

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • What did you do to put the button in?

    If you changed the theme code, you could try manually reinstalling the theme

    Did you try checking out that line of code in your functions.php file? PHP can be really unforgiving – perhaps it’s something simple that you can fix? When the PHP gods ain’t happy, nothing works. ??

    Otherwise, try back tracking your steps. What did you do when you were adding that button into the header-right? Did you work on one .php file or a few? Comment out all the new changes and see if what happens. If you can see the site, then work from there.

    Last resort – use an older version of your theme that was working – before your attempt to add the button – and reinstall it.

    Good luck to you!

    Thread Starter kyvelic

    (@kyvelic)

    I think that I messed the function.php file….unfortunately

    As you said the PHP God is angry at me :/

    I will reinstall everything and see what happens….

    Thanks all for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘fatal error’ is closed to new replies.