It seems that the issue was not with the code itself but with ?php and ?> tags throughout the functions.php file. I copied all the contents into notepad++ and removed all the tags other than the top tag and the code works fine and I can now once again log in.
Related Posts:
- Change the footer text on the login page
- How to resolve error “Cookies are blocked due to unexpected output.”?
- “Can’t use function return value in write context” error
- Login/logout in header
- A non-numeric value encountered in /wp-includes/functions.php on line 68
- getting logged in user info (wp-load.php) from parent directory
- Log in / Log Out Custom Button
- How to display login form anywhere, when user isn’t logged in, without redirecting?
- Help with accessing wp-admin page and resolving error messages
- Programmatically revert to backup .htaccess a possibility?
- Cannot find the php_ini configuration file to find my error log to see why my code is not working
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Restrict wordpress access to logged users only
- Menu not updating for logged in users after redirect
- how to use auth_redirect() redirect visitor to login page if they are not login when they click account and order page?
- Refresh page after login with litespeed cache
- Site title not showing. Please help me
- Need help with AJAX login to call php in functions.php to handle redirects based on user cap (role)
- is_user_logged_in() not working in homepage
- Functions are causing errors
- syntax error unexpected ‘}’ at 364 line
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- WP Debug enabled Undefined index error in a widget
- Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme
- I can’t log into my website , it says “Error: Cookies are blocked due to unexpected output”
- start_lvl Ignored in Custom walker_nav_menu
- Enforcing password complexity
- PHP Catchable fatal error: Object of class WP_Error could not be converted to string
- Check if a menu is empty?
- Dynamically change feature image in customiser
- Creating wordpress user registration form
- Get the title before comma
- category not display in word press grammatically
- Getting a fatal error while updating
- Display 4 chronological posts starting with a random post
- my function doesn’t return my post from today
- “Notice: Undefined variable: content” is showing [closed]
- How to break down importing of feeds
- WordPress shows registration link for non logged users
- get_the_terms – only top level
- Have CSS Class Added with `is_page()` WP function
- Slide in Panel WordPress Post
- Use wp_get_recent_posts with search term
- Calculations in functions.php [closed]
- comments_number display outside specified span
- Choose To Display Post Views With An Options Panel
- Prevent Data Resubmission On Page refresh
- Get_avatar filter?
- WordPress custom login form using Ajax
- Passing the custom field values in the wp_get_current_user array function
- Why is my cookie not unsetting upon logout? [closed]
- Get value from shortcode to do something
- PHP 8, AJAX mail form to function.php doesn’t work
- Ajax request not sending to server and returning – wp-admin/admin-ajax.php 400
- How to create a php variable using WordPress the_title() function
- Can’t find infinite loop cause
- how to make custom ajax handler?
- How to disable controls in theme customizer?
- register_taxonomy() take much queries
- is there a benefit in using a constant over get_stylesheet_directory_uri?
- WooCommerce Tabs [closed]
- ::before on open/close function [closed]
- REQUIRED: get_bloginfo(‘template_url’) was found in the file search.php. Use get_template_directory_uri() instead
- How to check if a PHP string is different than meta field?
- Displaying posts based on category
- Creating a mobile site by adding a new class to the body tag from functions.php
- Issue with fetching mysql data and displaying results via shortcode in webpage
- PHP-warning in post-template.php and no loading content on pages
- Noindex Posts From Certain Authors In WordPress
- Show all tags within a category?
- This function is deprecated; use mysql_real_escape_string() instead
- Image rotation issue (horizontal picture uploading as vertical) — Exif issue?
- How can I alter this code to accept a slug as well as an ID?
- Enqueueing a code block from an options framework
- Adding a ‘style=’ bit to image_send_to_editor output
- Post Views Code Hacks
- Auto create Nextgen Gallery on post creation [closed]
- Hide media for non logged in users
- Adding an “Upgrade Subscription” button to an Elementor page
- Jetengine Forms – Media upload path
- Products listing check if meta checkbox is checked
- Check if user had autologin & if so, logout
- White screen after migrating site, but wp-admin works fine. Disabling all plugins, applying default theme and enabling debug mode does nothing
- How to preload header logo image in WordPress? like what’s the code and where do I put it?
- Contain multiple page templates in one PHP custom template file in WordPress?
- How do I reopen the (Popup Maker) after entering the correct password for a password protected page?
- Display metabox galleries on specific page template in admin editor
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- Custom plugin: how do I call a PHP file if settings option is set to true?
- Edit a function to take different actions based on user role
- How to put 2 php codes in functions.php without site crashing
- WordPress Bad Request Error 400
- Why am I getting syntax error, unexpected ‘endwhile’ (T_ENDWHILE) on single.php
- wp-login.php?redirect_to=https problem
- WP HTTP API call response
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- Private messaging – Getting and displaying the avatar/url of a message recipient
- Postmeta not saving
- Fix My Custom Function: Remove Automatic
- Alternative to php echo within code