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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

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


Go to End


4 Posts   1044 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