WordPress Fatal Error Call to Undefined Function Theme SNAFU

Hi there everyone! Hope you’re well. Forgive me if I’m not adhering to question protocol, it’s my first quesiton.

Well, I’m both glad + embarrassed to be here. I’ve been enjoying stackoverflow from the sidelines… & now I’m embarrassed to have to bother you with this complete noob snafu, but I don’t know what to do:

I was trying to edit the code of my WP theme that was installed, and I was trying to take things out to disable a function I wanted to get rid of. I was saving the unedited code and everything so I could put it back if needed but I got a Fatal Error. I never realized messing with any of that code could mess with my actual access to my WordPress dashboard:


Fatal error: Uncaught Error: Call to undefined function sun_post_lightbox_init() in /homepages/34/d681692875/htdocs/clickandbuilds/Noiiice/wp-content/themes/sun-by-osetin/functions.php:41 Stack trace: #0 /homepages/34/d681692875/htdocs/clickandbuilds/Noiiice/wp-includes/class-wp-hook.php(298): sun_setup(”) #1 /homepages/34/d681692875/htdocs/clickandbuilds/Noiiice/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /homepages/34/d681692875/htdocs/clickandbuilds/Noiiice/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /homepages/34/d681692875/htdocs/clickandbuilds/Noiiice/wp-settings.php(433): do_action(‘after_setup_the…’) #4 /homepages/34/d681692875/htdocs/clickandbuilds/Noiiice/wp-config.php(83): require_once(‘/homepages/34/d…’) #5 /homepages/34/d681692875/htdocs/clickandbuilds/Noiiice/wp-load.php(37): require_once(‘/homepages/34/d…’) #6 /homepages/34/d681692875/htdocs/clickandbuilds/Noiiice/wp-admin/admin.php(31): require_once(‘/homepages/34/d…’) #7 /homepages/34/d681692875/htdocs in /homepages/34/d681692875/htdocs/clickandbuilds/Noiiice/wp-content/themes/sun-by-osetin/functions.php on line 41


I’m not a dev by any means (obviously!) ;c …I wish I had that knowledge, I’m more of a UX/Graphic design/startup idea guy. I’ve tried to do it all myself and do the DEV stuff. sigh..wish i could hire a dev to help me.

Read more here: WordPress Fatal Error Call to Undefined Function Theme SNAFU

Leave a Reply

Your email address will not be published. Required fields are marked *