Jump to:

22972 Posts in 11596 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » Can't stay Logged in to admin: Forbidden error: error saving page

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

Page: 1 2 3 4 5 6
Go to End
Author Topic: 7544 Views
  • ryanwachtl
    Avatar
    Community Member
    46 Posts

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

    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.

    Ryan

  • ryanwachtl
    Avatar
    Community Member
    46 Posts

    Re: Can't stay Logged in to admin: Forbidden error: error saving page Link to this post

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

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Can't stay Logged in to admin: Forbidden error: error saving page Link to this post

    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: http://doc.silverstripe.com/doku.php?id=debugging#dev_mode
    * 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.

    Thanks,
    Sam

  • ryanwachtl
    Avatar
    Community Member
    46 Posts

    Re: Can't stay Logged in to admin: Forbidden error: error saving page Link to this post

    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.

  • ryanwachtl
    Avatar
    Community Member
    46 Posts

    Re: Can't stay Logged in to admin: Forbidden error: error saving page Link to this post

    So far no errors in my PHP log.

  • ryanwachtl
    Avatar
    Community Member
    46 Posts

    Re: Can't stay Logged in to admin: Forbidden error: error saving page Link to this post

    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?

  • ryanwachtl
    Avatar
    Community Member
    46 Posts

    Re: Can't stay Logged in to admin: Forbidden error: error saving page Link to this post

    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.

    Ryan

    Attached Files
  • ryanwachtl
    Avatar
    Community Member
    46 Posts

    Re: Can't stay Logged in to admin: Forbidden error: error saving page Link to this post

    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)
    62requestHeaders.push('Connection','close');}

    7544 Views
Page: 1 2 3 4 5 6
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.