File Transfer to a new server has brought down one of my sites.
Permalink
http://www.portobellarain.com/hoodiemonkeecentral/index.php
here is the URL to a subdirectory on my server. Portobellarain.com is another C5 site and was transferred across at the same time. This site works fine, but the subdirectory index.php is messed up and the page comes out with no structure, no background no graphics, are you able to help? The other 2 pages are fine on this site, you can check to give you an idea of what the site looks like. I am betting this is Homer Simpson moment.
Your thoughts will be appreciated.
Ben.
here is the URL to a subdirectory on my server. Portobellarain.com is another C5 site and was transferred across at the same time. This site works fine, but the subdirectory index.php is messed up and the page comes out with no structure, no background no graphics, are you able to help? The other 2 pages are fine on this site, you can check to give you an idea of what the site looks like. I am betting this is Homer Simpson moment.
Your thoughts will be appreciated.
Ben.
All of the links to your css and images are relative paths (they don't have slashes in front of them), and hence point to the wrong location. This is probably due to either a bunch of incorrectly-coded paths in your page type templates, or maybe a misconfiguration of BASE_URL or DIR_REL in your config/site.php file. If you can post or paste in your theme's header.php file, and also what you have those 2 config settings set to, I think someone will probably be able to spot the problem and tell you how to correct it.
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css')?>" /> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" /> <?php Loader::element('header_required'); ?> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css')?>" /> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" /> <?php Loader::element('header_required'); ?> </head> <body> <div id="page"> <div id="header"> <?php $a = new Area('Header'); $a->display($c);
Viewing 15 lines of 19 lines. View entire code block.
here is the header.php file, the errors have been down to a server transfer that my new hosting providers are not willing to deal with. If you need anything else, just let me know. I can see in the page source that the URLs are wrong, but can't seem to find a way of sorting them out.
<?php defined('C5_EXECUTE') or die("Access Denied."); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <?php Loader::element('header_required'); ?> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/" /> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" /> </head> <body> <div id="page"> <div id="header"> <?php
Viewing 15 lines of 21 lines. View entire code block.
Here is the new look header php, but it hasn't worked, the page still looks the same. Thanks for the pointers though.
ben.
Sorry, I wasn't being literal enough in my above example. You need to actually put in the stylesheet's file name to that code (and you want to do it for all of the stylesheets, not just the first one). So try this:
<?php Loader::element('header_required'); ?> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>http://www.portobellarain.com/hoodiemonkeecentral/themes/HoodieMonkee/main.css" /> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>http://www.portobellarain.com/hoodiemonkeecentral/themes/HoodieMonkee/typography.css" />
Like this? I am sorry for coming across as dense, I usually am able to work this stuff out, but am pretty stumped on this one.
I have added this over, but it still isnt working. I have repaired all tables on the database, still no joy- (NEWS FLASH)I have got the paths right so the background and content area shows up, but the structure is not there. They have messed up the paths to the files.
No, not what you have. You want it to be just like the code I posted above in my previous response.
Ok, thanks, will put it in.
I think the files are not showing up because they all seem to be cache, I want to get into my dashboard, but it won't let me login in.
I will keep trooping.
Thanks for the help by the way- really appreciate it.
Best wishes,
ben.
I think the files are not showing up because they all seem to be cache, I want to get into my dashboard, but it won't let me login in.
I will keep trooping.
Thanks for the help by the way- really appreciate it.
Best wishes,
ben.