Community Forums › Forums › Archived Forums › General Discussion › Help! Changed theme but got white screen of death
- This topic has 10 replies, 3 voices, and was last updated 9 years ago by marksalvatore.
-
AuthorPosts
-
April 17, 2015 at 7:14 am #148219marksalvatoreMember
I wanted to try working on a copy of my current Genesis theme, so decided to just make a copy of my current theme, switch to that theme and go. However, I forgot to change the "Theme Name" in style.css. What I did was just copied the current theme folder, changed the name of the folder, then used the dashboard to select the new theme. That resulted in the white screen.
To solve this, I figured I could manually change the theme by just updating the database to some existing theme. I ran the following SQL just to get me back to a generic theme:
UPDATE wp_options SET option_value = 'Twenty Fifteen' WHERE option_name = 'template';
UPDATE wp_options SET option_value = 'twentyfifteen' WHERE option_name = 'stylesheet';
UPDATE wp_options SET option_value = 'twentyfifteen' WHERE option_name = 'current_theme';The screen is still deathly white. My guess is that a Genesis theme might be stored a bit differently in the database? What data fields and values need to be updated when switching Genesis themes?
April 17, 2015 at 10:11 am #148243ChristophMemberHi,
no, it's stored exactly the same way.
You might have a genesis specific plugin installed that is causing the white screen now because Genesis is not active.Try to FTP into wp-content and rename the plugin folder.
April 17, 2015 at 10:46 am #148248marksalvatoreMemberThanks Christoph. I changed the name of the plugin folder, but still no luck.
April 17, 2015 at 11:11 am #148252ChristophMemberHmm... Try renaming the two theme folders.
That´s usually the shortcut version. Rename the folder of theme causing problems and WordPress will revert to the default theme automatically...
April 17, 2015 at 11:48 am #148259upthinkParticipantYou could also try to check the server error log (if you have access to it) to see if there is an error that is causing this
April 17, 2015 at 12:08 pm #148262marksalvatoreMemberRenaming the problem theme folder didn't solve it.
The log says it can't load a required file:
[17-Apr-2015 18:00:25 UTC] PHP Fatal error: require() [function.require]: Failed opening required '/Users/user/Sites/project/wp-content/themes/Twenty Fifteen/inc/custom-header.php' (include_path='.:/Applications/MAMP/bin/php/php5.3.29/lib/php') in /Users/user/Sites/project/wp-content/themes/twentyfifteen/functions.php on line 317twentyfifteen is a fresh set of files and both functions.php and custom-header.php are present. Maybe I need to use an escape character in the database for the space between Twenty and Fifteen?
April 17, 2015 at 12:15 pm #148264marksalvatoreMemberThe space in the theme name had nothing to do with it. Obviously I'm reaching here. See any issue in the log entry I put in the previous post?
April 17, 2015 at 12:55 pm #148267ChristophMemberSo you tried fixing the two different locations (/wp-content/Twenty Fifteen/ vs. /wp-content/twentyfifteen/) and it didn't make a difference?
April 17, 2015 at 1:59 pm #148271marksalvatoreMemberThose two files didn't need "fixing" if by that you mean placed in the expected path. They're both already there. What does "functions.require" refer to?
April 17, 2015 at 6:13 pm #148284upthinkParticipantI suggest you do this
- Take a backup of your existing theme folder - especially the genesis child theme(s) you want to work with
- Rename/Remove the existing themes folder
- Create a themes folder (it should be exactly spelled as "themes"
- Download a fresh copy of the Twenty fifteen theme and place it there (once you place that theme the particular theme directory is exactly "twentyfifteen" unless you modify it - which you don't need to
This should hopefully help you to get the site online and then you can place the old genesis and child theme to see what is going on
April 18, 2015 at 4:44 am #148315marksalvatoreMemberThe problem had to do with the values I assigned in my update queries. I confused template with current_theme.
I assigned:
template = Twenty Fifteen
stylesheet = twentyfifteen
current_theme = Twenty Fifteenwhen it should have been,
template = twentyfifteen
stylesheet = twentyfifteen
current_theme = Twenty Fifteen -
AuthorPosts
- The topic ‘Help! Changed theme but got white screen of death’ is closed to new replies.