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”
- Wp-login appears White Screen, Error: Cannot modify header information
- Image media upload metabox
- How to remove the cufon script from Dzonia Lite theme [closed]
- How to remove or change the “W” icon in “My Sites”?
- How to: PHP Log Out Link?
- get a simple array of all of the term names that exist in all taxonomies
- How to display posts by current user in a drop down
- Logged in user ID as post ID
- Why is my cookie not unsetting upon logout? [closed]
- How does WordPress insert Paragraphs in posts
- WordPress Access allowed to fewer pages till user logs in
- Linking text within textarea of custom meta box
- User management system similar to wordpress one?
- Show css depending on activity type in BuddyPress activity-loop [closed]
- only show container with next/prev links if they exist?
- PHP Warning: Attempt to read property “term_id” on bool
- How to combine wordpress_logged_in cookies in one cookie?
- Populate dropdown with Child Pages based on Parent Page chosen
- How can I remove a function that has been added to wordpress with add_filter?
- Change the WP Video Shortcode Output
- Show categories then when clicked on a category list all sub category and when clicked show all posts in that sub category
- remove wp floating submenu in wp dashboard
- How to put “Read more” link in Custom Excerpt inside p tag?
- Two Different Links for Same Product – WooCommerce [closed]
- ACF: how do I get the fields and its values of a specific group?
- How to store data from multiple forms using ajax and php
- How to control WordPress image metadata (using Imagick)?
- How to add seperate classes to no-search-result and found-search-result pages on wordrpess search – is_search()
- Get value from shortcode to do something
- PHP 8, AJAX mail form to function.php doesn’t work
- How do I add custom bulk actions to multiple custom post types?
- Error when adding excerpt to the content through functions.php
- Automatically adding new post categories to menu
- Add data attribute to each li in menu
- Get post id in a function when edit/add a post
- Making BuddyPress Activity Stream (Post Type) Featured Images Clickable [closed]
- How to check if a meta value has already been assigned to any user?
- How to complete two other input fields, completed the first
- Prev/Next child navigation for current page modifications?
- Adding rel tag to all external links
- How can I apply_filters from inside a function?
- function to assign user role based on a field from usermeta
- what is the best practice to add new field to an api route
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Programmatic Login from 3rd Party site
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Use DOMDocument with ob_start breaks my HTML code
- Auto-update products after they were published – Woocommerce
- How to prevent WP_Query function from returning all posts when empty?
- Mute Debug Messages from Plugins
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- JS file work only in index page
- Display a specific category of products in shop page and disable code for specific actions
- Woocommerce related product text
- WordPress Script stops suddenly
- esc_html_e() is not translating string in wordpress [closed]
- Removing “wpautop” (auto tags) only on certain pages?
- Fatal error: Uncaught Error: Call to undefined function test()
- How to pick the default selected value in wordpress dropdown?
- Cannot access wp-admin/wp-login.php (WordPress backend) anymore, what could be wrong?
- Using WP-API and SSE not authenticating user ID
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- Validate functions before inserting then into functions.php
- How to retrieve current wordpress profile page URL?
- Firing schema via code in functions.php doesn’t work
- Get page that displays all children of taxonomy parent
- Ajax request not sending to server and returning – wp-admin/admin-ajax.php 400
- get author_name from queried post
- How to debug my custom login form looping intermittently
- Why ajax doesn’t work on certain wordpress hooks?
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- How to call plugin function per site in a multisite?
- Print last modified date only on posts
- different id for same element visual composer [closed]
- Error on wp_default_style After upgrade to php 7