Pablos Posted October 9, 2012 Share Posted October 9, 2012 Hi. I've just come to Processwire as a cms newbie and so far the process has been very smooth. Now I want to upload everything to a subdomain of my own site to get the client's approval. I've tried moving all the files and the database to the server with no luck, so I then tried creating an installable copy of the website with the Site Profile Exporter module. I can log in, and the admin pages are fine, but when I try to view one of my own pages, I get a blank page. If I turn debugging on, I get the following error: Warning: include(./semphome.inc) [function.include]: failed to open stream: No such file or directory in /datasan/www/vhosts/primitive.co/subdomains/semperianppp/httpdocs/site/templates/Semperian-home.php on line 8 Warning: include(./semphome.inc) [function.include]: failed to open stream: No such file or directory in /datasan/www/vhosts/primitive.co/subdomains/semperianppp/httpdocs/site/templates/Semperian-home.php on line 8 Warning: include() [function.include]: Failed opening './semphome.inc' for inclusion (include_path='.:') in /datasan/www/vhosts/primitive.co/subdomains/semperianppp/httpdocs/site/templates/Semperian-home.php on line 8 This is no doubt something mind-numbingly obvious, but as a novice, it's got me stumped. I've turned off PHP safe mode by the way. Thanks for any help, Paul Link to comment Share on other sites More sharing options...
MarcC Posted October 9, 2012 Share Posted October 9, 2012 Can you paste the code from that template? Link to comment Share on other sites More sharing options...
Pablos Posted October 10, 2012 Author Share Posted October 10, 2012 Hi Marc. Here's the code from both templates Semperian-home.php: <?php /** * Semperian home template * */ include("./semphome.inc"); Semphome.inc: <!DOCTYPE html> <html lang="en"> <head> <title>Semperian PPP Investment Partners | <?php echo $page->title; ?></title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <link href='http://fonts.googleapis.com/css?family=Lato:300,400' rel='stylesheet' type='text/css' /> <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>styles/semperian.css" /> <!--[if IE 7]> <link rel="stylesheet" href="<?php echo $config->urls->templates?>styles/ie7.css" type="text/css" media="screen, projection"/> <![endif]--> <!--[if IE 8]> <link rel="stylesheet" href="<?php echo $config->urls->templates?>styles/ie8.css" type="text/css" media="screen, projection"/> <![endif]--> <!--[if gte IE 9]> <link rel="stylesheet" href="<?php echo $config->urls->templates?>styles/ie9.css" type="text/css" media="screen, projection"/> <![endif]--> <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/jquery.cycle.lite.js"></script> </head> <body id ="homePage"> <div id="container"> <?php $nav = $modules->get("MarkupSimpleNavigation"); // load the module and have an instance kept in $nav var $options = array( 'levels' => true, 'show_root' => true, 'parent_class' => 'showSiblings' ); echo $nav->render($options); // render menu?> <div id="titlePanel"> <h1><?php echo $page->headline; ?></h1> </div><!-- END titlePanel --> <div id="content"> <div id="slideshow"> <?php foreach($page->slideshow_image_repeater as $simage) { echo "<img class='photo' src='{$simage->slideshow_image->size(970,0)->url}' alt='{$simage->slideshow_image->description}' />"; } ?> </div><!--END slideShow--> <div class="col1"></div><!-- END col1 --> <div id="textPanel"><?php echo $page->semp_MainText;?> </div><!-- END textPanel --> </div><!-- END content--> <div id="footer"> <p id="copyrightLine"><?php echo $page->semp_FooterCopyright; ?></p> <p id ="addressLine"><?php echo $page->semp_FooterRegisteredOffice; ?> </div><!-- END footer --> </div> <!-- END container --> <script> $(document).ready(function(){ $('#slideshow').cycle({ fx: 'fade', speed: 2500 }); }); </script> </body> </html> Link to comment Share on other sites More sharing options...
arjen Posted October 10, 2012 Share Posted October 10, 2012 Just an idea: it looks like you name you file with an Uppercase (Semphome.inc) and include with a lowercase (include("./semphome.inc"). Maybe that's the problem? 1 Link to comment Share on other sites More sharing options...
Pablos Posted October 10, 2012 Author Share Posted October 10, 2012 Fantastic! Thanks arjen - that's sorted it. Not much excuse for that error! As it worked locally, I assumed I'd got the file names right. 1 Link to comment Share on other sites More sharing options...
arjen Posted October 10, 2012 Share Posted October 10, 2012 Good to hear! And welcome to the forums! Link to comment Share on other sites More sharing options...
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