Hello,

I Have a very frustrating problem which I guess i related to having customised the maintenance page: site has been offline for a couple of weeks showing a holding page that is altered maintenance page, and now I have restored the original maintenace page, but when I try to put it back the site back online it loses all css because the head tags are not being called. This only happens in the online mode - in the offline mode the theme loads perfectly. Same problem applies whether user is logged in or not. I am running drupal 6 with an OpenPublish installation. The problem only happens with the open publish theme, garland is fine, and i deleted and restored the original openpublish theme. In online mode the first lines of code are:

 <div id="sidebar-left"> 
    <a class='context-block-region' id='context-block-region-left'>Left Sidebar</a> 
      <div class="clearfix" id="block-views-articles-block_1" class="block block-views"> 
 
  
  <div class="content"> 
    <div class="view view-articles view-id-articles view-display-id-block_1 view-dom-id-1"> 
      <div class="views-admin-links views-hide"> 
      <ul class="links"><li class="0 first"><a href="/admin/build/views/edit/articles?destination=node#views-tab-block_1">Edit</a></li> 
<li class="1"><a href="/admin/build/views/export/articles">Export</a></li> 
<li class="2 last"><a href="/admin/build/views/clone/articles">Clone</a></li> 
</ul>    </div> 
    
  
  
      <div class="view-content"> 
        <div about="/article/voices-shattered-land" class="views-row views-row-1 views-row-odd views-row-first"> 
      
  <div class="views-field-field-thumbnail-image-fid"> 
                <span class="field-content"></span> 
  </div> 
  
  <div class="views-field-field-main-image-fid"> 
                <span class="field-content"></span> 
  </div>  

Whereas in offline mode it loads correctly for logged in users as follows:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> 
<html 
     xmlns="http://www.w3.org/1999/xhtml"      
     xmlns:dc="http://purl.org/dc/terms/" 
     xmlns:dcmitype="http://purl.org/dc/terms/DCMIType/"
     xmlns:ctag="http://commontag.org/ns#"
     xmlns:foaf="http://xmlns.com/foaf/0.1/"      
     xmlns:v="http://rdf.data-vocabulary.org/#"
     xmlns:fb="http://www.facebook.com/2008/fbml"
     lang="en" 
     dir="ltr"
     version="XHTML+RDFa 1.0" > 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <title>Think Africa Press</title> 
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<link rel="meta" type="application/json" title="RDF" href="/rdf" /> 
<link rel="alternate" type="application/rss+xml" title="Think Africa Press RSS" href="http://www.thinkafricapress.com/rss/articles/all" /> 
<script type="text/javascript" src="/sites/all/libraries/ckeditor/ckeditor.js?I"></script> 
<link rel="shortcut icon" href="/themes/openpublish_theme/favicon.ico" type="image/x-icon" /> 
  <link type="text/css" rel="stylesheet" media="all" href="/sites/default/files/css/css_820082edb5d088f282a11aa573ba6fbf.css" /> 
<link type="text/css" rel="stylesheet" media="screen" href="/sites/default/files/css/css_0cd2825a3e5c0660486bc376ff5ce614.css" /> 
<link type="text/css" rel="stylesheet" media="print" href="/sites/default/files/css/css_33ad65dafc7e4f495115b1285012b4cd.css" /> 
<link type="text/css" rel="stylesheet" media="all" href="/themes/openpublish_theme/css/html-elements.css?g" /> 
<link type="text/css" rel="stylesheet" media="all" href="/themes/openpublish_theme/css/basics.css?g" /> 
<link type="text/css" rel="stylesheet" media="all" href="/themes/openpublish_theme/css/layout.css?g" /> 
<link type="text/css" rel="stylesheet" media="all" href="/themes/openpublish_theme/css/components.css?g" /> 
<link type="text/css" rel="stylesheet" media="print" href="/themes/openpublish_theme/css/print.css?g" /> 

Please does anyone have any ideas? I am in a major panic as site needs to be live by Wednesday...

Thanks!

Comments

clemnet’s picture

I will happily pay for this help! Let me know your price!

Dropper’s picture

Subscribing

Dropper’s picture

Perhaps I'm a little bit late, but I found a solution for this:
In D7 the maintenance-page.tpl.php doesn't seem to be a copy of page.tpl.php. While the page.tpl.php doesn't contain html head tags in it, the maintenance-page does. So the head will be empty if you just copy everything from the page.tpl.php. So - just add the head code and the body tags and everything should be fine!

laraz’s picture

where I put the maintenance-page.tpl.php in omega theme? in folder templates?

kristin.e’s picture

Thanks @dropper - this thread and your suggestion helped me sort the maintenance tpl not loading stylesheets. :))