Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,557
    Plugin Contributions
    28

    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,557
    Plugin Contributions
    28

    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
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Error logs not being written

    Quote Originally Posted by jeking View Post
    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.
    Writeable? What permissions specifically?

    No changes to configure.php files? So, what regarding DIR_FS_LOGS is present if anything?

    What makes you think an error is occurring? Any indication that the error is generated before/after zc error logging has been initiated?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    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.

  5. #5
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,557
    Plugin Contributions
    28

    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?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    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.

  7. #7
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,557
    Plugin Contributions
    28

    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.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Error logs not being written

    Thanks for reporting back. Do you mind explaining in more detail what you removed?
    .

    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.

  9. #9
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,557
    Plugin Contributions
    28

    Default Re: Error logs not being written

    Sure thing.

    CSF (ConfigServer Security & Firewall) had a recommendation. To:
    You should modify the PHP configuration and disable commonly abused php functions, e.g.:
    disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
    Some client web scripts may break with some of these functions disabled, so you may have to remove them from this list

    I wanted to keep phpinfo but added the rest to the server php.ini file. After your comment about the server config, I removed all the php functions from the disable_functions line, simply to test the theory. Doing so is what got the error logs to record again.

    I don't know which function(s) were really at fault. I didn't bother testing them one by one.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Error logs not being written

    Edit: previous statement retracted. I was wrong.

    See lat9's post below.
    Last edited by DrByte; 25 Mar 2016 at 08:30 PM. Reason: edited
    .

    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.

 

 
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

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