Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Error logs not being written

    I'm working on an upgrade and getting blank pages. When I look in my logs folder, there are no errors. When I enable STRICT_ERROR_REPORTING, I do see the errors on the screen.

    My logs folder is writable and I have not made any changes to either configure.php file relating to log files or folders.

  2. #2
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Error logs not being written

    I checked with the host. They did recently disable PHP functions:
    show_source, system, shell_exec, passthru, exec, popen, proc_open, ini_set

    Are any of these require for log files to be written?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: Error logs not being written

    Quote Originally Posted by jeking View Post
    I checked with the host. They did recently disable PHP functions:
    show_source, system, shell_exec, passthru, exec, popen, proc_open, ini_set

    Are any of these require for log files to be written?
    No. Those are not required for log writing.

    Logs are written to /logs/ if the folder is writable (by the user account on the server which is running PHP/Apache), and if the enable_error_logging.php file is present in the extra_configures folder in both admin and catalog.

    The DIR_FS_LOGS constant defaults to pointing to the /logs/ folder, and is no longer set in the configure.php file unless you've set your own define for it there for the purpose of overriding the default.
    .

    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.

  4. #4
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Error logs not being written

    The folder is 755 and I also tried 777. The folder has the same ownership as all other folders.

    enable_error_logging.php is present in both the admin and catalog folders.

    Here's an example:
    http://wheatonwebsiteservices dot net/zen155/graphics-cards-c-1_4/matrox-g400-32mb-p-2

    Shouldn't this error be logged?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: Error logs not being written

    Yes, I would expect it to be logged.

    Maybe something about the server's configuration is denying application-level overrides to php directives.
    .

    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. #6
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Error logs not being written

    While the PHP directives may not be needed for error logging, removing them solved the problem. I'm getting my error logs again.

    It could be a server config that needs some in some way.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,965
    Plugin Contributions
    96

    Default Re: Error logs not being written

    Quote Originally Posted by jeking View Post
    I checked with the host. They did recently disable PHP functions:
    show_source, system, shell_exec, passthru, exec, popen, proc_open, ini_set

    Are any of these require for log files to be written?
    Er, without the benefit of ini_set the majority of the functionality provided by /includes/extra_configures/enable_error_logging.php is moot.

  8. #8
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Error logs not being written

    Quote Originally Posted by lat9 View Post
    Er, without the benefit of ini_set the majority of the functionality provided by /includes/extra_configures/enable_error_logging.php is moot.
    Thanks for pointing that out. When this was done, I did notice a plugin (CSS JS Loader by Numinix) stopped working. It had a call to ini_set. Commenting out that line resolved the issue and got it working again.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: Error logs not being written

    Argh. I missed that in the earlier post.
    Yes, disabling ini_set would be a problem.
    .

    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.

  10. #10
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,965
    Plugin Contributions
    96

    Default Re: Error logs not being written

    Just for my edification, what webhost is this?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 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
  2. error logs -> file not found /favicon.ico
    By perfect concepts in forum Basic Configuration
    Replies: 2
    Last Post: 14 Apr 2010, 04:49 AM
  3. Paypal Express not working HELP! Error logs
    By Muzz in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 12 Nov 2009, 02:28 AM
  4. Error Logs not showing up when debugging?
    By deeve in forum General Questions
    Replies: 3
    Last Post: 10 Nov 2009, 03:12 PM
  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

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