Jump to content

Recommended Posts

Posted

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.

Posted

You can try a few things:

  1. Check if other urls do work?
  2. Have you checked the file permissions?
  3. Does a clean, new install work?
Posted

Thank you.

   Solved  

   I had to add to config.php:

$config->prependTemplateFile = '_init.php';
 
$config->appendTemplateFile = '_out.php';
Posted

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

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
  • Recently Browsing   0 members

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