Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    523
    Plugin Contributions
    0

    Default v157b PHP Notice: Undefined index: SSL_SESSION_ID

    157b, responsive classic, PHP7.3

    I turned on extra logging and this turned up, it is a notice so not an error; should I worry about it or ignore it?

    Code:
    [16-Apr-2021 22:14:00 Europe/Zurich] Request URI: /catalog/index.php?main_page=checkout_shipping, IP address: 88.151.150.xxx
    #1 require_once(/includes/init_includes/init_sessions.php) called at [/includes/autoload_func.php:37]
    #2 require(/includes/autoload_func.php) called at [/includes/application_top.php:219]
    #3 require(/includes/application_top.php) called at [/index.php:25]
    --> PHP Notice: Undefined index: SSL_SESSION_ID in /includes/init_includes/init_sessions.php on line 132.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,314
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: v157b PHP Notice: Undefined index: SSL_SESSION_ID

    It seems you've turned on the Admin->Configuration->Sessions->Check SSL Session ID which is off by default.

    I'm guessing that your webserver's configuration (not in your control) isn't currently passing the SSL_SESSION_ID value over to PHP.
    I haven't looked into whether that setting is even "common" anymore in modern webserver software.

    I guess to mitigate it you have 2 options:
    a) turn that configuration setting off
    b) or you could explore changing line 131 as follows:

    Code:
    if ( ($request_type == 'SSL') && (SESSION_CHECK_SSL_SESSION_ID == 'True') && (ENABLE_SSL == 'true') && ($session_started == true) && isset($_SERVER['SSL_SESSION_ID'])) {
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    523
    Plugin Contributions
    0

    Default Re: v157b PHP Notice: Undefined index: SSL_SESSION_ID

    Thanks for your quick reply, I have turned off the Admin->Configuration->Sessions->Check SSL Session ID.

 

 

Similar Threads

  1. v157 PHP Notice: Undefined index
    By yueli7 in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 24 Jul 2020, 06:56 PM
  2. v155 Undefined index: shipping in classes/order.php
    By torvista in forum Bug Reports
    Replies: 3
    Last Post: 11 Sep 2017, 04:09 PM
  3. v155 adding constants - PHP Notice: Use of undefined constant
    By torvista in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 4 May 2016, 07:07 AM
  4. Replies: 2
    Last Post: 5 May 2010, 09:58 PM
  5. Undefined Notice: Use of undefined constant
    By TheOracle in forum Bug Reports
    Replies: 0
    Last Post: 6 May 2007, 06:33 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