Jump to content

blank screen


Manol
 Share

Recommended Posts

Hello Guys.

    I've moved a pw webpage to a different host, after that I can access the admin area but the frontpage is blank, when I click in chrome view source is also blank.

Any hints?

Thank you.

Link to comment
Share on other sites

I also forget to edit config.php after install on different server. Thanks to Ryan I am using following code block to overcome this issue. Please add this on top of your template file (templates/home.php). In this way you want be having a blank page, it will remind you to edit the config.php  

/*
 * Check that required settings are in place.
 * Feel free to remove this if your site already works.
 *
 */
if($config->prependTemplateFile != '_init.php' || $config->appendTemplateFile != '_main.php') {
    echo '
	<h2>Please edit your /site/config.php and set:</h2>
	<pre>
	$config->prependTemplateFile = "_init.php";
	$config->appendTemplateFile = "_main.php"; 
	</pre>
	';
    exit;
} 

You can also find these on Ryan's FoundationSiteProfile (Please check templates/home.php)

Thanks

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...