Hi
I had to disabilitate plug in in my site because this error occur at the top of all pages:
display($search_type); break; case "search_stats" : switch($format) { case "save" : require_once(JPATH_SITE . "/plugins/system/plg_articles_good_search/models/com_content/model.php"); $model = new ArticlesModelGoodSearch; $model->saveSearchStats(); exit; break; case "list" : $this->check_logged_admin(); ob_start(); require_once(dirname(__FILE__)."/template/search_stats/list.php"); $template = ob_get_contents(); ob_end_clean(); break; case "keyword" : $this->check_logged_admin(); ob_start(); require_once(dirname(__FILE__)."/template/search_stats/keyword.php"); $template = ob_get_contents(); ob_end_clean(); break; case "delete" : $this->check_logged_admin(); $id = JRequest::getInt("id"); $query = "DELETE FROM #__content_search_stats WHERE id = {$id}"; @JFactory::getDBO()->setQuery($query)->query(); $query = "DELETE FROM #__content_search_stats_users WHERE keyword_id = {$id}"; @JFactory::getDBO()->setQuery($query)->query(); ob_start(); require_once(dirname(__FILE__)."/template/search_stats/deleted.php"); $deleted = ob_get_contents(); ob_end_clean(); echo $deleted; exit; //raw output for ajax break; case "reset" : $this->check_logged_admin(); $id = JRequest::getInt("id"); $query = "TRUNCATE TABLE #__content_search_stats"; @JFactory::getDBO()->setQuery($query)->query(); $query = "TRUNCATE TABLE #__content_search_stats_users"; @JFactory::getDBO()->setQuery($query)->query(); echo JText::_("Done."); exit; //raw output for ajax break; } break; } if($_GET) { echo $template; exit; } else { $doc->setBuffer($template, "component"); } } } function onAfterRoute() { $app = JFactory::getApplication(); $init_parameter = JRequest::getVar('gsearch'); if($init_parameter) { if($app->isAdmin()) return; JRequest::setVar("option", "com_content"); JRequest::setVar("view", "featured"); //can be enabled for increase a speed //JRequest::setVar("option", "com_contact"); //false code for disable standard component output } } function check_logged_admin() { $user = JFactory::getUser(); if(!in_array(7, $user->groups) && !in_array(8, $user->groups)) { echo JText::_("Restricted only for admins
Try to log in first"); exit; } }}?>
I'm using
Articles Good Search Package J3
Joomla! 3.10.11 Stable
Php 7.4.33
Thank's fo helping"
Federica