Thread: SitemapXML v.2

Page 218 of 222 FirstFirst ... 118168208216217218219220 ... LastLast
Results 2,171 to 2,180 of 2213
  1. #2171
    Join Date
    Jun 2012
    Location
    California
    Posts
    238
    Plugin Contributions
    0

    Default Re: SitemapXML v.2

    Quote Originally Posted by neekfenwick View Post
    Excuse me for sticking my oar in, I'm not even in my work environment so can't really investigate, but I note the timestamp of your logs is 6 seconds after 5am, which leads me to guess it's a cron job that's running the sitemapxml script at 5am, so your $_SERVER variables may be impacted by the environment the script was run in, differently to the usual browser invocation. I agree with @cartwhat, editing core files is unlikely to be a good idea, unless you've uncovered a genuine bug. From a cursory read of the documentation at https://www.php.net/manual/en/reserv...les.server.php I can't see why SCRIPT_NAME would be null. Can you give us any details of the exact command line that invoked PHP to run the cgi-bin/sitemapxml.php script? Is there something funky going on with the environment? (try `crontab -l | grep sitemap` to see if any cron commands invoke sitemapxml, your environment may vary)

    Personally, I might experiment with logging variables to a file to figure out why your variables are null, though Zen Cart has never had a decent logging framework that I've seen. I built Monolog into mine, with file and Graylog handlers.

    By the way, you suggested replacing `dirname($_SERVER['SCRIPT_NAME'])` with `dirname($_SERVER ?? ''['SCRIPT_NAME'])`, which would imply that `$_SERVER` may undefined, which is unlikely. I'd suggest `dirname($_SERVER['SCRIPT_NAME'] ?? '')` at the very least, as a more sensible use of the null coalescing operator ??, but still a bad idea as @cartwhat said, find the root cause of the error rather than modifying core files.
    Thank you both for your responses. I am not a programmer, so I am just spit balling trying to come up with a solution.
    The cron job that currently runs on the BlueHost server is the same one that has been running for at least five years now without issue.
    I have edited out two of the names for security, but they are correct for the site location.

    Code:
    php -f /******/******/public_html/cgi-bin/sitemapxml.php rebuild=yes ping=yes
    I recently upgraded to ZC 2.1 which required updating several plugins e.t.c.
    It was about two weeks of frustration and a lot of help from lat9 and a few others, but it got done and I was getting no debug logs finally.
    The only item left on the list was the sitemapxml plugin.
    After loading the 2.1 compatible version I began getting the debug and warning logs I noted earlier.
    My assumption was something is wrong with the core code as I have had that same plugin running for a long time without issue in previous versions of ZC.

  2. #2172
    Join Date
    Apr 2011
    Location
    Espoo, Finland
    Posts
    64
    Plugin Contributions
    0

    Default Re: SitemapXML v.2

    Good day,

    May I make some code upgrade suggestion?

    If do not want manufacturers with no active products to be listed in "sitemap/sitemapmanufacturers.xml" file, please add the following code:

    Code:
    // to exclude manufacturers with no active products
    $products = $db->Execute("SELECT products_id 
                                   FROM " . TABLE_PRODUCTS . " 
                                   WHERE manufacturers_id='" . (int)$next_manufacturer['manufacturers_id'] . "' 
                                   AND products_status=1");
    if (sizeof($products) < 1) continue;
    //
    to "includes\modules\pages\sitemapxml\sitemapxml_manufacturers.php" before line #43 ("$sitemapXML->writeItem(...")

    Regards,
    Last edited by yesaul; 4 Mar 2025 at 05:31 PM.

  3. #2173
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,354
    Plugin Contributions
    94

    Default Re: SitemapXML v.2

    Quote Originally Posted by yesaul View Post
    Good day,

    May I make some code upgrade suggestion?

    If do not want manufacturers with no active products to be listed in "sitemap/sitemapmanufacturers.xml" file, please add the following code:

    Code:
    // to exclude manufacturers with no active products
    $products = $db->Execute("SELECT products_id 
                                   FROM " . TABLE_PRODUCTS . " 
                                   WHERE manufacturers_id='" . (int)$next_manufacturer['manufacturers_id'] . "' 
                                   AND products_status=1");
    if (sizeof($products) < 1) continue;
    //
    to "includes\modules\pages\sitemapxml\sitemapxml_manufacturers.php" before line #43 ("$sitemapXML->writeItem(...")

    Regards,
    Good idea. I've created a GitHub issue to track the requested change: https://github.com/lat9/sitemapxml/issues/51

  4. #2174
    Join Date
    Apr 2011
    Location
    Espoo, Finland
    Posts
    64
    Plugin Contributions
    0

    Default Re: SitemapXML v.2

    File "includes\modules\pages\sitemapxml\sitemapxml_boxnews.php", line #13:

    Code:
    if ($sitemapXML->dbTableExist('TABLE_BOX_NEWS') === false || $sitemapXML->dbTableExist('TABLE_BOX_NEWS_CONTENT') === false)
    Why table names are put in quotes ?? This will always be returned as False, if I am not mistaken? :-)

    (also the same in all another calls of dbTableExist method)

  5. #2175
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,354
    Plugin Contributions
    94

    Default Re: SitemapXML v.2

    Quote Originally Posted by yesaul View Post
    File "includes\modules\pages\sitemapxml\sitemapxml_boxnews.php", line #13:

    Code:
    if ($sitemapXML->dbTableExist('TABLE_BOX_NEWS') === false || $sitemapXML->dbTableExist('TABLE_BOX_NEWS_CONTENT') === false)
    Why table names are put in quotes ?? This will always be returned as False, if I am not mistaken? :-)

    (also the same in all another calls of dbTableExist method)
    Another good find! I'll get that noted in GitHub as well.

    GitHub issue: https://github.com/lat9/sitemapxml/issues/52
    Last edited by lat9; 4 Mar 2025 at 08:44 PM. Reason: Added GitHub issue

  6. #2176
    Join Date
    Apr 2011
    Location
    Espoo, Finland
    Posts
    64
    Plugin Contributions
    0

    Default Re: SitemapXML v.2

    Do TABLE_HIDE_CATEGORIES and TABLE_TESTIMONIALS_MANAGER probably are coming from some another addon module?

    They are not defined here (and no error occurs only as they are in the quotes by calling dbTableExist method (which obediently returns False))

  7. #2177
    Join Date
    Jun 2012
    Location
    California
    Posts
    238
    Plugin Contributions
    0

    Default Re: SitemapXML v.2

    ZC 2.1
    PHP 8.3
    customer_tax_exempt_2.0.2
    edit_orders-5.0.0
    sitemapxml-4.0.3
    usps-USPS_2024_08_25_K11l
    zen_Image-Handler-5.3.5
    zen_TyPackageTracker-5.0.0

    I have completely deleted sitemapxml-4.0.3 and installed it again but I cannot figure out these two debug logs.
    It is the cron job on the Bluehost server for the sitemapxml that is initiating these logs.
    This same cron job has run for years without issue prior to the ZC 2.1 and plugin upgrades that were just recently done.
    I am assuming it is the issue with the Request URI not being set and the I.P. address being wrong, but I have no idea why this is occurring.

    Any assistance would be greatly appreciated.

    Code:
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_sessions.php(36): dirname()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: dirname(): Passing null to parameter #1 ($path) of type string is deprecated in ///public_html/includes/init_includes/init_sessions.php on line 36.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/classes/navigation_history.php(38): preg_match()
    #2 ///public_html/includes/autoload_func.php(62): navigationHistory->add_current_page()
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in ///public_html/includes/classes/navigation_history.php on line 38.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_customer_auth.php(83): preg_match()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in ///public_html/includes/init_includes/init_customer_auth.php on line 83.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_customer_auth.php(84): preg_match()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in ///public_html/includes/init_includes/init_customer_auth.php on line 84.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_customer_auth.php(139): preg_match()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in ///public_html/includes/init_includes/init_customer_auth.php on line 139.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_customer_auth.php(140): preg_match()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in ///public_html/includes/init_includes/init_customer_auth.php on line 140.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/functions/whos_online.php(13): preg_match()
    #2 ///public_html/includes/init_includes/init_special_funcs.php(18): zen_update_whos_online()
    #3 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #4 ///public_html/includes/application_top.php(329): require('//...')
    #5 ///public_html/index.php(25): require('//...')
    #6 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in ///public_html/includes/functions/whos_online.php on line 13.
    Code:
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 ///public_html/includes/init_includes/init_file_db_names.php(32): zen_debug_error_handler()
    #1 ///public_html/includes/application_top.php(292): require('//...')
    #2 ///public_html/index.php(25): require('//...')
    #3 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/init_includes/init_file_db_names.php on line 32.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/functions/sessions.php(35): session_set_save_handler()
    #2 ///public_html/includes/init_includes/init_sessions.php(25): require('//...')
    #3 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #4 ///public_html/includes/application_top.php(329): require('//...')
    #5 ///public_html/index.php(25): require('//...')
    #6 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent in ///public_html/includes/functions/sessions.php on line 35.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/functions/sessions.php(74): session_name()
    #2 ///public_html/includes/init_includes/init_sessions.php(30): zen_session_name()
    #3 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #4 ///public_html/includes/application_top.php(329): require('//...')
    #5 ///public_html/index.php(25): require('//...')
    #6 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: session_name(): Session name cannot be changed after headers have already been sent in ///public_html/includes/functions/sessions.php on line 74.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/functions/sessions.php(95): session_save_path()
    #2 ///public_html/includes/init_includes/init_sessions.php(31): zen_session_save_path()
    #3 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #4 ///public_html/includes/application_top.php(329): require('//...')
    #5 ///public_html/index.php(25): require('//...')
    #6 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: session_save_path(): Session save path cannot be changed after headers have already been sent in ///public_html/includes/functions/sessions.php on line 95.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 ///public_html/includes/init_includes/init_sessions.php(36): zen_debug_error_handler()
    #1 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #2 ///public_html/includes/application_top.php(329): require('//...')
    #3 ///public_html/index.php(25): require('//...')
    #4 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/init_includes/init_sessions.php on line 36.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_sessions.php(51): session_set_cookie_params()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent in ///public_html/includes/init_includes/init_sessions.php on line 51.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/functions/sessions.php(48): session_start()
    #2 ///public_html/includes/init_includes/init_sessions.php(106): zen_session_start()
    #3 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #4 ///public_html/includes/application_top.php(329): require('//...')
    #5 ///public_html/index.php(25): require('//...')
    #6 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: session_start(): Session cannot be started after headers have already been sent in ///public_html/includes/functions/sessions.php on line 48.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/classes/navigation_history.php(38): zen_debug_error_handler()
    #1 ///public_html/includes/autoload_func.php(62): navigationHistory->add_current_page()
    #2 ///public_html/includes/application_top.php(329): require('//...')
    #3 ///public_html/index.php(25): require('//...')
    #4 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/classes/navigation_history.php on line 38.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/init_includes/init_customer_auth.php(83): zen_debug_error_handler()
    #1 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #2 ///public_html/includes/application_top.php(329): require('//...')
    #3 ///public_html/index.php(25): require('//...')
    #4 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/init_includes/init_customer_auth.php on line 83.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/init_includes/init_customer_auth.php(84): zen_debug_error_handler()
    #1 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #2 ///public_html/includes/application_top.php(329): require('//...')
    #3 ///public_html/index.php(25): require('//...')
    #4 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/init_includes/init_customer_auth.php on line 84.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/init_includes/init_customer_auth.php(139): zen_debug_error_handler()
    #1 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #2 ///public_html/includes/application_top.php(329): require('//...')
    #3 ///public_html/index.php(25): require('//...')
    #4 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/init_includes/init_customer_auth.php on line 139.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/init_includes/init_customer_auth.php(140): zen_debug_error_handler()
    #1 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #2 ///public_html/includes/application_top.php(329): require('//...')
    #3 ///public_html/index.php(25): require('//...')
    #4 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/init_includes/init_customer_auth.php on line 140.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/functions/whos_online.php(13): zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_special_funcs.php(18): zen_update_whos_online()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/functions/whos_online.php on line 13.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/functions/whos_online.php(41): zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_special_funcs.php(18): zen_update_whos_online()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/functions/whos_online.php on line 41.

  8. #2178
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,354
    Plugin Contributions
    94

    Default Re: SitemapXML v.2

    Quote Originally Posted by yesaul View Post
    Do TABLE_HIDE_CATEGORIES and TABLE_TESTIMONIALS_MANAGER probably are coming from some another addon module?

    They are not defined here (and no error occurs only as they are in the quotes by calling dbTableExist method (which obediently returns False))
    In a word: Yes!

  9. #2179
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,354
    Plugin Contributions
    94

    Default Re: SitemapXML v.2

    Quote Originally Posted by wsworx View Post
    ZC 2.1
    PHP 8.3
    customer_tax_exempt_2.0.2
    edit_orders-5.0.0
    sitemapxml-4.0.3
    usps-USPS_2024_08_25_K11l
    zen_Image-Handler-5.3.5
    zen_TyPackageTracker-5.0.0

    I have completely deleted sitemapxml-4.0.3 and installed it again but I cannot figure out these two debug logs.
    It is the cron job on the Bluehost server for the sitemapxml that is initiating these logs.
    This same cron job has run for years without issue prior to the ZC 2.1 and plugin upgrades that were just recently done.
    I am assuming it is the issue with the Request URI not being set and the I.P. address being wrong, but I have no idea why this is occurring.

    Any assistance would be greatly appreciated.

    Code:
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_sessions.php(36): dirname()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: dirname(): Passing null to parameter #1 ($path) of type string is deprecated in ///public_html/includes/init_includes/init_sessions.php on line 36.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/classes/navigation_history.php(38): preg_match()
    #2 ///public_html/includes/autoload_func.php(62): navigationHistory->add_current_page()
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in ///public_html/includes/classes/navigation_history.php on line 38.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_customer_auth.php(83): preg_match()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in ///public_html/includes/init_includes/init_customer_auth.php on line 83.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_customer_auth.php(84): preg_match()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in ///public_html/includes/init_includes/init_customer_auth.php on line 84.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_customer_auth.php(139): preg_match()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in ///public_html/includes/init_includes/init_customer_auth.php on line 139.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_customer_auth.php(140): preg_match()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in ///public_html/includes/init_includes/init_customer_auth.php on line 140.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/functions/whos_online.php(13): preg_match()
    #2 ///public_html/includes/init_includes/init_special_funcs.php(18): zen_update_whos_online()
    #3 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #4 ///public_html/includes/application_top.php(329): require('//...')
    #5 ///public_html/index.php(25): require('//...')
    #6 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in ///public_html/includes/functions/whos_online.php on line 13.
    Code:
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 ///public_html/includes/init_includes/init_file_db_names.php(32): zen_debug_error_handler()
    #1 ///public_html/includes/application_top.php(292): require('//...')
    #2 ///public_html/index.php(25): require('//...')
    #3 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/init_includes/init_file_db_names.php on line 32.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/functions/sessions.php(35): session_set_save_handler()
    #2 ///public_html/includes/init_includes/init_sessions.php(25): require('//...')
    #3 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #4 ///public_html/includes/application_top.php(329): require('//...')
    #5 ///public_html/index.php(25): require('//...')
    #6 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent in ///public_html/includes/functions/sessions.php on line 35.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/functions/sessions.php(74): session_name()
    #2 ///public_html/includes/init_includes/init_sessions.php(30): zen_session_name()
    #3 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #4 ///public_html/includes/application_top.php(329): require('//...')
    #5 ///public_html/index.php(25): require('//...')
    #6 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: session_name(): Session name cannot be changed after headers have already been sent in ///public_html/includes/functions/sessions.php on line 74.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/functions/sessions.php(95): session_save_path()
    #2 ///public_html/includes/init_includes/init_sessions.php(31): zen_session_save_path()
    #3 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #4 ///public_html/includes/application_top.php(329): require('//...')
    #5 ///public_html/index.php(25): require('//...')
    #6 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: session_save_path(): Session save path cannot be changed after headers have already been sent in ///public_html/includes/functions/sessions.php on line 95.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 ///public_html/includes/init_includes/init_sessions.php(36): zen_debug_error_handler()
    #1 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #2 ///public_html/includes/application_top.php(329): require('//...')
    #3 ///public_html/index.php(25): require('//...')
    #4 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/init_includes/init_sessions.php on line 36.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_sessions.php(51): session_set_cookie_params()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent in ///public_html/includes/init_includes/init_sessions.php on line 51.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 ///public_html/includes/functions/sessions.php(48): session_start()
    #2 ///public_html/includes/init_includes/init_sessions.php(106): zen_session_start()
    #3 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #4 ///public_html/includes/application_top.php(329): require('//...')
    #5 ///public_html/index.php(25): require('//...')
    #6 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: session_start(): Session cannot be started after headers have already been sent in ///public_html/includes/functions/sessions.php on line 48.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/classes/navigation_history.php(38): zen_debug_error_handler()
    #1 ///public_html/includes/autoload_func.php(62): navigationHistory->add_current_page()
    #2 ///public_html/includes/application_top.php(329): require('//...')
    #3 ///public_html/index.php(25): require('//...')
    #4 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/classes/navigation_history.php on line 38.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/init_includes/init_customer_auth.php(83): zen_debug_error_handler()
    #1 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #2 ///public_html/includes/application_top.php(329): require('//...')
    #3 ///public_html/index.php(25): require('//...')
    #4 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/init_includes/init_customer_auth.php on line 83.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/init_includes/init_customer_auth.php(84): zen_debug_error_handler()
    #1 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #2 ///public_html/includes/application_top.php(329): require('//...')
    #3 ///public_html/index.php(25): require('//...')
    #4 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/init_includes/init_customer_auth.php on line 84.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/init_includes/init_customer_auth.php(139): zen_debug_error_handler()
    #1 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #2 ///public_html/includes/application_top.php(329): require('//...')
    #3 ///public_html/index.php(25): require('//...')
    #4 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/init_includes/init_customer_auth.php on line 139.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/init_includes/init_customer_auth.php(140): zen_debug_error_handler()
    #1 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #2 ///public_html/includes/application_top.php(329): require('//...')
    #3 ///public_html/index.php(25): require('//...')
    #4 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/init_includes/init_customer_auth.php on line 140.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/functions/whos_online.php(13): zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_special_funcs.php(18): zen_update_whos_online()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/functions/whos_online.php on line 13.
    
    [04-Mar-2025 05:00:05 America/Boise] Request URI: not set, IP address: 127.0.0.1, Language id 1
    #0 ///public_html/includes/functions/whos_online.php(41): zen_debug_error_handler()
    #1 ///public_html/includes/init_includes/init_special_funcs.php(18): zen_update_whos_online()
    #2 ///public_html/includes/autoload_func.php(40): require_once('//...')
    #3 ///public_html/includes/application_top.php(329): require('//...')
    #4 ///public_html/index.php(25): require('//...')
    #5 ///public_html/cgi-bin/sitemapxml.php(74): require('//...')
    --> PHP Warning: Undefined array key "SCRIPT_NAME" in ///public_html/includes/functions/whos_online.php on line 41.
    Are there other cron-jobs configured that don't throw these errors?

  10. #2180
    Join Date
    Jun 2012
    Location
    California
    Posts
    238
    Plugin Contributions
    0

    Default Re: SitemapXML v.2

    Quote Originally Posted by lat9 View Post
    Are there other cron-jobs configured that don't throw these errors?
    Hi lat9

    No, I only have the one cron job running.
    The only difference I see now between the previous cron job setup and the way the new landing page for Sitemap XML indicates wording is listed below:

    Current Cron job:
    Code:
    0 5 * * * php -f <path to shop>/cgi-bin/sitemapxml.php rebuild=yes ping=yes
    New sitemap example:
    Code:
    0 5 * * * php -f <path to shop>/cgi-bin/sitemapxml.php rebuild=yes
    I will correct that, but it doesn't seem like just removing the "ping" statement is going to help this situation.
    Last edited by wsworx; 5 Mar 2025 at 01:04 AM.

 

 

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