Manol Posted June 11, 2014 Posted June 11, 2014 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.
arjen Posted June 11, 2014 Posted June 11, 2014 You can try a few things: Check if other urls do work? Have you checked the file permissions? Does a clean, new install work?
Manol Posted June 11, 2014 Author Posted June 11, 2014 Thank you. Solved I had to add to config.php: $config->prependTemplateFile = '_init.php'; $config->appendTemplateFile = '_out.php';
Gayan Virajith Posted June 11, 2014 Posted June 11, 2014 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 3
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now