WordPress site header will not render properly in prod, but looks fine in dev

[ad_1]

{ANSWERED – SEE COMMENTS}

Hey all – running into a pretty odd issue. My website header isn't rendering properly. Everything else on the page (content and footer) render fine, but the header css seems to be bugged. I've already tried the following:

  • Regenerate CSS and Data
  • Sync Library

This is the error from the logs:
“`
MessagePHP Fatal error: Uncaught Error: Call to undefined function get_header() in /srv/htdocs/wp-content/themes/twentytwentyone/index.php:17
Stack trace:

0 {main}

thrown in /srv/htdocs/wp-content/themes/twentytwentyone/index.php on line 17

Timestamp2024-08-26T02:26:29.000Z

Kindthemes

Nametwentytwentyone

File/srv/htdocs/wp-content/themes/twentytwentyone/index.php

Line17
“`

any help is much appreciated

https://preview.redd.it/k03qwarzw1ld1.png?width=982&format=png&auto=webp&s=1a5a99ce09257f6f77e0ad5969156e975ebc4b27

https://preview.redd.it/rasrsirzw1ld1.png?width=1916&format=png&auto=webp&s=272dbc3c940ce6a9e0bd75d30c7115e86c378664

[ad_2]
2 Comments
  1. >Fatal error: Uncaught Error: Call to undefined function get_header()

    get_header() is a core WP function. My first step would be to reupload the WordPress core. The file containing that function may be missing.

  2. I’m a web developer and WordPress expert offering to build a **free 1-page sample** to showcase my skills. Whether you need a landing page or something simple, I’m here to help. DM me if you’re interested!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer