Jump to content

Uploading to server


Pablos
 Share

Recommended Posts

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

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

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...