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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Can't stay Logged in to admin: Forbidden error: error saving page

Go to End

42 Posts   8147 Views


2 March 2009 at 6:54pm Community Member, 46 Posts

I just moved a site over to a new host and now I can't stay logged in to the admin. I can log in and sometimes it will let me save a page once but after that I will either get a "Forbidden" JavaScript prompt or an "error saving page" message from the cms at the bottom left of the page.

Where can I start to debug or trouble shoot this?

We are running SIlverStripe 2.3.0 on Apache 2.2.8 with PHP 5.2.6

Thanks in advance.



5 March 2009 at 8:39am Community Member, 46 Posts

Noticed that the server is running PHP as cgi (   CGI/FastCGI ). Is there anything related to file permissions that I should check out?


5 March 2009 at 9:23am Administrator, 685 Posts

Hi Web Architect,

This is a bit of a strange problem and we'll need your help to debug it. The core development team haven't spent a huge amount of time using SilverStripe on CGI, so it's possible that it's part of the problem, but we don't know for sure.

Can you:

* put your site into dev mode, as indicated here:
* visit the CMS with Firefox and Firebug installed
* use the CMS, saving content, until this error occurs
* look in the firebug console to find the URL that was submitted, and the text of the resulting error.

Then post those two pieces of information here.



5 March 2009 at 10:00am Community Member, 46 Posts

I'm trying to work with Firebug right now but I keep getting this message when the admin loads "The CMS requires that you have JavaScript enabled." I don't have JavaScript disabled anywhere all I did was enable the Firebug console for my domain?

Anyway, Using Safari Web Inspector I get the following COnsole error...

"Refused to set unsafe header Connection"

When the SilverStripe CMS gives me the "error loading page" error in the lower left of the screen when I try to load a page from the Site Content.


5 March 2009 at 10:02am Community Member, 46 Posts

So far no errors in my PHP log.


5 March 2009 at 10:26am Community Member, 46 Posts

In regards to Firebug. If I login to SS admin, wait until the page loads, then enable the Firebug console for my domain. I am immediately directed back to the SS login screen?


6 March 2009 at 8:17am Community Member, 46 Posts

Ok, I'm officially confused now. I got Firebug working on my domain. Attached is a screen shot of errors from the console.

The problem seems to be with two files...

1. base.js

2. leftandmain.js

Both of these files are being referenced from my assets folder. Why is SS looking and creating these files in my assets folder? If I erase them SS recreates them when I login to the admin.

Along with the these errors I am still unable to stay logged in to the Admin for more then 1 request.

I would appreciate any help here. Thanks.


Attached Files

7 March 2009 at 9:40am Community Member, 46 Posts

Here is the line that results in the 403 forbidden error.

line 61 base.js

this.setRequestHeaders();var body=this.options.postBody?this.options.postBody:parameters;this.transport.send(this.options.method=='post'?body:null);}catch(e){this.dispatchException(e);}},setRequestHeaders:function(){var requestHeaders=['X-Requested-With','XMLHttpRequest','X-Prototype-Version',Prototype.Version];if(this.options.method=='post'){requestHeaders.push('Content-type','application/x-www-form-urlencoded; charset=utf-8');if(this.transport.overrideMimeType)

Go to Top