Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Wp-login appears White Screen, Error: Cannot modify header information

Now Here is what I have already did to make it work:

  1. Disabling plugin from FTP

Which plugin?

  1. Switching theme by renaming the selected theme folder
  2. Checking for Space after and before,

After and before what?

  1. Replacing WP files with fresh download

You stopped too soon. PHP is telling you what problems are occurring and you seem to be ignoring the notices and warnings it is giving you.

Let’s read the first Notice:

Notice: automatic_feed_links is deprecated since version 3.0! Use add_theme_support( 'automatic-feed-links' ) instead. 

Now let’s wrap the line and add some explanatory text to make it easier to read:

Problem: The automatic_feed_links() function is deprecated since version 3.0.

Solution: Use add_theme_support( 'automatic-feed-links' ); instead.

  1. Look through the theme and plugin files for a call to the automatic_feed_links() function.
  2. Start with the functions.php theme file.
  3. Comment out that function call: // automatic_feed_links(). (It may not look exactly like this.)
  4. Add a new line below that line.
  5. On the new line add: add_theme_support( 'automatic-feed-links' );
  6. Test the change to see if the Notice for that problem goes away.

Let’s read the second Notice:

Notice: wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/truckgua/public_html/test2/wp-includes/functions.php on line 3012

Now let’s wrap the line and add some explanatory text to make it easier to read:

Problem: The wp_deregister_script() function was called using the wrong hook.

Solution: Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks.

  1. Look through the theme and plugin files for a call to the wp_deregister_script() function.
  2. Start with the functions.php theme file.
  3. Once you find the line with the wp_deregister_script() function call on it look for the name of the user defined function that line is located in.
  4. Now, look for the add_action() function call that points to the user defined function.
  5. Comment out that line as you did above.
  6. Add a new line below that line.
  7. On the new line add: add_action( 'wp_enqueue_scripts', 'the_name of the user defined function' );.
  8. Replace the_name of the user defined function with the name of the function you found in user defined function you found in step 3.
  9. Test the change to see if the Notice for that problem goes away.
  10. If the Notice remains, replace ‘wp_enqueue_scripts’ with ‘admin_enqueue_scripts’ in step 7 and repeat steps 8 and 9.
  11. If the Notice remains, replace ‘admin_enqueue_scripts’ with ‘login_enqueue_scripts’ in step 7 and repeat steps 8 and 9.

Once the all Notices are gone, there will no longer be anything added before the headers and the other Warnings may go away.


These changes may not fix the page. Other errors may be doing that, but the Notices should be fixed first, before continuing with more debugging.

Related Posts:

  1. Adding “Remember Me” in custom login
  2. How build a custom login/register form with error handling?
  3. WordPress 4 invalid username special charachters issue
  4. Anyway to output the registration form like the login form with wp_login_form()?
  5. Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
  6. Infinite loop when logging out using custom login form
  7. How to hide header and footer from page template
  8. Why have on every line
  9. User registration followed by automatic login
  10. How to check if woocommerce is activated in theme
  11. Function to return true if current page has child pages
  12. WordPress Themes and PHP unit
  13. How to determine if WP_DEBUG is enabled? [duplicate]
  14. PHP unit testing WordPress?
  15. Proper use of Output Buffer
  16. Include a external PHP file into a WordPress Custom Template
  17. List of all theme customizer control types?
  18. Need help setting default setting value for radio button in theme customizer
  19. Get author full name
  20. How to change the wp-login.php page title?
  21. Is having multiple theme customizers for different pages possible?
  22. How to export/import theme customizer settings?
  23. Remove Customize Background and Header from Appearance admin menu without CSS or JS
  24. How to remove hardcoded characters from playlists?
  25. function_exists call in function.php
  26. Is it possible to get a theme customizer setting from wp.customize using jquery?
  27. Debugging an error: wp_enqueue_style was called incorrectly
  28. Conditionally loading JavaScript based on the Advanced Custom Fields in the post
  29. Change the footer text on the login page
  30. reason of splitting theme files to multiple files
  31. Changing user_nicename
  32. How to get the registered sidebar’s name by its id?
  33. is there a simple way to list every templates / php files used to generate a specific page?
  34. Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
  35. Dynamically change feature image in customiser
  36. One button to change all settings in theme customizer?
  37. Custom HTML structure in wp_list_categories
  38. Guidance with The Loop for CMS
  39. How to redirect users to custom lostpassword page?
  40. Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
  41. The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
  42. How to use copy() function and paste file in /wp-content/themes directory
  43. Why isn’t my if/elseif/else working correctly here?
  44. How to use SRCSET with get_the_post_thumbnail()?
  45. How to place login logout link on menu that redirects users back to current page?
  46. Design view breaking on Pages
  47. How to turn off redirection from ‘domain.com/login’ to ‘domain.com/wp-login.php’
  48. Adjust the results quantity for Search Results page pagination
  49. Dynamically loaded Theme components based on Customizer Settings values : changes not appearing in Customizer preview – (Workaround found)
  50. How can I add a class to a single menu item?
  51. Multiple do_shortcode($content) within one shortcode
  52. List authors with posts in a category
  53. Understanding WordPress child theme custom JS loading
  54. How can I loop into two different DIVS without repeating the DIVs
  55. Removing unnecessary wordpress files
  56. How to resolve error “Cookies are blocked due to unexpected output.”?
  57. Remove css styles from specific page
  58. Use different javascript files for each page on website
  59. WordPress loop specific thumbnail size
  60. Using a nonce in a Custom Login Form
  61. Is the regular ajax request method safe or I should use admin-ajax.php?
  62. Show different Customizer Settings on Page-Tamplates
  63. How to get custom image size for image uploaded in Customizer
  64. Passing array in add_option()
  65. Constructing a custom login form using ajax
  66. automated tests as a user?
  67. do not show web page section when using advanced custom fields pro
  68. Remove “Remember Me” from login form
  69. Is it possible to use the featured image of a page as a css background without inlining?
  70. PHP Customization: Taxonomies and Queries, why? [closed]
  71. I think emoji are killing my WordPress site… How can I debug?
  72. Widgets not showing in my custom theme
  73. How do I list the_tags() into HTML data-attribute
  74. How do I translate this string – PHP syntax question
  75. Site Health : An active PHP session was detected
  76. Switching between custom templates in a post type of the admin menu
  77. Remove username in emails or swap username for email
  78. Am I not understanding plugins?
  79. woocommerce and is_user_logged_in() if not redirect to homepage
  80. Using Font Awesome as post thumbnail
  81. Can I change a variable in a content part while calling it?
  82. How to make thumbnail image fit into a div where image dimentions are completely different?
  83. Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
  84. Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
  85. How to display recent posts on home page with custom HTML
  86. Check if user is logged in when clicking certain links on certain pages
  87. Remove annoying WP Adminbar CSS
  88. What is the fastest way to load PHP functions that are only used in one theme template?
  89. My Own layout in WooCommerce pages [closed]
  90. PHP If user is logged in & on home page redirect
  91. WordPress shows registration link for non logged users
  92. Differences when using the the_time and the_date functions
  93. Exclude posts from homepage having a specified tag
  94. Why is this Ajax not working?
  95. How do I access the media settings
  96. How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)
  97. Changing the template hierarchy
  98. Creating login session via CURL
  99. Change WordPress default registration error text [Error: This username is invalid because it uses illegal characters. Please enter a valid username.]
  100. using add_action for a header hook that has an additional parameter
Categories PHP Tags login, php, theme-development, wp-login-form
Masonry and Jetpack Infinite Scroll – overlap issue
Using WP Rewrite, but just not “getting it”

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress