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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

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

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

404-errorpage


Go to End


7 Posts   5784 Views

Avatar
minmax

Community Member, 12 Posts

8 January 2009 at 3:23am

“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

Community Member, 12 Posts

8 January 2009 at 3:23am


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

Community Member, 25 Posts

8 January 2009 at 5:18am

Edited: 08/01/2009 5:18am

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

Community Member, 12 Posts

8 January 2009 at 6:12pm

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

Avatar
Willr

Forum Moderator, 5523 Posts

8 January 2009 at 7:45pm

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

Avatar
minmax

Community Member, 12 Posts

8 January 2009 at 9:47pm

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

Community Member, 12 Posts

14 January 2009 at 4:18pm

Edited: 14/01/2009 4:21pm

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