Jump to:

23377 Posts in 18296 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » 2.4 publishing issue on user site

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
Go to End
Author Topic: 1702 Views
  • chinaski
    Avatar
    Community Member
    26 Posts

    2.4 publishing issue on user site Link to this post

    I am having a problem with 2.4 on a user site (i.e. development url is http://ip-number/~username/).

    Steps to recreate:

    1) edit a page in cms
    2) save and publish
    3) click "Published Site" in cms to view the page
    4) back in the cms, try to update a page. save and publish just spins, and I am asked to login again.

    I am unable to edit and a javascript alert comes up saying "please login and then try again".

    If I don't view the site by clicking on the "Published Site" link, I can make changes, save them, and view in a separate window in the browser.

  • chinaski
    Avatar
    Community Member
    26 Posts

    Re: 2.4 publishing issue on user site Link to this post

    I have some more information about this. Looking at the firebug output, I'm getting the following message in the response when I try to save a page in the admin section: SecurityID doesn't match, possible CSRF attack.

    Any ideas?

  • moloko_man
    Avatar
    Community Member
    72 Posts

    Re: 2.4 publishing issue on user site Link to this post

    this might help, I am having the same problem, and it didn't help me, but give it a whirl. You never know.

    http://silverstripe.org/installing-silverstripe/show/285523#post285523

  • Webdoc
    Avatar
    Community Member
    332 Posts

    Re: 2.4 publishing issue on user site Link to this post

    Form::disable_all_security_tokens();

    to _config.php

  • moloko_man
    Avatar
    Community Member
    72 Posts

    Re: 2.4 publishing issue on user site Link to this post

    The issue I was having was a session problem from the hosting provider. You can control your own sessions by adding the following to the bottom of your .htaccess:

    php_value session.gc_probability 1
    php_value session.gc_divisor 100
    php_value session.gc_maxlifetime 3600
    php_value session.save_path /mnt/stor1/123456/example.com/web/sessions

    my session save path is outside my content folder that holds the web files, so it can't be accessed from the www.

    Here is a link explaining the above.
    http://cloudsites.rackspacecloud.com/index.php/Why_are_my_PHP_sessions_not_working%3F

  • Fred C.
    Avatar
    Community Member
    18 Posts

    Re: 2.4 publishing issue on user site Link to this post

    Please do not disable all security tokens. This exposes your entire site to CSRF attacks.

    1702 Views
Page: 1
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.