If this is your first visit, check our documentation. To post, register or login.

Error log

Started by bruce1952 on 25 Jan 2026, 11:45 PM · Views: 1,056

Results 1 to 5 of 5
25 Jan 2026, 11:45 PM
#1
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Post #1 by bruce1952

Hi All,

I am on a VPS server running zencart version 2.1.0 and php version 8.3

Each time a sale is made I am getting this error message and it is annoying and need to know what to do about it.

[26-Jan-2026 07:37:13 Asia/Singapore] Request URI: /admin/index.php?cmd=invoice&oID=28782, IP address: 45.125.247.117, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /admin-panel/includes/functions/html_output.php(150): str_contains()
#2 /admin-panel/includes/functions/html_output.php(294): zen_image()
#3 /admin-panel/invoice.php(163): zen_draw_separator()
#4 /admin-panel/index.php(16): require('/home/xxxx...')
--> PHP Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /admin-panel/includes/functions/html_output.php on line 150.

[26-Jan-2026 07:37:13 Asia/Singapore] Request URI: /admin-panel/index.php?cmd=invoice&oID=28782, IP address: 45.125.247.117, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /admin-panel/includes/functions/html_output.php(155): str_contains()
#2 /admin-panel/includes/functions/html_output.php(294): zen_image()
#3 /admin-panel/invoice.php(163): zen_draw_separator()
#4 /admin-panel/index.php(16): require('/home/xxxx...')
--> PHP Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /admin-panel/includes/functions/html_output.php on line 155.

And this is the other one that I get.

[26-Jan-2026 07:33:55 Asia/Singapore] Request URI: /success-thank-you, IP address: 125.239.174.66
--> PHP Fatal error: Uncaught Error: Undefined constant "FILENAME_INVOICE" in /includes/templates/bootstrap/templates/tpl_account_history_info_default.php:281
Stack trace:
#0 /includes/templates/bootstrap/templates/tpl_checkout_success_default.php(97): require()
#1 /includes/modules/pages/checkout_success/main_template_vars.php(15): require('/home/xxxx...')
#2 /includes/templates/bootstrap/common/tpl_main_page.php(233): require('/home/xxxx...')
#3 /index.php(94): require('/home/xxxx...')
#4 {main}
thrown in /includes/templates/bootstrap/templates/tpl_account_history_info_default.php on line 281.

[26-Jan-2026 07:33:55 Asia/Singapore] Request URI: /success-thank-you, IP address: 125.239.174.66
--> PHP Fatal error: Uncaught Error: Undefined constant "FILENAME_INVOICE" in /includes/templates/bootstrap/templates/tpl_account_history_info_default.php:281
Stack trace:
#0 /includes/templates/bootstrap/templates/tpl_checkout_success_default.php(97): require()
#1 /includes/modules/pages/checkout_success/main_template_vars.php(15): require('/home/xxxx...')
#2 /includes/templates/bootstrap/common/tpl_main_page.php(233): require('/home/xxxx...')
#3 /index.php(94): require('/home/xxxx...')
#4 {main}
thrown in /includes/templates/bootstrap/templates/tpl_account_history_info_default.php on line 281.

Any help would be appreciated.

Outdoorking
Live Site https://www.outdoorking.com.au

26 Jan 2026, 3:42 AM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #2 by dbltoe

And we were just told that all was working.

The deprecated is more prevalent thanks to GoneDaddy giving you 8.3. It was minor in 8.2 and will be fatal in 9.0

FILENAME_INVOICE is not in a stock load of 2.1.0. You've probably loaded some mod like Catalog Invoice and missed a step or file.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

26 Jan 2026, 1:34 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #3 by lat9

I'll confirm that your version of /admin/invoice.php is modified from the base/core release. For zc210's as-shipped version, line 163 of that file is highlighted below:

<?php
          // -----
          // Additional column-headings can be added before the Tax columns.
          //
          // A watching observer can provide an associative array in the following format (for the products' listing ONLY):
          //
          // $extra_headings = array(
          //     array(
          //       'align' => $alignment,    // One of 'center', 'right', or 'left' (optional)
          //       'text' => $value
          //     ),
          // );
          //
          // Observer notes:
          // - Be sure to check that the $p2/$extra_headings value is specifically (bool)false before initializing, since
          //   multiple observers might be injecting content!
          // - If heading-columns are added, be sure to add the associated data columns, too, via the
[B]          //   'NOTIFY_ADMIN_INVOICE_DATA_B4_TAX' notification.[/B]
          //
          $extra_headings = false;
          $zco_notifier->notify('NOTIFY_ADMIN_INVOICE_HEADING_B4_TAX', '', $extra_headings);
          if (is_array($extra_headings)) {
              foreach ($extra_headings as $heading_info) {
                  $align = (isset($heading_info['align'])) ? (' text-' . $heading_info['align']) : '';
27 Jan 2026, 6:27 AM
#4
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Post #4 by bruce1952

Thank you lat9,

That stopped the error that I was getting but am am now getting another error that is showing up which is the one below.

[27-Jan-2026 14:21:09 Asia/Singapore] Request URI: /admin/index.php?cmd=invoice&oID=28811, IP address: 45.125.247.117, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /admin/includes/functions/html_output.php(150): str_contains()
#2 /admin/includes/functions/html_output.php(294): zen_image()
#3 /admin/invoice.php(163): zen_draw_separator()
#4 /admin/index.php(16): require('/home/outdoorki...')
--> PHP Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /admin/includes/functions/html_output.php on line 150.

[27-Jan-2026 14:21:09 Asia/Singapore] Request URI: /admin/index.php?cmd=invoice&oID=28811, IP address: 45.125.247.117, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /admin/includes/functions/html_output.php(155): str_contains()
#2 /admin/includes/functions/html_output.php(294): zen_image()
#3 /admin/invoice.php(163): zen_draw_separator()
#4 /admin/index.php(16): require('/home/outdoorki...')
--> PHP Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /admin/includes/functions/html_output.php on line 155.

Outdoorking
Live Site https://www.outdoorking.com.au

27 Jan 2026, 1:07 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #5 by lat9

Bruce1952:

Thank you lat9,

That stopped the error that I was getting but am am now getting another error that is showing up which is the one below.

[27-Jan-2026 14:21:09 Asia/Singapore] Request URI: /admin/index.php?cmd=invoice&oID=28811, IP address: 45.125.247.117, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /admin/includes/functions/html_output.php(150): str_contains()
#2 /admin/includes/functions/html_output.php(294): zen_image()
#3 /admin/invoice.php(163): zen_draw_separator()
#4 /admin/index.php(16): require('/home/outdoorki...')
--> PHP Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /admin/includes/functions/html_output.php on line 150.

[27-Jan-2026 14:21:09 Asia/Singapore] Request URI: /admin/index.php?cmd=invoice&oID=28811, IP address: 45.125.247.117, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /admin/includes/functions/html_output.php(155): str_contains()
#2 /admin/includes/functions/html_output.php(294): zen_image()
#3 /admin/invoice.php(163): zen_draw_separator()
#4 /admin/index.php(16): require('/home/outdoorki...')
--> PHP Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /admin/includes/functions/html_output.php on line 155.
That's the same error you posted originally. Your site's version of admin/invoice.php has been modified from the as-shipped version.

To deal with the deprecation, either restore the as-shipped zc210 version or contact the modification author.