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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

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

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

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


Go to End


5 Posts   2772 Views

Avatar
Yulia

Community Member, 26 Posts

18 March 2009 at 1:58am

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!

Avatar
Yulia

Community Member, 26 Posts

19 March 2009 at 9:59am

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?

Avatar
Yulia

Community Member, 26 Posts

19 March 2009 at 12:32pm

turned out to be Malware on server

scary...

Avatar
schellmax

Community Member, 126 Posts

27 March 2009 at 3:51am

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

Avatar
asifskazi

Community Member, 3 Posts

31 August 2009 at 5:36am

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