I've always got a debug log once in a while. Never the same thing twice. Just wrote it of to a server glitch (using a shared server).
A few days ago some serpstat bots were crawling my site. I got 13,000 debug logs per day. Can someone point me in the right direction to fix this?

[03-Nov-2022 02:56:54 America/Denver] Request URI: /Test/uNder-tej-stuNg/index.php?cmd=display_logs&action=delete, IP address: 35.145.152.129
#0 /includes/classes/db/mysql/query_factory.php(519): zen_debug_error_handler()
#1 /uNder-tej-stuNg/includes/init_includes/init_database.php(16): require('/home4/schemat2...')
#2 /uNder-tej-stuNg/includes/application_bootstrap.php(162): require('/home4/schemat2...')
#3 /uNder-tej-stuNg/index.php(5): require_once('/home4/schemat2...')
--> PHP Deprecated: Return type of queryFactoryResult::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /includes/classes/db/mysql/query_factory.php on line 665.

[03-Nov-2022 02:56:54 America/Denver] Request URI: /Test/uNder-tej-stuNg/index.php?cmd=display_logs&action=delete, IP address: 35.145.152.129
#0 /includes/classes/db/mysql/query_factory.php(519): zen_debug_error_handler()
#1 /uNder-tej-stuNg/includes/init_includes/init_database.php(16): require('/home4/schemat2...')
#2 /uNder-tej-stuNg/includes/application_bootstrap.php(162): require('/home4/schemat2...')
#3 /uNder-tej-stuNg/index.php(5): require_once('/home4/schemat2...')
--> PHP Deprecated: Return type of queryFactoryResult::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /includes/classes/db/mysql/query_factory.php on line 591.

[03-Nov-2022 02:56:54 America/Denver] Request URI: /Test/uNder-tej-stuNg/index.php?cmd=display_logs&action=delete, IP address: 35.145.152.129
#0 /includes/classes/db/mysql/query_factory.php(519): zen_debug_error_handler()
#1 /uNder-tej-stuNg/includes/init_includes/init_database.php(16): require('/home4/schemat2...')
#2 /uNder-tej-stuNg/includes/application_bootstrap.php(162): require('/home4/schemat2...')
#3 /uNder-tej-stuNg/index.php(5): require_once('/home4/schemat2...')
--> PHP Deprecated: Return type of queryFactoryResult::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /includes/classes/db/mysql/query_factory.php on line 605.

[03-Nov-2022 02:56:54 America/Denver] Request URI: /Test/uNder-tej-stuNg/index.php?cmd=display_logs&action=delete, IP address: 35.145.152.129
#0 /includes/classes/db/mysql/query_factory.php(519): zen_debug_error_handler()
#1 /uNder-tej-stuNg/includes/init_includes/init_database.php(16): require('/home4/schemat2...')
#2 /uNder-tej-stuNg/includes/application_bootstrap.php(162): require('/home4/schemat2...')
#3 /uNder-tej-stuNg/index.php(5): require_once('/home4/schemat2...')
--> PHP Deprecated: Return type of queryFactoryResult::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /includes/classes/db/mysql/query_factory.php on line 598.

[03-Nov-2022 02:56:54 America/Denver] Request URI: /Test/uNder-tej-stuNg/index.php?cmd=display_logs&action=delete, IP address: 35.145.152.129
#0 /includes/classes/db/mysql/query_factory.php(519): zen_debug_error_handler()
#1 /uNder-tej-stuNg/includes/init_includes/init_database.php(16): require('/home4/schemat2...')
#2 /uNder-tej-stuNg/includes/application_bootstrap.php(162): require('/home4/schemat2...')
#3 /uNder-tej-stuNg/index.php(5): require_once('/home4/schemat2...')
--> PHP Deprecated: Return type of queryFactoryResult::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /includes/classes/db/mysql/query_factory.php on line 658.

[03-Nov-2022 02:56:54 America/Denver] Request URI: /Test/uNder-tej-stuNg/index.php?cmd=display_logs&action=delete, IP address: 35.145.152.129
#0 /includes/classes/db/mysql/query_factory.php(519): zen_debug_error_handler()
#1 /uNder-tej-stuNg/includes/init_includes/init_database.php(16): require('/home4/schemat2...')
#2 /uNder-tej-stuNg/includes/application_bootstrap.php(162): require('/home4/schemat2...')
#3 /uNder-tej-stuNg/index.php(5): require_once('/home4/schemat2...')
--> PHP Deprecated: Return type of queryFactoryResult::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /includes/classes/db/mysql/query_factory.php on line 648.

[03-Nov-2022 02:56:55 America/Denver] Request URI: /Test/uNder-tej-stuNg/index.php?cmd=display_logs&action=delete, IP address: 35.145.152.129
#0 /uNder-tej-stuNg/includes/functions/general.php(189): zen_debug_error_handler()
#1 /uNder-tej-stuNg/includes/functions/general.php(983): zen_datetime_short()
#2 /uNder-tej-stuNg/includes/classes/VersionServer.php(110): zen_get_system_information()
#3 /uNder-tej-stuNg/includes/classes/VersionServer.php(25): VersionServer->buildCurrentInfo()
#4 /uNder-tej-stuNg/includes/classes/VersionServer.php(63): VersionServer->getZcVersioninfo()
#5 /includes/functions/plugin_support.php(49): VersionServer->getPluginVersion()
#6 /uNder-tej-stuNg/includes/init_includes/init_sitemapxml.php(167): plugin_version_check_for_updates()
#7 /includes/autoload_func.php(37): require_once('/home4/schemat2...')
#8 /uNder-tej-stuNg/includes/application_top.php(37): require('/home4/schemat2...')
#9 /zc_plugins/DisplayLogs/v3.0.0/admin/display_logs.php(35): require('/home4/schemat2...')
#10 /uNder-tej-stuNg/index.php(23): require('/home4/schemat2...')
--> PHP Deprecated: Function strftime() is deprecated in /uNder-tej-stuNg/includes/functions/general.php on line 189.

[03-Nov-2022 02:56:55 America/Denver] Request URI: /Test/uNder-tej-stuNg/index.php?cmd=display_logs&action=delete, IP address: 35.145.152.129
#0 /uNder-tej-stuNg/includes/functions/general.php(189): zen_debug_error_handler()
#1 /uNder-tej-stuNg/includes/functions/general.php(996): zen_datetime_short()
#2 /uNder-tej-stuNg/includes/classes/VersionServer.php(110): zen_get_system_information()
#3 /uNder-tej-stuNg/includes/classes/VersionServer.php(25): VersionServer->buildCurrentInfo()
#4 /uNder-tej-stuNg/includes/classes/VersionServer.php(63): VersionServer->getZcVersioninfo()
#5 /includes/functions/plugin_support.php(49): VersionServer->getPluginVersion()
#6 /uNder-tej-stuNg/includes/init_includes/init_sitemapxml.php(167): plugin_version_check_for_updates()
#7 /includes/autoload_func.php(37): require_once('/home4/schemat2...')
#8 /uNder-tej-stuNg/includes/application_top.php(37): require('/home4/schemat2...')
#9 /zc_plugins/DisplayLogs/v3.0.0/admin/display_logs.php(35): require('/home4/schemat2...')
#10 /uNder-tej-stuNg/index.php(23): require('/home4/schemat2...')
--> PHP Deprecated: Function strftime() is deprecated in /uNder-tej-stuNg/includes/functions/general.php on line 189.

and this one:
[31-Oct-2022 14:44:40 America/Denver] Request URI: /Test/index.php?main_page=product_info&cPath=67_84_216&products_id=1462, IP address: 148.251.168.205
#0 /home4/schemat2/public_html/Test/includes/classes/db/mysql/query_factory.php(519): zen_debug_error_handler()
#1 /home4/schemat2/public_html/Test/includes/init_includes/init_database.php(17): require('/home4/schemat2...')
#2 /home4/schemat2/public_html/Test/includes/application_top.php(189): require('/home4/schemat2...')
#3 /home4/schemat2/public_html/Test/index.php(25): require('/home4/schemat2...')
--> PHP Deprecated: Return type of queryFactoryResult::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange]
attribute should be used to temporarily suppress the notice in /home4/schemat2/public_html/Test/includes/classes/db/mysql/query_factory.php on line 591.

and this one:
[31-Oct-2022 14:44:40 America/Denver] Request URI: /Test/index.php?main_page=product_info&cPath=67_84_216&products_id=1462, IP address: 148.251.168.205
#0 /home4/schemat2/public_html/Test/includes/classes/observers/class.products_viewed_counter.php(37): zen_debug_error_handler()
#1 /home4/schemat2/public_html/Test/includes/classes/observers/class.products_viewed_counter.php(17): products_viewed_counter->should_be_excluded()
#2 /home4/schemat2/public_html/Test/includes/autoload_func.php(44): products_viewed_counter->__construct()
#3 /home4/schemat2/public_html/Test/includes/application_top.php(222): require('/home4/schemat2...')
#4 /home4/schemat2/public_html/Test/index.php(25): require('/home4/schemat2...')
--> PHP Warning: Undefined global variable $spider_flag in /home4/schemat2/public_html/Test/includes/classes/observers/class.products_viewed_counter.php on line 37.