Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2009
    Posts
    32
    Plugin Contributions
    0

    Default mysterious log files keep appearing

    Why do I get these log files?
    [16-Mar-2022 11:19:22 Europe/Oslo] Request URI: /, IP address: 212.115.42.249
    #1 session_set_save_handler() called at [/home/3/e/eureka-rc/www/includes/functions/sessions.php:102]
    #2 require(/home/3/e/eureka-rc/www/includes/functions/sessions.php) called at [/home/3/e/eureka-rc/www/includes/init_includes/init_sessions.php:28]
    #3 require(/home/3/e/eureka-rc/www/includes/init_includes/init_sessions.php) called at [/home/3/e/eureka-rc/www/includes/autoload_func.php:48]
    #4 require(/home/3/e/eureka-rc/www/includes/autoload_func.php) called at [/home/3/e/eureka-rc/www/includes/application_top.php:170]
    #5 require(/home/3/e/eureka-rc/www/includes/application_top.php) called at [/home/3/e/eureka-rc/www/index.php:26]
    [16-Mar-2022 11:19:22 Europe/Oslo] PHP Warning: session_set_save_handler(): Cannot change save handler when headers already sent in /home/3/e/eureka-rc/www/includes/functions/sessions.php on line 102

    Kjell

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,524
    Plugin Contributions
    88

    Default Re: mysterious log files keep appearing

    You've got one (or more) added (or not updated) files that load before the session is established and contain constructs like
    PHP Code:
    <?php
    // a bunch of stuff
    ?>
    i.e. containing one or more blank lines after the trailing ?>. I'd start looking in /includes/extra_configures and /includes/extra_datafiles for a start and then progress into any added files in /includes/functions or /includes/functions/extra_functions.

  3. #3
    Join Date
    Jan 2009
    Posts
    76
    Plugin Contributions
    0

    Default Re: mysterious log files keep appearing

    Hi lat9.
    I am experiencing the same problem as Kjell and have followed your instructions. I have found that the majority of the PHP files located in the directories you mentioned don't have a ?> as it's last line of code. Is this normal?
    Many thanks, John.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,716
    Plugin Contributions
    123

    Default Re: mysterious log files keep appearing

    > majority of the PHP files ... don't have a ?> as it's last line of code.

    Yes, this is fine. It actually helps *prevent* the issue @lat9 is describing.
    That Software Guy. My Store: Zen Cart Support
    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.

  5. #5
    Join Date
    Jan 2009
    Posts
    76
    Plugin Contributions
    0

    Default Re: mysterious log files keep appearing

    Thank you swguy. Should I remove the ?> from those that do? Will this solve the issue?

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

    Default Re: mysterious log files keep appearing

    The trouble comes when files (generally plugins or other modifications) have a trailing

    ?>

    with characters after it. See @lat9's guidance above:

    "I'd start looking in /includes/extra_configures and /includes/extra_datafiles for a start and then progress into any added files in /includes/functions or /includes/functions/extra_functions."
    That Software Guy. My Store: Zen Cart Support
    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.

  7. #7
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,591
    Plugin Contributions
    30

    Default Re: mysterious log files keep appearing

    Once upon a time, somewhere, there was a tool floating about that checked for such things...I found it in my archive and have cleaned and posted it here:
    https://github.com/torvista/Zen_Cart-Find_Extra_Spaces

    it may give you the pointers you need but heed the readme....
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,716
    Plugin Contributions
    123

    Default Re: mysterious log files keep appearing

    Thanks for doing this. Will add to
    https://docs.zen-cart.com/user/troub..._already_sent/
    That Software Guy. My Store: Zen Cart Support
    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. v139h How do I keep Sold Items from appearing on new products?
    By mooncavecrystals in forum General Questions
    Replies: 4
    Last Post: 30 Jun 2012, 02:07 PM
  2. Mysterious word in sidebox heading appearing
    By jami1955 in forum General Questions
    Replies: 2
    Last Post: 11 Jun 2009, 07:24 PM
  3. Images keep appearing???
    By BlushFashions in forum General Questions
    Replies: 5
    Last Post: 12 Jul 2007, 02:17 PM
  4. How to keep the Qty Discount box from appearing?
    By benjames in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 21 Sep 2006, 11:35 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