Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe

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

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

404-errorpage


Reply

7 Posts   4351 Views

Avatar
minmax

8 January 2009 at 3:23am Community Member, 12 Posts

“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

Avatar
minmax

8 January 2009 at 3:23am Community Member, 12 Posts

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

Avatar
Tobbe

8 January 2009 at 5:18am (Last edited: 8 January 2009 5:18am), Community Member, 25 Posts

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.

Avatar
minmax

8 January 2009 at 6:12pm Community Member, 12 Posts

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

Avatar
Willr

8 January 2009 at 7:45pm Forum Moderator, 5511 Posts

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

Avatar
minmax

8 January 2009 at 9:47pm Community Member, 12 Posts

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" xml: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>

Avatar
minmax

14 January 2009 at 4:18pm (Last edited: 14 January 2009 4:21pm), Community Member, 12 Posts

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