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

Blank page for wp-admin after i uploaded the website from my localhost to the live server

Try this in your functions.php file:

//fix for cookie error while login.
setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN); 
if ( SITECOOKIEPATH != COOKIEPATH )     
    setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);

Related Posts:

  1. Unable to login and wp-login.php redirects to wp-admin%2F&reauth=1?
  2. Change Login URL Without Plugin
  3. Replace wordpress login logo with custom text
  4. Using /wp-admin works, using /login gives a 404. Why?
  5. FORCE_SSL_ADMIN not working
  6. Use Password Protected Form without the use of wp-login.php
  7. wp-admin – 404 after custom login form
  8. How to fix ‘WordPress redirection loop problem in wp-login.php page’?
  9. WordPress server change – slow admin login time for first time
  10. White screen of death for wp-admin and error for wp-login.php after entering credentials
  11. How to set where user is redirected to after logging in at wp-login?
  12. Why can I log into wp-login.php and not wp-admin.php?
  13. Disable Admin CP authentication (or auto login)
  14. When i try to open Localhost/wordpress/wp-admin . An Error appears ” Registration Has been Disabled” . No login page is shown in the browser
  15. Launch wordpress site to local computer from live website backed-up
  16. Custom login form logo not displaying
  17. WordPress site shows a white page for site/wp_admin. A login returns again to the login screen
  18. Unable to login or reset password via wp-admin
  19. login_enqueue_scripts changes are not reflecting
  20. Organizing Code in your WordPress Theme's functions.php File?
  21. How to check if a user is in a specific role?
  22. Can I rename the wp-admin folder?
  23. How do I Enqueue styles/scripts on Certain /wp-admin Pages?
  24. Changing Admin Menu Labels
  25. Adding custom columns to custom post types
  26. Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?
  27. adding custom stylesheet to wp-admin
  28. Can’t change language (only “English (United States)”)
  29. Is there ANY way to remove comments function and section totally?
  30. How to use “menu_order” field for posts?
  31. “Too many redirects” ONLY when trying to access wp-admin page
  32. How to restrict dashboard access to Admins only?
  33. Admin Page Redirect
  34. Disable dragging of meta boxes?
  35. Toggle admin metabox based upon chosen page template
  36. When moving a WP site, why does wp-admin redirect to old site?
  37. How to disable the “Post Lock/Edit Lock”?
  38. adding the category to the admin column for a custom post type?
  39. How can we make managing lots of pages in WordPress Admin better?
  40. Change page title in admin area
  41. do_shortcode() within Admin Page
  42. How can I control the position in the admin menu of items added by plugins?
  43. Changing the ‘wp-admin’ URL to whatever I want
  44. Unit testing in the WordPress backend (is_admin() is true)
  45. Admin ajax request return 0 with die()
  46. How to prevent access to wp-admin for certain user roles?
  47. How to remove screen options and help links in the admin area?
  48. How to remove the core embed blocks in WordPress 5.6?
  49. How to increase the file size limit for media uploads?
  50. Create WP tutorial for users with admin pointer using next button for navigation
  51. I’m getting a 404 message when I try to access wpadmin
  52. Taxonomy dropdown metabox in the back-end
  53. wordpress wp-admin css not loading
  54. Sort admin menu items
  55. How to order by post meta name in wp admin?
  56. How set defaults on wpLink()
  57. Remove dashboard, use Pages tab as default
  58. How to redirect/rewrite all /wp-login requests
  59. Show all post tags on post edit screen/sidebox
  60. How to hook in and modify the new revisions UI (3.6+)?
  61. How to display a static HTML page while setting up a WordPress site?
  62. Limit widget to certain sidebar?
  63. How can I uninstall a language?
  64. Check if user is admin by user ID
  65. My wordpress site gets redirected automatically to the old site any known solution for this?
  66. Best way to present options for home page in admin?
  67. Use a different domain for SSL
  68. Remove specific items from Quick Edit menu of a Custom Post Type?
  69. How to filter by post-format in admin?
  70. Unable to login to my wordpress site. reauth=1 redirection loop
  71. Add “external” link to admin menu in the backend
  72. How to Layer 7 Load Balance WordPress Backend and Frontend?
  73. Disable image attachment links
  74. How can I improve the line break handling in the WYSIWYG editor?
  75. wp_list_tables bulk actions
  76. Custom column for changing post status via ajax
  77. How do I change the login logo URL and hover title?
  78. Custom login redirects to wp-admin on wrong password
  79. How to remove comments option from wp-admin bar and modify profile icon
  80. Remove “Time to upgrade” message from dashboard
  81. Add header and footer to WP backend
  82. js error on post editing page
  83. How to search post by ID in wp-admin
  84. Remove ‘Custom..’ option in tinyMCE colour swatch
  85. sortable custom column in media library
  86. How to add a custom metabox to the Menu Management admin screen?
  87. how do I force a single column layout in screen layout
  88. How can I enable Google Analytics on a file download link?
  89. What is the best method to close off the backend?
  90. How to add custom submenu links in wp-admin menus?
  91. How to list ALL Pages in the dashboard?
  92. .htaccess in wp-admin produces a redirect loop
  93. Highlight custom widgets in the admin area?
  94. Make fonts.com font work in TinyMCE (iframe referrer issue)
  95. How to Remove All Admin Bar Menu Items?
  96. Uploading Images in the Link Manager
  97. How can I make a Live Demo of my Premium Plugin? Are there security risks?
  98. Share same domain for wp-admin but for different website
  99. Custom ReCaptcha Login
  100. How to allow users login to WP from external domain and make REST requests
Categories wp-admin Tags wp-admin, wp-login-form
Change “en-US” to “en”
Is there anyway to use relative link instead of absolute link?

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