Jump to:

4913 Posts in 7042 Topics by 1474 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Redirecting to /cms/code/LeftAndMain.php, line 1114)

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 2002 Views
  • Yulia
    Avatar
    Community Member
    26 Posts

    Redirecting to /cms/code/LeftAndMain.php, line 1114) Link to this post

    It used to work fine. But now, when i am trying to log in, this message comes up, and then it redirects me to log in page.

    Redirecting to /cms/code/LeftAndMain.php, line 1114

    Please help!

  • Yulia
    Avatar
    Community Member
    26 Posts

    Re: Redirecting to /cms/code/LeftAndMain.php, line 1114) Link to this post

    OK,

    I put it into dev mode, and something else comes up now:

    [Notice] Undefined variable: _SESSION
    GET /silverstripe/

    Line 105 in /.../sapphire/core/control/Director.php
    Source

    96          @file_get_contents('php://input')
    97       );
    98       
    99       // @todo find better way to extract HTTP headers
    100       if(isset($_SERVER['HTTP_ACCEPT'])) $req->addHeader("Accept", $_SERVER['HTTP_ACCEPT']);
    101       if(isset($_SERVER['CONTENT_TYPE'])) $req->addHeader("Content-Type", $_SERVER['CONTENT_TYPE']);
    102       if(isset($_SERVER['HTTP_REFERER'])) $req->addHeader("Referer", $_SERVER['HTTP_REFERER']);
    103
    104       // Load the session into the controller
    105       $session = new Session($_SESSION);
    106       $result = Director::handleRequest($req, $session);
    107       $session->inst_save();
    108
    109       // Return code for a redirection request
    110       if(is_string($result) && substr($result,0,9) == 'redirect:') {
    111          $response = new HTTPResponse();

    Trace

    * Director::direct(/)
    Line 115 of main.php

    Any ideas?

  • Yulia
    Avatar
    Community Member
    26 Posts

    Re: Redirecting to /cms/code/LeftAndMain.php, line 1114) Link to this post

    turned out to be Malware on server

    scary...

  • schellmax
    Avatar
    Community Member
    126 Posts

    Re: Redirecting to /cms/code/LeftAndMain.php, line 1114) Link to this post

    just had the same error msg (Undefined variable: _SESSION), and found out it's because my php files were encoded in regular UTF-8. converted them to 'UTF-8 without BOM' and it works now...

  • asifskazi
    Avatar
    Community Member
    3 Posts

    Re: Redirecting to /cms/code/LeftAndMain.php, line 1114) Link to this post

    I have the same problem. But I am ZERO in php coding. Could you please help me

    2002 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.