Admin panel not loading (local installation)

Zoran Koprek Posted in Technical Support 6 years ago

Installation went ok and when I log in with my admin data just message shows that I am logged in.demo of a problem

Replies
Croatian Zoran Koprek Replied 6 years ago

Thank you, I solved it by removing session_start(); from the start of file. It works! And yes, home page was loading but login just didn't work.

Indonesian Arsalan Shah Replied 6 years ago

Did you removed session_start() from the start of flile? also please follow the instructions mentioned by ~Z~ Man.

German Michael Zülsdorff Replied 6 years ago

What about your site's homepage - is it loading?

It's difficult to help without knowing any more details. Please follow the instructions in
https://www.opensource-socialnetwork.org/wiki/view/1101/how-to-report-a-bug-error

Croatian Zoran Koprek Replied 6 years ago

Hi Arsalan, i did what you say but problem is still the same.
see what i did here: https://gph.is/2zny9me
Thank you for help.

Indonesian Arsalan Shah Replied 6 years ago

Hi Zoran, the issues seems with your sessions, edit the file system/start.php and place session_start() after line 34. So the file may look like :

....
...
foreach ($Ossn->classes as $class) {
    if (!include_once(ossn_route()->classes . "Ossn{$class}.php")) {
        throw new exception('Cannot include all classes');
    }
}
session_start();
foreach ($Ossn->libraries as $lib) {
    if (!include_once(ossn_route()->libs . "ossn.lib.{$lib}.php")) {
        throw new exception('Cannot include all libraries');
    }
}
...
...
Croatian Zoran Koprek Replied 6 years ago

See demo here:

https://gph.is/2xF6gEn