2013-03-19 129 views
1

我正在使用prestashop網站,幾乎在那裏,但由於某種原因404頁面沒有正確顯示,我不明白爲什麼。Prestashop 404找不到頁面沒有正確加載

http://www.exclusivetech.co.uk/pagenotfound

任何人都可以解釋爲什麼會這樣?

繼承人的PageNotFoundController

class PageNotFoundControllerCore extends FrontController 
{ 
    public $php_self = '404'; 
    public $page_name = 'pagenotfound'; 

    /** 
    * Assign template vars related to page content 
    * @see FrontController::initContent() 
    */ 
    public function initContent() 
    { 
     header('HTTP/1.1 404 Not Found'); 
     header('Status: 404 Not Found'); 
     parent::initContent(); 

     $this->setTemplate(_PS_THEME_DIR_.'404.tpl'); 
    } 

    public function canonicalRedirection($canonical_url = '') 
    { 
     // 404 - no need to redirect to the canonical url 
    } 
} 

這裏的404.tpl,還沒有觸及它只是它們的默認。

<h1>{l s='Page not available'}</h1> 

    <p> 
     {l s='Were sorry, but the Web address you entered is no longer available'} 
    </p> 

    <h3>{l s='To find a product, please type its name in the field below'}</h3> 
    <form action="{$link->getPageLink('search')}" method="post" class="std"> 
     <fieldset> 
      <p> 
       <label for="search">{l s='Search our product catalog:'}</label> 
       <input id="search_query" name="search_query" type="text" /> 
       <input type="submit" name="Submit" value="OK" class="button_small" /> 
      </p> 
     </fieldset> 
    </form> 

    <a href="{$base_dir}" title="{l s='Home'}">{l s='Home'}</a> 
+0

貌似頁腳因故風格「顯示:無」。 編輯:嗯,它的確如此。現在它根本沒有出現,但也許你正在重新開始一些事情? – NilsH 2013-03-19 12:16:32

+0

哇,我討厭prestashop ..非常感謝喲uso,簡單簡單的修復。如果你把它作爲答案,我會打勾 – HeyImArt 2013-03-19 12:19:31

回答

0

看起來像某種原因頁腳有風格「顯示:無」

+0

最明顯的答案可能是哈,再次感謝..這是一個漫長的一天 – HeyImArt 2013-03-19 12:23:31