<?php the_post_thumbnail(thumbnail); ?> should be <?php the_post_thumbnail( "thumbnail" ); ?>. thumbnail is not a defined constant, and the updated version of PHP is no longer converting undefined constants into strings for you.
It appears that PHP changed the “undefined constants” message from a notice to a fatal error sometime around version 8.
Related Posts:
- How to Update an old theme for the latest wordpress version
- Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme
- Remove update nags for non-admins [duplicate]
- Error Warning: Declaration of description_walker::start_el after PHP upgrade [duplicate]
- cURL 28 error after switch from to brew php 7.2 on localhost
- How to export/import theme customizer settings?
- Check php version before theme activation
- Permanently remove first image from posts
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- One button to change all settings in theme customizer?
- Activate different theme for temporary preview
- Twitter feed is showing blank in WP site [closed]
- Design view breaking on Pages
- Getting a fatal error while updating
- How do I hardcode a WordPress shortcode into my theme?
- Passing array in add_option()
- Create a quick start wordpress installation [closed]
- How should I best target dynamically served content?
- How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)
- Changing the template hierarchy
- How to Insert Shortcodes into Theme?
- Warning: Use of undefined constant HTTP_USER_AGENT – assumed ‘HTTP_USER_AGENT’ (this will throw an Error in a future version of PHP)
- Set WordPress Default Template
- Custom Theme, Custom shortcode not working
- Adding custom directory and PHP files in wordpress
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- Show full posts in archive
- Connect WordPress with SharePoint [closed]
- Reconfiguring WordPress site
- adding custom user input fields in WordPress admin dashboard gives error The link you followed has expired. Please try again
- Move category description below post list in blog
- Customizer: active_callback and sanitize_callback incompatibility?
- 404 error when I acess the second page of post-type
- proper way to add css using functions.php?
- What does this mean in wordpress? Easy question
- Showing latest post without 301 redirect
- Translate wordpress date from Italian to English
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- WordPress Customizer Default Image
- Do I have anything to worry about when switching to a default theme to test for plugin conflictions?
- How to integrate noimage picture in this code
- Need oop for wordpress theme? [duplicate]
- How to add the sidebar to all the pages except the home page? [closed]
- Header not properly displaying on archive.php
- Save Custom CSS file in the upload folder dynamically?
- Warning: printf(): Too few arguments in helpers.php file
- Environment to do updates to legacy (4.7) version of WP while staying on php 5.6?
- WordPress and PHP Version Upgrade issue [closed]
- home.php show blog posts as grid view
- Amend theme php to include certain category in header
- Override index with a custom PHP page
- Randomize Color Scheme Selection in Theme
- Accidentally deleted php code in WordPress website [closed]
- How can I assign separate stylesheets to different pages?
- How to make sure relative URL works when site is not on root domain?
- Commas in Tag Cloud
- Is there a (offical) way for a theme to deactivate itself and show a message in admin?
- Wrap title and excerpt in a div (latest posts block)
- how to get wordpress page url php code [duplicate]
- How to put search bar & logo in the “primary navigation” storefront theme?
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- I am having issue in divi woocomerce checkout module. (DIVI theme)
- Styling a category link
- remove_action from parent theme using child theme functions.php
- Commenting requires wordpress login, wordpress discussion and post comments tick boxes are checked
- Conditional Banners
- The style.php file inside theme-engine folder has other content on FTP
- How to override theme’s public static function inside of a trait?
- Invalid Argument foreach
- How to Change Site Elements based on referring URL
- how to use 2 index.php file One for mobile and one for desktop
- PHP Error in WordPress Theme
- loop to return tags in woocommerce in alphabetical order?
- need to edit php file of child theme to remove an element
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- Use Custiomizer to setup meta theme color tag
- Rotating Header Images
- Custom Theme, Editor won’t wrap text (i.e. change width)
- pages disable after wordpress update
- Two theme locations for two menus, but only one is showing up
- Editted Theme Files Get Updated/Reverted Every So Often
- WordPress pagination broken on blog page, working for search results page
- two wordpress sites, two themes, one database, same content
- calling a function from a class in your template
- Showing custom field contents without listing description
- Hide cart when empty [closed]
- WP Knowledge Base Theme bug – Subcategories and Articles, Need to change WP_Query
- Inserting A Feed and Sidebar into an HTML Page
- how to register a second page-template
- Gallery requires a featured image but does not show it in posts/pages
- Catchable fatal error in appcloud free theme by Tokokoo
- How to create and add js and css file when server is not on my PC?
- Link a lightbox thumbnail to a post instead of opening the lightbox
- a problem in class in class-wp-hook.php
- Using Featured Image as Hero Background in Word Press
- Gulp dev environment set up for WordPress theme development
- What is considered good practice for registering menu locations?
- WordPress theme requires PHP v >=8.1 – How to a dd different PHP version to docker-composer
- The theme doesn’t load css and JS files doesn’t load in functions.php
- WordPress generating Undefined Variable warning