Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Apr 2020
    Location
    Tampa, FL
    Posts
    15
    Plugin Contributions
    0

    Default Thousands of debug logs

    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.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,091
    Plugin Contributions
    310

    Default Re: Thousands of debug logs

    Your version of PHP is too advanced for the version of Zen Cart you are running. See

    https://docs.zen-cart.com/user/first...s/#php-version
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Apr 2020
    Location
    Tampa, FL
    Posts
    15
    Plugin Contributions
    0

    Default Re: Thousands of debug logs

    PHP version is 7.3.33

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    8,761
    Plugin Contributions
    9

    Default Re: Thousands of debug logs

    To quote my cousin Vinnie, are you sure? strftime() should be fine unless you are using PHP 8.1

  5. #5
    Join Date
    Jul 2012
    Posts
    16,519
    Plugin Contributions
    17

    Default Re: Thousands of debug logs

    More importantly, by what method was the php version "confirmed"? Check by logging into admin and then selecting the version link. Can be found in the far right upper corner or near the end of the hamburger list.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,091
    Plugin Contributions
    310

    Default Re: Thousands of debug logs

    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. v157 Debug Logs re Products?
    By Elemi in forum General Questions
    Replies: 2
    Last Post: 2 Dec 2021, 09:17 PM
  2. Hundreds of thousands of MYdebug logs
    By cnymike in forum General Questions
    Replies: 2
    Last Post: 20 Feb 2020, 03:04 AM
  3. No debug logs
    By Deirdre in forum General Questions
    Replies: 4
    Last Post: 7 Jan 2011, 05:44 AM
  4. Authorize.net AIM still generating debug logs even with debug disabled
    By llynix in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 11 May 2010, 01:03 AM
  5. Delete Debug Logs?
    By igendreau in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 15 Apr 2010, 04:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR