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

Can’t login unless twentyfifteen theme is active

Because the problem is theme specific, I guessed that perhaps something in functions.php could be the culprit. I renamed the file to some random string and this resolved the problem.

I then experimented by commenting out sections of functions.phpand discovered that wp_reset_password(...) caused the problem. I needed it only once anyway, so I removed it and I’m now living happily ever after.

Related Posts:

  1. after_setup_theme always runs
  2. Enqueue a stylesheet for login page and make it appear in head element
  3. How to use logout function on custom menu link?
  4. How to customize wordpress login/register pages?
  5. Authentication / login mechanism (non wp-admin)
  6. How do I create a specific login page for a specific user?
  7. Default image size not working
  8. How to remove text “Log In” from login page
  9. Why is switching between themes breaking my child theme?
  10. annoying “Confirm Form Resubmission” message
  11. TinyMCE strips content while pasting. Possibly a bug
  12. Menu items description? Custom Walker for wp_nav_menu()
  13. How to define and link full path to css located at a random folder on header.php
  14. Sizing screenshot.png without losing aspect ratio
  15. Software for WordPress Theme and Plugin Development? [closed]
  16. When to use is_home() vs is_front_page()?
  17. What is the preferred way to add custom javascript files to the site?
  18. Get the blog page URL set in Options
  19. How to create .pot files with POedit?
  20. How do I get the theme URL in PHP?
  21. Why when I submit a form in wordpress it loads a 404 page though URL is correct
  22. What is the constant WP_USE_THEMES for?
  23. Worthwhile to restrict direct access of theme files?
  24. How Do I Protect My Premium WordPress App Theme from Copying?
  25. How to detect mobile devices and present them a specific theme?
  26. Using wp_add_inline_style without a stylesheet
  27. How to add posts to custom menus?
  28. WordPress Theme Preview Image
  29. How To extend WP_Customize_Control
  30. What is the difference between front-page.php and home.php? [duplicate]
  31. How can I get page slug
  32. Does the functions.php file ever get called during an AJAX call? Debug AJAX
  33. When to use _e and __ for the translation?
  34. What is a Theme textdomain?
  35. How to show a custom meta box on the “Quick Edit” screen?
  36. How to add CSS class to custom logo?
  37. How to add custom css file in theme?
  38. How important is it to enqueue a theme’s stylesheet?
  39. CSS not updating in browser when I change it
  40. Display Search Result Count
  41. wp_nav_menu(), how to change class?
  42. theme path in javascript file
  43. Is wp_is_mobile() effective?
  44. Display Menu Name using wp_nav_menu
  45. Making update notification functionality for my themes
  46. What questions do you ask when asked to give an estimate on theme development?
  47. How to remove dashicons.min.css from frontend?
  48. How do I remove a pre-existing customizer setting?
  49. Minimum Template Files for Theme Development
  50. What’s the difference between home.php and index.php?
  51. pass object/JSON to wp_localize_script
  52. get_template_part vs action hooks in themes
  53. Theme Activate Hook
  54. Solutions for generating dynamic javascript / CSS
  55. wp_redirect() – headers already sent
  56. Can I create my own “Recent Posts” widget or customize the existing one?
  57. Custom single template for a specific category
  58. how can I add an icon/image for a child theme?
  59. How can I add a URL field to the attachments window?
  60. The the_post_thumbnail without srcset?
  61. The proper way to include/require PHP files in WordPress
  62. Get the first image from post content (eg.: hotlinked images)
  63. When to use add_action(‘init’) vs add_action(‘wp_enqueue_scripts’)
  64. Getting failure when using filemtime() with wp_enqueue_style
  65. Do I actually need to link my theme’s style.css in the theme files
  66. Why is wp_head() creating a top margin at the top of my theme header?
  67. How to store widget fields data as an array?
  68. How do I add version control to my workflow?
  69. Using classes instead of global functions in functions.php
  70. WordPress API Menu/Submenu Order
  71. How can I display a menu on certain pages only?
  72. Adding a div to wrap widget content after the widget title
  73. How to insert a logo in the header?
  74. How to set permalink structure via functions.php
  75. What is $post_id? is it a global variable in WordPress?
  76. How to override pluggable function in theme?
  77. How to move page template files like page-{slug}.php to a sub-directory?
  78. WooCommerce shop page to use my custom template [closed]
  79. Theme customizer – settings order
  80. What is the difference between wp_register_sidebar_widget and register_widget?
  81. Should we use get_template_part() in functions files instead of include_once?
  82. Reset positions of metaboxes in admin
  83. CSS classes for theme
  84. “Quick Edit” > update clears out my custom meta values
  85. How to enqueue script if widget is displayed on page?
  86. Custom Image section in Customizer
  87. A way to automatically install pages on theme install?
  88. Get entered value of customiser field for live preview
  89. Add custom classes to anchor in wp_nav_menu
  90. How to remove search bar from a wordpress theme? [closed]
  91. Upgrade from 5.0.4 to 5.1.1 causes $theme to be null
  92. Bestway To Define Theme and Plugin path and url
  93. Is there a has_more_tag() method or equivalent?
  94. With WordPress themes, where do I store the images and files relatively?
  95. Form to Add Posts to Custom Post Type
  96. What are the advantages and disadvantages of Option Tree over the Customization API?
  97. Should `get_template_directory_uri()` be escaped?
  98. How do I add settings to the Background Options Page?
  99. Can a theme be built in React?
  100. Best practices for monitoring the need for future updates on a theme that I developed?
Categories theme-development Tags bug, login, theme-development
Remove price from Woocommerce variable product dropdown menu
How to use output buffering in WordPress hooked functions?

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