When LightStart is activated (or maintenance mode is enabled and later disabled), the show_on_front option in wp_options is changed from posts to page, but page_on_front remains 0. This puts WordPress into a broken in-between state where front-page.php no longer loads, and the homepage falls through to index.php showing unstyled posts.
The issue persists after:
- Disabling maintenance mode
- Deactivating the plugin
- Rolling back to a previous plugin version
- Clearing browser cache / testing logged-out
Steps to reproduce
- Set up a WordPress site with a theme that uses a
front-page.php template.
- Go to Settings → Reading and set the homepage display to "Your latest posts".
- Confirm the homepage loads correctly via
front-page.php.
- Install and activate LightStart.
- Enable maintenance mode
- Do some normal work (edit a post or two).
- Then disable it.
- Visit the homepage.
Expected: Homepage renders using front-page.php.
Actual: Homepage shows unstyled posts via index.php.
Root cause
Querying the database confirms the corruption:
SELECT option_name, option_value FROM wp_options
WHERE option_name IN ('show_on_front', 'page_on_front');
| option_name |
option_value |
| show_on_front |
page |
| page_on_front |
0 |
show_on_front has been flipped to page, but no page is assigned (page_on_front = 0). WordPress then evaluates is_home() as true but is_front_page() as false, so the template hierarchy skips front-page.php entirely and falls through to index.php.
The likely cause is that LightStart's maintenance-mode logic sets show_on_front to page (to serve its own landing page) but does not restore the original value on deactivation or when maintenance mode is toggled off.
Workaround
Running this query restores the homepage:
UPDATE wp_options SET option_value = 'posts' WHERE option_name = 'show_on_front';
https://wordpress.org/support/topic/lightstart-activation-preventing-front-page-php-from-loading/
When LightStart is activated (or maintenance mode is enabled and later disabled), the
show_on_frontoption inwp_optionsis changed frompoststopage, butpage_on_frontremains0. This puts WordPress into a broken in-between state wherefront-page.phpno longer loads, and the homepage falls through toindex.phpshowing unstyled posts.The issue persists after:
Steps to reproduce
front-page.phptemplate.front-page.php.Expected: Homepage renders using
front-page.php.Actual: Homepage shows unstyled posts via
index.php.Root cause
Querying the database confirms the corruption:
show_on_fronthas been flipped topage, but no page is assigned (page_on_front = 0). WordPress then evaluatesis_home()astruebutis_front_page()asfalse, so the template hierarchy skipsfront-page.phpentirely and falls through toindex.php.The likely cause is that LightStart's maintenance-mode logic sets
show_on_fronttopage(to serve its own landing page) but does not restore the original value on deactivation or when maintenance mode is toggled off.Workaround
Running this query restores the homepage:
https://wordpress.org/support/topic/lightstart-activation-preventing-front-page-php-from-loading/