Answer the question
In order to leave comments, you need to log in
Bitrix Call to undefined method Bitrix\Rest\StatTable::cleanUpAgent()?
Periodically on the local machine, Bitrix just throws an error.
Clearing the cache doesn't help. I changed the server settings on Apache 7 and other versions of php and mysql, the same garbage.
Ngixn 1.14, php7.2, mysql 5.7
Bitrix 18.1.7 business edition, all stock unchanged.
[Error]
Call to undefined method Bitrix\Rest\StatTable::cleanUpAgent() (0)
C:\www\site.local\public_html\bitrix\modules\main\classes\mysql\agent.php(163) : eval()'d code:1
#0: eval
C:\www\site.local\public_html\bitrix\modules\main\classes\mysql\agent.php:163
#1: CAgent::ExecuteAgents(string)
C:\www\site.local\public_html\bitrix\modules\main\classes\mysql\agent.php:40
#2: CAgent::CheckAgents()
C:\www\site.local\public_html\bitrix\modules\main\include.php:264
#3: require_once(string)
C:\www\site.local\public_html\bitrix\modules\main\include\prolog_before.php:14
#4: require_once(string)
C:\www\site.local\public_html\bitrix\modules\main\include\prolog.php:10
#5: require_once(string)
C:\www\site.local\public_html\bitrix\header.php:1
#6: require(string)
C:\www\site.local\public_html\index.php:2
Answer the question
In order to leave comments, you need to log in
1) Open the list of agents (Settings - Product Settings - Agents)
2) Find your agent, most likely it will be called "Bitrix\Rest\StatTable::cleanUpAgent();"
3) Open for editing and add a slash in front of it
Of course, the php version must be no higher than 7.1 (7.0 or 7.1).
If you have done all this and the problem persists, please send a screenshot of the agent description (as you see it)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question