Page 2 of 10 FirstFirst 1234 ... LastLast
Results 11 to 20 of 95
  1. #11
    Join Date
    Feb 2012
    Location
    Ohio, USA
    Posts
    58
    Plugin Contributions
    0

    Default Re: Display Log Files [Support Thread]

    You're right, it was an upgrade. Making the changes above, I now get:

    Parse error: syntax error, unexpected $end in /home/xxxxxx/ohwowthatscool.com/myadmin/display_logs.php on line 309

    You were also right, the defines for my logs directory was missing in the configure files. I added:

    define('DIR_FS_LOGS', DIR_FS_LOGS . 'logs/');

    to both configures, but I'm still getting the error from line 309. For the heck of it, I went back to your orignal code on display_logs.php since I added the define statements, and I'm back to getting the 500 error.

    Thank you for trying to help.

  2. #12
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Display Log Files [Support Thread]

    Quote Originally Posted by lat9 View Post
    The error message indicates that the constant DIR_FS_LOGS is not defined so that the PHP dir function is choking. Running on v1.5.1, you should have the DIR_FS_LOGS constant defined in both /YOUR_ADMIN/includes/configure.php and /includes/configure.php. I'm guessing that this was an upgrade to v1.5.1 for your site.

    That said, the plugin shouldn't be giving you the white-screen-of-death. I don't seem to have an issue with or without the DIR_FS_LOGS constant on v1.5.1 because the Zen Cart init handlers 'fix' it. It's another story on v1.5.0, however, where I'm seeing what you're seeing.

    Make the changes highlighted in red to /YOUR_ADMIN/display_logs.php, starting at line 39:
    Code:
         foreach(array(DIR_FS_LOGS, DIR_FS_SQL_CACHE, DIR_FS_CATALOG . '/includes/modules/payment/paypal/logs') as $logFolder) {
          $logFolder = rtrim($logFolder, '/'); 
          $dir = @dir($logFolder);
          if ($dir != NULL) {
            while ($file = $dir->read()) {
              if ( ($file != '.') && ($file != '..') && substr($file, 0, 1) != '.') {
                if (preg_match('/^(myDEBUG-|AIM_Debug_|SIM_Debug_|FirstData_Debug_|Linkpoint_Debug_|Paypal|paypal|ipn_|zcInstall).*\.log$/', $file)) {
                  $hash = sha1 ($logFolder . '/' . $file);
                  $logFiles[$hash] = array ( 'name'  => $logFolder . '/' . $file,
                                             'mtime' => filemtime($logFolder . '/' . $file)
                                           );
                }
              }
            }
          }
    I'll hold off on resubmission to the Plugins for a bit, just in case ...

    These changes fixed the 500 error on 1.50.

    Thanks for this addition!

  3. #13
    Join Date
    Feb 2012
    Location
    Ohio, USA
    Posts
    58
    Plugin Contributions
    0

    Default Re: Display Log Files [Support Thread]

    Quote Originally Posted by jlizotte View Post
    You're right, it was an upgrade. Making the changes above, I now get:

    Parse error: syntax error, unexpected $end in /home/xxxxxx/ohwowthatscool.com/myadmin/display_logs.php on line 309
    It's actually the last line of your file: <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

    (I had commented out the changes I made above.)

    Again, thanks for your help. I can muddle through PHP with direction, but only know enough to figure out the most basic parts of it.

  4. #14
    Join Date
    Feb 2012
    Location
    Ohio, USA
    Posts
    58
    Plugin Contributions
    0

    Default Re: Display Log Files [Support Thread]

    OK. I got this working. I had to add a fifth "}" at the end of your modification above. It's working great now!

    Thank you, lat9, for your help, and for a great contribution. Happy holidays!

  5. #15
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Display Log Files [Support Thread]

    Quote Originally Posted by jlizotte View Post
    You're right, it was an upgrade. Making the changes above, I now get:

    Parse error: syntax error, unexpected $end in /home/xxxxxx/ohwowthatscool.com/myadmin/display_logs.php on line 309

    You were also right, the defines for my logs directory was missing in the configure files. I added:

    define('DIR_FS_LOGS', DIR_FS_LOGS . 'logs/');

    to both configures, but I'm still getting the error from line 309. For the heck of it, I went back to your orignal code on display_logs.php since I added the define statements, and I'm back to getting the 500 error.

    Thank you for trying to help.
    Should be:
    define('DIR_FS_LOGS', DIR_FS_CATALOG . 'logs/');
    .

    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.

  6. #16
    Join Date
    Feb 2012
    Location
    Ohio, USA
    Posts
    58
    Plugin Contributions
    0

    Default Re: Display Log Files [Support Thread]

    Quote Originally Posted by DrByte View Post
    Should be:
    define('DIR_FS_LOGS', DIR_FS_CATALOG . 'logs/');
    Oops. Many thanks, Sir!
    Last edited by jlizotte; 23 Dec 2012 at 06:17 PM.

  7. #17
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Display Log Files [Support Thread]

    Quote Originally Posted by DrByte View Post
    Should be:
    define('DIR_FS_LOGS', DIR_FS_CATALOG . 'logs/');
    Er, my v1.5.1 copy of configure.php has a comment that reads:
    Code:
     //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash

  8. #18
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Display Log Files [Support Thread]

    The updated version is available here, as v1.0.0a for the next week or so; then I'll resubmit to the Plugins area. Just click the "Download Now" button.

  9. #19
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Display Log Files [Support Thread]

    I've repackaged v1.0.0a as v1.0.1 and submitted the update to the Zen Cart Plugins area ...

  10. #20
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Display Log Files [Support Thread]

    I have added the debug-file file-size to the listing of the debug file. I find this very handy in finding potentially the same errors. If anyone else is interested, I will upload this "upgraded version"

 

 
Page 2 of 10 FirstFirst 1234 ... LastLast

Similar Threads

  1. v151 Log Manager [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 19 Oct 2023, 11:44 AM
  2. v155 Big Files support thread
    By swguy in forum Addon Admin Tools
    Replies: 6
    Last Post: 9 Nov 2021, 07:06 AM
  3. v156 PWA, Offline support Push notifications addon [Support Thread]
    By perfumbg in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 May 2019, 02:27 PM
  4. v155 WordPress Product Display Support Thread
    By swguy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Jul 2017, 12:04 AM
  5. v150 Admin Password Change Alert Message Display -- Support Thread
    By lat9 in forum All Other Contributions/Addons
    Replies: 13
    Last Post: 24 Dec 2015, 04:53 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