Something went wrong with your installation. As commented by @Sumit get_header() is a core function and cannot be undefined.
To troubleshoot:
Reinstall WordPress and enable WP_DEBUG in wp_config.php:
define( 'WP_DEBUG', true );
If it is on a live site you might want to use this instead:
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
This will list your errors in an error log in the wp-content folder.
Your site should display normally using a default theme with no errors.
Activate your theme and check for errors.
Related Posts:
- Opinions and recommendations on the best barebones base theme [closed]
- Dynamic template serving, change theme_root using add_filter from current theme
- How to override the “inc” folder (or any folder) in a theme using child theme?
- Is it possible to access Gutenbergs reusable blocks in CPT block templates?
- Loading template files from a subfolder in my theme?
- How can I get wp_head() as a string instead of echoing it?
- The style.css stylesheet doesn’t contain a valid theme header
- WordPress as Backend, Laravel Front End: How to connect Routes?
- Can I obtain differents links for different installed theme?
- WordPress ignoring specified template for front page. Why?
- Can I apply a WP theme to a specific custom page template?
- Change Theme from Plugin based on query_vars
- How to add template to theme in WP
- What is the WordPress Pinecone sitting on top of? [closed]
- Added a new template file to a theme – get Call to undefined function error
- How to find a file in WordPress themes [closed]
- Display a specific dynamic sidebar widgets on a specific page
- Child theme Page Template not loading
- Creating new templates in child themes breaks layout
- Get WordPress to use another custom “author.php” file (“custom-author-file.php”)
- How to find out if page_for_posts is showing (in order to style menu item)
- Remove transparancy in Sydney theme’s headerimage
- Search form not finding content in template page
- display comment form for specific post id
- Selected template is not respected for home page in WordPress
- Does wordpress templates always in files or in database?
- Putting two themes together to create a complete site
- Is there a way to upgrade a theme without losing custom templates?
- How to deactivate the text, that appears, when you hovering over topbar tabs? [closed]
- Need help with making a website where user can add products
- Advantages of wordpress theme vs wordpress as a backend only [closed]
- What’s a good way to unenqueue all scripts for a single template page?
- Blank line before doctype
- Using the same database on another Subdomain
- Trying to fix a website that was built with WordPress and then taken off of it
- Changing an image in header.php
- How to add some php code in header.php using plugin
- Moving the search bar to be in menu bar
- How to use only scripts from new theme?
- Conditional config WP_HOME/WP_SITEURL does not update bloginfo(‘template_url’)?
- How to get ONLY the URL of the image that show_media_header returns?
- Create Custom Attachment Template That is Processed from Plugin Folder?
- Multiple sub directories for theme template pages
- Insert the current theme header into an external HTML/XHTML file
- How to remove the tripadvisor logo from the wordpress theme?
- Please help me clear my confusions about WordPress
- WordPress 2022 template, how to see the blocks added in post template on post edit?
- Can I use non-wordpress themes in WordPress?
- WordPress keeps switching back to empty template
- Removing a widget via theme editor
- How do I bring a page template into a new theme with separate styling?
- 12 column grid layout
- How do I get the featured image to sit below the header in the twenty nineteen theme?
- I want to remove part of a header
- Sticky header for wordpress changes size and logo size as I scroll down
- Theme Dev | Convert Template to Theme
- Revamping a WordPress mirror site – and I don’t know where to start!
- What is the template file for topic layouts in bbPress?
- Will this js code work in a page template?
- How to find out which template the HTML content comes from?
- Create a child Theme or custom Theme
- How to modify/ customise NextGen Gallery’s templates? [closed]
- wordpress template page Usage [duplicate]
- Overwrite template-tags.php in child theme
- How to disable primary main site header and logo in wordpress (Astra Theme) [closed]
- What happens to bespoke page template references on theme change?
- How to add sidebar to homepage programmatically?
- Get header/footer list for a theme
- Homepage not loading correctly, only after refreshing
- How to clone a theme template from within WordPress? [closed]
- Does WordPress maintain revisions for index.html template?
- what use have double styles in index.html?
- How to work on a new Theme for a site while still keeping the old Theme live
- Loading Bootstrap with wp_enqueue_style and wp_enqueue_script
- WordPress use of @ in core files
- Unable to upload/install any WordPress themes
- How to switch theme if the current user is admin?
- Getting a ‘slide down’ js panel implemented within WP
- Why does wordpress add Theme not list a specific theme anymore?
- Custom post type is using the index.php template
- current_user_can(‘manage_options’) causes white screen of death?
- How to change wordpress gutenberg editor font to match default theme font?
- Facebook Icon on top of WordPress Site Header and Top Bar
- How to make wordpress theme option page in columns?
- 404 not working, going to homepage; how to fix?
- Local LAMP Stack on Linux Mint theme upload fails
- How do WordPress themes work in relation to content?
- Custom CSS is overwritten by WordPress?
- Incorrect Theme and Upload URLs After Migration
- Target Internal Link Of Another Page On Website
- Lost for direction on how to continue building a theme
- How to change images size after theme modification?
- Unable to access new installed theme
- Using a page (Blog template) for home page blog posts is problematic?
- I can’t install theme: theme install failed
- Can’t install vEstate Real Estate WP Themes
- Setting colors in theme.json changes default font size and family in backend
- What’s the best way to go from a design to a customized WordPress site?
- Alternative to Underscore.me for gen custom blank theme [closed]
- how to get json file in wordpress template in wordpress