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.

Customising the CMS /

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

ErrorPage (403) creates an empty html page.[SOLVED]


Go to End


4 Posts   1424 Views

Avatar
_Vince

Community Member, 165 Posts

21 January 2012 at 4:16pm

I am trying to create a 403 error page. Publishing creates a HTML page called error-403.html in the assets folder, as it should.

But the file is empty.

If I try copying and pasting the content from another page into the empty file, the next time I publish, the length is once again set to zero.

Any ideas?

Avatar
_Vince

Community Member, 165 Posts

21 January 2012 at 4:34pm

Same for 401 pages.

Avatar
Romano

Community Member, 13 Posts

23 January 2012 at 5:56am

Open file: sapphire\core\control\HTTPResponse.php

Find function isFinished() and remove error code from an array.

Avatar
_Vince

Community Member, 165 Posts

25 January 2012 at 10:01am

Thanks, heaps! :D