<?
} else {
} ?>
This is your problem: PHP short opening tags were deprecated in PHP 7.4 and completely removed in 8.0, so while your old server may have had 8.2.18 installed it wasn’t using it to run the site (versions of PHP can exist side by side). Replace the <?
with <?php
and it should work again.
Related Posts:
- Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error
- Change login error messages
- Notice: Undefined index: host in /var/www/html/wp-includes/canonical.php on line 445
- Notice: Constant WP_POST_REVISIONS already defined
- How to stop certain warning logging in error.log?
- Error 404 Page Not Found When Updating a Post or Page
- Debug mode shows Strict Standards
- Debugging ‘Object of class WP_Query could not be converted to int’ error
- Displaying oEmbed errors?
- “Apache HTTP Service has stopped working” with WP Query in WordPress 2.9.2
- Add image only in first post
- Showing “ Notice: Undefined variable:” and “ Notice: Trying to get property of non-object”
- Publishing Time – WordPress Plain White Screen with No Error
- Sodium compat error
- Fatal error: require(): Failed opening required ‘WP_DIRwp-blog-header.php’
- add_sub_menu page() to be replaced by add_theme_page()
- Removing warnings and notices from production servers
- : Failed to load resource
- What does this error mean? WordPress database error: [MySQL server has gone away]
- Fatal error: Call to undefined function is_multisite()
- Error trying to publish immediately. Post status = future (Missed schedule error)
- Form Post results in 404 Not Found [duplicate]
- WordPress white screen with word ‘error’ [closed]
- File does not exist – wp-index.php
- REST : how do you handle the rest_no_route error?
- I need https::/mysite.com instead of https::/mysite.com/wordpress
- Nginx 404, 500 errors and WordPress
- Warning: Invalid argument supplied for foreach() in portfolio-list.php [closed]
- “Undefined index” in wp-includes/media.php
- Can’t post to my WordPress site
- Error message prevents access to WP
- I could not access my website wp-admin after installing SSL. And error with mixed content
- Page Not Found on categories / tags / pages
- is there any function to store logs & send mail to admin?
- Error on moving WordPress site to Host from Local installation
- Visual editor become blank after updating an article
- wp_remote_get sslv3 alert handshake failure
- Getting notices on fresh 3.6.1 install
- Error after moving WordPress installation
- Declare Global Variable In OOP PHP
- How can I fix buggy WordPress dashboard [duplicate]
- I was adding the custom CSS & JS using hooks and there was this error even I didn’t touch the wp-class-hook
- Why can I not execute php files under the wp-includes folder?
- Enqueued stylesheet appends query string, causing “SyntaxError: Invalid or unexpected token”
- WordPress custom plugin gives error
- Can’t access my site please help
- WP displays “some_strange_number Version” in the bottom right corner
- @file_get_contents and wp_remote_get
- Headers already sent by
- Failed: Filesystem preventing downloads. ( ftpext)
- Code snippet to display ID gives critical error
- I tried to build a theme from scratch and it crashed everything
- error log bloated by add_view
- Unable to locate WordPress content directory
- WP Core Update Issue
- Cannot upgrade to 4.0 – get SSL certificate error
- Fatal Error: get_header();
- Error when setting cookie
- download count29.php whene loading site [closed]
- My new WordPress blog keeps refreshing in Chrome browser
- Of thumbnails and folder permissions
- Media dint apper in wordpress media library after uploaded through file manager
- When trying to access home page, WordPress appends /wordpress to domain name which gives 404 error
- How to turn off WP error handling, but turn on php error handling?
- Fatal error: Uncaught Error: Maximum function nesting level of ‘5000’ reached
- Suddenly get errors in admin when editing post type
- Cannot update WordPress Core via admin dashboard
- When writing a new blog post error message ‘ sorry, you are not allowed to edit this page ‘
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘add_custom_scripts’ not found or invalid function name
- Header already sent, error shows core files
- : this page isn’t working. is unable to handle the request. Http error 500
- admin page error
- Theme unit test error
- Installation problem with wordpress xampp
- WordPress fails when my post is larger than 1400 words
- Undefined index action Cannot modify header
- Unnessary character on post after restore
- wp_list _table You do not have sufficient permissions to access this page error
- Dashboard doesn’t work propertly
- Weird Parse Error on Uploaded File
- Why I am having error Call to undefined function get_header()?
- Fatal error: Cannot declare class WP_User_Request, because the name is already in use?
- Error establishing a database connection in godaddy.com
- WordPress doesn’t recognise my email address and I’m missing the wp-config file in PHPmyadmin cPanel to make alterations
- Parse error: syntax error, unexpected ‘$q74ed’ (T_VARIABLE)
- Fatal error: Call to a member function update() on a non-object in my resturant plugin file restaurants.php
- Fatal error: require(): Failed opening required ‘load.php’
- Can (slow) Internet speed get you a 500 server error? [closed]
- Whole right area of wordpress admin dashboard not showing
- Better error messages upon critical errors – HTTP Error 500
- WordPress Customizer not loading
- Is it possible to empty debug.log programmatically?
- File doesn’t exist! in wordpress function.php file while creating new post or page
- Change Registration Error Message
- syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW) [closed]
- Error code 499 on specific cron job
- Please Help Me, How to Fix PHP Error Undefined Array Key “srcset”
- My websit dosent worke http errors 500
- Customizing login message
- 403 forbidden in admin console: fix seems to be temporary and then error is back