Jump to:

4952 Posts in 14256 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » 404-errorpage

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 4294 Views
  • minmax
    Avatar
    Community Member
    12 Posts

    404-errorpage Link to this post

    “This page contains the following errors:

    error on line 28 at column 8: Opening and ending tag mismatch: link line 0 and head
    Below is a rendering of the page up to the first error.”

    When I create a 404 error page

  • minmax
    Avatar
    Community Member
    12 Posts

    Re: 404-errorpage Link to this post

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en" >

    <head>
          <base href="http://www.rubber-plastic.cn/" >
          <title>Page not found</title>
    <meta name="generator" http-equiv="generator" content="SilverStripe - http://www.silverstripe.com" >
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" >
    <meta http-equiv="Content-Language" content="en">

          <link rel="shortcut icon" href="/favicon.ico" >
          
          <!--[if IE 6]>
             <style type="text/css">
              @import url(themes/brownish/css/ie6.css);
             </style>
          <![endif]-->
          
          <!--[if IE 7]>
             <style type="text/css">
              @import url(themes/brownish/css/ie7.css);
             </style>
          <![endif]-->
       <link rel="stylesheet" type="text/css" href="http://www.rubber-plastic.cn/themes/brownish/css/layout.css?m=1230455561" >
    <link rel="stylesheet" type="text/css" href="http://www.rubber-plastic.cn/themes/brownish/css/typography.css?m=1231227865" >
    <link rel="stylesheet" type="text/css" href="http://www.rubber-plastic.cn/themes/brownish/css/form.css?m=1230278062" >
    </head>

  • Tobbe
    Avatar
    Community Member
    25 Posts

    Re: 404-errorpage Link to this post

    I think it is because it is errors in the XML code.

    <link rel="shortcut icon" href="/favicon.ico" >


    should be

    <link rel="shortcut icon" href="/favicon.ico" />

    And the same for all "meta" and "link" tags.

  • minmax
    Avatar
    Community Member
    12 Posts

    Re: 404-errorpage Link to this post

    Thank you, but I do not know where to modify
    I can not find errorpage.ss

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: 404-errorpage Link to this post

    The error page just uses the normal Page.ss template - it should be in themes/browish/templates/

  • minmax
    Avatar
    Community Member
    12 Posts

    Re: 404-errorpage Link to this post

    the page.ss is not problem(There is no problem with other pages)(For example:http://www.rubber-plastic.cn/knowledge/)

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" >

    <head>
          <% base_tag %>
          $MetaTags
          <link rel="shortcut icon" href="/favicon.ico" />
          
          <!--[if IE 6]>
             <style type="text/css">
              @import url(themes/brownish/css/ie6.css);
             </style>
          <![endif]-->
          
          <!--[if IE 7]>
             <style type="text/css">
              @import url(themes/brownish/css/ie7.css);
             </style>
          <![endif]-->
       </head>
    <body>

  • minmax
    Avatar
    Community Member
    12 Posts

    Re: 404-errorpage Link to this post

    is't ok;I updated to a new version and Modify header tag.
    To test:http://www.rubber-plastic.cn
    http://www.rubber-plastic.cn/page-not-found

    4294 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.