Site logo

Archived topic

Website Down: Fatal Error Line 3 functions.php

4 replies · Started by Magnus on March 21, 2022

Viewing posts 1–5 of 5

Hello,

I use WP 5.9.2 with Generatepress Version 3.1.3. Tonight all off the sudden my website is down. Fatal error in function.php Line 3. See Screenshot https://ride-with-love.bike/downloads/error.png.

Now I changed the name of the themes folder via FTP and can login to my admin interface again. So I guess the problem muss be within the theme?!? I renamed the plugins Folder as well, but this didn't changed anything. So from my point of view no plugin cause the problem.

Do you have an idea and a solution?

Best, Magnus

Hi Magnus,

Did you do modifications to the theme’s files?

It’s saying that this file doesn’t exist: generatepress/framework/get-mods.php

GeneratePress shouldn’t be requiring such a file and this file doesn’t exist in GP theme. No code should be in the functions.php file of GP requiring such a file.

Kindly check if you’ve made modifications to the GP theme files. If so, and if you plan to do modifications, using a Child theme would be safest.

See: https://docs.generatepress.com/article/using-child-theme/

Otherwise, if you're not doing any modifications on the files, kindly try manually updating the theme: https://generatepress.com/account/

Hope this clarifies. :)

Hello Fernando,

thanks for your fast reply. Yes, I guess I messed something up in the theme. I just reloaded it and now it works.

Best!

Hi there,

just a note.- if you need to make modifications too or add files to the Theme, you need to use a Child Theme.
Aside from potential breakages and changes you make to the parent theme files will be lot when the theme is updated.

More info on Child Themes here:

https://docs.generatepress.com/article/using-child-theme/

You’re welcome Magnus! Glad to be of assistance. Feel free to reach out anytime if assistance with anything else is needed. :)

This archived topic is closed to new replies.