Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Logs not being written after upgrade to 1.5.5e/f

    Carrying this discussion over from the One-Page Checkout support thread.

    Quote Originally Posted by jpda View Post
    Have checked it again.
    Removed both local directories and put both local configure.php files in their 'normal' directories (/includes/ and /admin/includes/, w/o explicit defines for logs. Thus forcing reading of these configure files.
    Result: both debug logs were written.

    Restored both local directories, put both local configure.php files in those local directories (/includes/local/ and /admin/includes/local/), w/o explicit defines for logs
    And:
    Restored both original configure.php files from the live site into their 'normal' directories (/includes/ and /admin/includes/).
    Result: no log files!

    Extra check: when I remove all configure.php files from /includes/ and /admin/includes/, leaving the local versions w/o explicit defines for logs, then debug logs will be written!

    Conclusion?

    Cheers,

    jpda

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,691
    Plugin Contributions
    9

    Default Re: Logs not being written after upgrade to 1.5.5e/f

    conclusion:

    the definition in the local configure is WRONG.

    the local gets loaded before the straight includes. look at the following two defines:

    PHP Code:
    define('DIR_FS_LOGS'DIR_FS_CATALOG '/zc_logs');
    define('DIR_FS_LOGS''/var/www/test_site/zc_logs'); 
    if the 1st line is in the local configure, at that point DIR_FS_CATALOG is NOT defined. so your log file directory is not defined.

    in the 2nd line, by explicitly defining the directory, the logs get correctly written.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Logs not being written after upgrade to 1.5.5e/f

    @jpda was kind enough to send me copies of his /includes/configure.php and /includes/local/configure.php. Turns out that the issue was that the /includes/configure.php (since he's doing his upgrade locally) hadn't been updated from the Zen Cart 1.5.4 format, so it included all the sub-definitions that (as of Zen Cart 1.5.5) have been moved to the /includes/defined_paths.php script ... like DIR_FS_LOGS.

    Commenting-out those definitions to put the /includes/configure.php "in line" with ZC1.5.5+ usage corrected the issue.

  4. #4
    Join Date
    Jun 2014
    Posts
    138
    Plugin Contributions
    0

    Default Re: Logs not being written after upgrade to 1.5.5e/f

    Indeed, my local configure did have the 1.5.5 format, the /includes/configure.php did not as @lat9 kindly figured out.

    jpda

 

 

Similar Threads

  1. v154 Logs folder not being written to since 2014
    By suedouglas in forum General Questions
    Replies: 6
    Last Post: 3 Mar 2017, 08:32 PM
  2. v155 Error logs not being written
    By jeking in forum Installing on a Linux/Unix Server
    Replies: 16
    Last Post: 26 Mar 2016, 02:50 AM
  3. v154 After upgrade only header shows, no errors in logs
    By aestheticdesign in forum Upgrading to 1.5.x
    Replies: 3
    Last Post: 24 Jan 2015, 10:55 PM
  4. Paypal express not sending order details in 1.3.9h, logs show them being sent?
    By scianiac in forum PayPal Express Checkout support
    Replies: 17
    Last Post: 29 Sep 2011, 06:28 AM
  5. Product Images no longer being written to DB
    By Chinchilla2661 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 6 Nov 2007, 08:11 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