Can`t login to the website

Permalink 1 user found helpful
Hi, I have this error message, even on admin`s page:

An unexpected error occurred.
Call to a member function isLoggedIn() on null

My web hoster managed to restore oldest backup available, but the problem seems to be happened earlier. They managed to change PHP versions, and tried other solutions as well.. but no problem worked.

1- How can I solve this problems?
2- If I can`t solve it, is there any way to see current contents? (pure HTML files, for example).. as I don`t remember site contents very well..


Problematic site: egydeafrights.com
(Hosted on a local paid hosting. servers located in US, OS: Linux, System in use: CPanel)

Thank you in advance.
Ashraf

 
hutman replied on at Permalink Reply
hutman
If you can see what file this is caused in you should be able to fix it. Can you login to your server and update /application/config/generaged_overrides/concrete.php and make sure that these nodes are in there? With display_errors = true that should give you more detail about the error so you can see what file is causing it.

'debug' => array(
        'detail' => 'debug',
        'display_errors' => true,
    ),
ashrafakader replied on at Permalink Reply
Thanks for your reply.
Such code does not exist in the file..
Where exactly do I have to add it? at the bottom?
Thanks

Note: I was not able to upload it.. because this forum prevents attaching php files
hutman replied on at Permalink Reply
hutman
It can be added in any order but the bottom would make the most sense, just make sure it's inside the array
ashrafakader replied on at Permalink Reply
Hi,
Thanks for your reply.
Changes done.. It`ll be very much appreciated if you have a look at the error report.
http://www.egydeafrights.com

Thanks
Ashraf
ashrafakader replied on at Permalink Reply
Hi, as in the error report I see that this line needs some editing...

Do you see anything that needs being edited??

<div class="global-navi<?php global $u; if ( $u -> isLoggedIn() ) { echo ' login'; } ?>">



Error Type: Whoops\Exception\ErrorException
Error Location: /­home/­egydeafr/­public_html/­packages/­theme_stucco/­themes/­stucco/­inc/­header.php32
hutman replied on at Permalink Best Answer Reply
hutman
Try

<div class="global-navi<?php $u = new User(); if ($u->isLoggedIn()) { echo ' login'; } ?>">
ashrafakader replied on at Permalink Reply
Thank you very much :)