Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme shows a white screen on a fresh WP install #34

Open
schrauger opened this issue Jul 12, 2018 · 4 comments
Open

Theme shows a white screen on a fresh WP install #34

schrauger opened this issue Jul 12, 2018 · 4 comments
Assignees
Labels

Comments

@schrauger
Copy link
Contributor

The theme crashes if you install this on a fresh WP instance. There is one extra setting that must take place for the theme to work.

WP Admins need to first change an option in Settings->Reading. The Your homepage displays option must be set to A static page with the homepage defined. If it's set to Your latest posts, the theme will crash.

You can modify this setting in PHP, so it might be prudent to add code to do this when activating this theme, since this theme doesn't work when the setting isn't set properly.

update_option( 'page_on_front', $the_page_ID );
update_option( 'show_on_front', 'page' );

See also:

https://kuttler.eu/en/code/set-static-front-page-and-blog-page-programmatically-in-wordpress/

@jmbarne3
Copy link
Contributor

Hello! Could you provide us with the version you're currently using on your site?

The way WordPress template system works, WordPress is going to attempt the following:

  1. If no static home page is selected, then load latest posts.
  2. If a front-page.php template is available in the theme, use it first. We don't have a front-page.php specified, so it moves onto the next case.
  3. Since we're using latest posts at this point, it will now look for a home.php template. We don't have one of these in the theme either, so it moves onto the next step.
  4. When all of the above fails, it gets the index.php template file - which must exist in a theme - and which we do have in this theme here.

I took the following steps in attempting to reproduce the problem locally. If you did something other than these steps, please let us know so we can try again to reproduce it:

  1. Installed the theme by pulling it down via git into my theme directory.
  2. Created a new site on my local multisite.
  3. Enabled the theme for the new site.
  4. Went to the dashboard of the new site and enabled the theme.
  5. Went to the homepage and saw an error was being thrown about get_field not being defined.
  6. Activated the Advanced Custom Fields plugin.
  7. Went back to the homepage and got the default "Latest Posts" version of the homepage.

In addition to replying with your setup steps (if any are different) and the version of the theme you're running, if you could message us via slack with some details on your hosting, I think it may be related to the issue.

Thank you!

@jmbarne3 jmbarne3 self-assigned this Jul 12, 2018
@jmbarne3 jmbarne3 added the bug label Jul 12, 2018
@schrauger
Copy link
Contributor Author

I'm working with our college's IT department to get WordPress set up on their Windows IIS servers. It's their first WordPress site, so we've been working on multiple issues. You're probably correct in that it's likely a configuration issue. I was able to set up a fresh install on my local machine (running linux, nginx, mysql, php7) without any issues after following the normal setup steps.

The college IT servers are running Windows IIS with PHP 7. I only have experience with Linux servers, so I'm helping them mainly by finding articles about hosting WordPress on IIS and giving directions based on that.

Do you know of any IIS specific configuration that needs to happen for this theme to work correctly?

@schrauger
Copy link
Contributor Author

@jmbarne3 Is there a way to debug the issue we're seeing? This is the first WordPress site that our IT department has set up, so I'm trying to help them in any way I can.

@cjg89
Copy link
Member

cjg89 commented Jul 31, 2018

@schrauger Sorry, @jmbarne3 has been out for a few days. I'm not sure that we can help much with Windows-specific debugging, but have you tried enabling WordPress's built-in debug mode (WP_DEBUG)? https://codex.wordpress.org/Debugging_in_WordPress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants