It is all started after I updated some of the plugins in my Wordpress site.
Right now I'm getting an Http Internal 500 Error when I try to access WordPress dashboard.
Error at my error log file in File Manager.
PHP Fatal error: Call to a member function locale() on a non-object in /wp-content/themes/my_theme/lib/custom.php at line 25.
my custom.php file looks like this.
24. global $sitepress; 25. setlocale(LC_TIME, $sitepress->locale() . '.UTF-8'); 26. $_SESSION['date_format'] = (ICL_LANGUAGE_CODE == 'fr') ? 'le %e %B %G' : '%B %e, %G';
Any suggestions on this issue!!