Cannot Login to Site Administration - Fatal Error: Core_Analytics/Processor

Cannot Login to Site Administration - Fatal Error: Core_Analytics/Processor

by Lucky Ken -
Number of replies: 5

Hello, I'm receiving a blank page when attempting to enter site administration. After turning error messages on, the following error appears for site/admin/search.php or any of the admin pages:

This page should be using theme essential which cannot be initialised. Nor can the site theme essential. Falling back to boost
  • line 698 of /lib/outputlib.php: call to debugging()
  • line 1553 of /lib/pagelib.php: call to theme_config::load()
  • line 1880 of /lib/setuplib.php: call to moodle_page->initialise_theme_and_output()
  • line 7957 of /lib/adminlib.php: call to bootstrap_renderer->__call()
  • line 24 of /admin/search.php: call to admin_externalpage_setup()

Fatal error: Interface 'core_analytics\classifier' not found in 

[site]/lib/mlbackend/php/classes/processor.php on line 41

Anyone have any thoughts? I'm most concerned about the Fatal Error because I can't access anything to make changes. Any help would be enormously appreciated. I've been stuck on this issue now for weeks and can't seem to find a solution. Thanks always!

Average of ratings: -
In reply to Lucky Ken

Re: Cannot Login to Site Administration - Fatal Error: Core_Analytics/Processor

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Which version of Moodle is this?

Try completely removing the offending theme. It might be unrelated, but let's try the easy/obvious problems. 

The fatal error is implying this file is missing (or broken)...

analytics/classes/classifier.php

Check it's definitely present.

In reply to Lucky Ken

Re: Cannot Login to Site Administration - Fatal Error: Core_Analytics/Processor

by Ken Task -
Picture of Particularly helpful Moodlers

What version of Moodle?  What addon plugins installed?

One might keep the Essentials theme (wonder if Essentials has an update availalbe that needs to be applied?), by editing the config.php file and adding a line like this:

$CFG->theme="clean";

No need to restart anything, just hit site, login as admin and see if one can get to admin area.

Essentials theme could require a lot of setup time which if removed might cause some additional work to get back what one had ... 600+ settings?!!!!

Do check plugins to see if there is an update to Essentials ... if so ... acquire.

And, yes, do what Howard suggested about checking for the existence of that file.

'spirit of sharing', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: Cannot Login to Site Administration - Fatal Error: Core_Analytics/Processor

by Luiggi Sansonetti -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi

I have the same issue with diferent Moodle3.5 with Boost theme.

I have tried to modify theme, but same issues with Clean (and of course Fordson, Essential...)


In reply to Luiggi Sansonetti

Re: Cannot Login to Site Administration - Fatal Error: Core_Analytics/Processor

by Luiggi Sansonetti -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Ha...

Via FTP I can see this files with ".suspected"


I have replaced this files with from github and all work well

Maybe after few days without activity it considered as "suspected"...

I've contacted the host manager for more information wink

Cheers

In reply to Luiggi Sansonetti

Re: Cannot Login to Site Administration - Fatal Error: Core_Analytics/Processor

by Luiggi Sansonetti -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hello

After research, the list of files likely to be affected:

./public_html/monmoodle/analytics/classes/regressor.php.suspected
./public_html/monmoodle/analytics/classes/classifier.php.suspected
./public_html/monmoodle/lib/lessphp/Tree/Javascript.php.suspected
./public_html/monmoodle/lib/tcpdf/tcpdf.php.suspected
./public_html/monmoodle/install/lang/hi/admin.php.suspected
./public_html/monmoodle/install/lang/mn/admin.php.suspected

It affects the same in the trash, but no impact.

There is no active antivirus but I met these CPanel discussions:
https://forums.cpanel.net/threads/php-suspected.475761

Another information if you have a WordPress on the same server:
https://wordpress.org/support/topic/link-templatephpsuspected/page/3/#post-6192944

Thanks to Nicolas for this track.