V
V
virus72018-07-18 16:23:49
1C-Bitrix
virus7, 2018-07-18 16:23:49

Bitrix error how to fix?

php 5.6

[ErrorException] E_DEPRECATED
Non-static method CAllSite::GetDateFormat() should not be called statically, assuming $this from incompatible context (0)
/home/s/sachkohe/www.fpk-bip.ru/public_html/bitrix/modules/main/classes/mysql/database.php:346
#0: CDatabaseMysql->CharToDateFunction(string)
  /home/s/sachkohe/www.fpk-bip.ru/public_html/bitrix/modules/main/classes/general/user.php:502
#1: CAllUser::CleanUpHitAuthAgent()
  /home/s/sachkohe/www.fpk-bip.ru/public_html/bitrix/modules/main/classes/mysql/agent.php(159) : eval()'d code:1
#2: eval()
  /home/s/sachkohe/www.fpk-bip.ru/public_html/bitrix/modules/main/classes/mysql/agent.php:159
#3: CAgent::ExecuteAgents(string)
  /home/s/sachkohe/www.fpk-bip.ru/public_html/bitrix/modules/main/classes/mysql/agent.php:38
#4: CAgent::CheckAgents()
  /home/s/sachkohe/www.fpk-bip.ru/public_html/bitrix/modules/main/include.php:270
#5: require_once(string)
  /home/s/sachkohe/www.fpk-bip.ru/public_html/bitrix/modules/main/include/prolog_before.php:14
#6: require_once(string)
  /home/s/sachkohe/www.fpk-bip.ru/public_html/bitrix/modules/main/include/prolog.php:10
#7: require_once(string)
  /home/s/sachkohe/www.fpk-bip.ru/public_html/bitrix/header.php:1
#8: require(string)
  /home/s/sachkohe/www.fpk-bip.ru/public_html/404.php:7
#9: include_once(string)
  /home/s/sachkohe/www.fpk-bip.ru/public_html/bitrix/urlrewrite.php:4

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Victor L, 2018-07-19
@Fzero0

The version of php 5.6 on the server has changed, maybe it was 5.3 before that? Try to change

R
Renat, 2020-05-21
@Renat-MX

It's definitely a problem with the php version. Most likely you need some ancient type 5.4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question