Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 10422 error code in logs, customer sees blank page instead

    Quote Originally Posted by mc12345678 View Post
    What if anything is in your includes/configure.php file related to DIR_FS_LOGS?
    It's probably fine, since the paypal logs are logging okay there.

    The issue with PHP error logging seems to be something about the server configuration.
    .

    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.

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

    Default Re: 10422 error code in logs, customer sees blank page instead

    One distinction between those PayPal logs and the myDEBUG logs is that the PayPal logs are written directly (via fopen/fwrite/fclose) as opposed to the myDEBUG logs which are written as controlled by various ini_set settings.

    If @HeathenMagic's host has disabled ini_set usage (as seen in a couple of other postings over the past year), that would explain why the PayPal logs are there and the debug-logs aren't.

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

    Default Re: 10422 error code in logs, customer sees blank page instead

    Quote Originally Posted by lat9 View Post
    One distinction between those PayPal logs and the myDEBUG logs is that the PayPal logs are written directly (via fopen/fwrite/fclose) as opposed to the myDEBUG logs which are written as controlled by various ini_set settings.

    If @HeathenMagic's host has disabled ini_set usage (as seen in a couple of other postings over the past year), that would explain why the PayPal logs are there and the debug-logs aren't.
    True. One way to see what "disabled functions" have been set is to look in Admin->Tools->Server Info, in the top 3rd of the screen.
    .

    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. #14
    Join Date
    May 2005
    Location
    England
    Posts
    626
    Plugin Contributions
    0

    Default Re: 10422 error code in logs, customer sees blank page instead

    Thanks for your reply. I have the following in that file:-

    // define('DIR_FS_SQL_CACHE' ...
    // define('DIR_FS_DOWNLOAD' ...
    // define('DIR_FS_LOGS' ...
    I left untouched as didn't want to break anything lol.

  5. #15
    Join Date
    May 2005
    Location
    England
    Posts
    626
    Plugin Contributions
    0

    Default Re: 10422 error code in logs, customer sees blank page instead

    Quote Originally Posted by lat9 View Post
    One distinction between those PayPal logs and the myDEBUG logs is that the PayPal logs are written directly (via fopen/fwrite/fclose) as opposed to the myDEBUG logs which are written as controlled by various ini_set settings.

    If @HeathenMagic's host has disabled ini_set usage (as seen in a couple of other postings over the past year), that would explain why the PayPal logs are there and the debug-logs aren't.
    Hosts got back to me with this:-
    I have checked the PHP configuration globally and verified that there are no disable functions, also set 'display_startup_errors = On'.
    Please check if that helps in your case. If you have any specific settings to be verified from server side, let us know.

    root@server [/opt/cpanel/ea-php70/root/etc]# grep disable_functions ./php.d/local.ini
    disable_functions =
    root@server [/opt/cpanel/ea-php70/root/etc]# grep disable_functions php.ini
    disable_functions =
    root@server [/opt/cpanel/ea-php70/root/etc]#
    logs still show paypal so my search continues.........

  6. #16
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: 10422 error code in logs, customer sees blank page instead

    Quote Originally Posted by HeathenMagic View Post
    Thanks for your reply. I have the following in that file:-



    I left untouched as didn't want to break anything lol.
    If "that file" really has those defines commented out, then that's your issue! Remove the leading // on each of those definitions; they're "expected" to be set.

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

    Default Re: 10422 error code in logs, customer sees blank page instead

    Quote Originally Posted by lat9 View Post
    If "that file" really has those defines commented out, then that's your issue! Remove the leading // on each of those definitions; they're "expected" to be set.
    Not in a zc 1.5.5 configure file. those are the last lines of the file and are commented out by default, as these defines are now set in the file defined_paths.php.

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

    Default Re: 10422 error code in logs, customer sees blank page instead

    Thanks, @Design75, I need to keep up!

  9. #19
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: 10422 error code in logs, customer sees blank page instead

    Actually the next thing that would be checked if the previous PayPal log error was not found in the logs directory (don't think the specific location of where the file was found was identified), would be the includes/defined_paths.php file for the define of the DIR_FS_LOGS constant to be present and as "built" to give the directory that 1) exists, and 2) is writeable.

    Otherwise, fallback to DrByte's previous statement that if the PayPal error log were found in the logs directory, the DIR_FS_LOGS is already defined (at least when processing via PayPal).

    The fact that it was commented out in the includes/configure.php file is either as design75 pointed out or as applies to how the system was installed/upgraded, but either way it appears that the lack error logs is likely attributable to the permissions of modifying the ini_set characteristics.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: 10422 error code in logs, customer sees blank page instead

    It's tough to diagnose something wrong with the server, especially when they'll rarely investigate "3rd party software".

    So, to figure out why there aren't error logs, we can try to force a known error, and fiddle with the logging mechanism a bit.

    Let's try commenting-out line 76 of /includes/extra_configures/enable_error_logging.php by adding // to the front of the line, like this:
    Code:
      //     set_error_handler('zen_debug_error_handler', $errors_to_log);
    That'll rule out whether some of the extra decoration of error message data may be something the server is denying use of.
    Then go rename the /includes/init_includes folder to init_includes_TMP and try to visit the site. This should give a blank page, and fatal errors in the logs. Then rename it back so your visitors aren't impacted. Then go look at what's in the logs directory.


    Next option might be to write a single-file php script that enables error reporting perhaps at its maximum level (which we don't usually do on a "production" site, for both performance and unsafe disclosure reasons), specifies a log directory, and then triggers an error that should be written. Then see what happens. Isolate the issue completely away from Zen Cart so the hosting company can see how a basic function isn't working, and then they can own the issue until it's fixed.
    Or it may point to something that's been altered inside Zen Cart with plugins or broken php files etc.
    .

    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 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v150 Blank Sidebox Blank Page after adding code for livechat software
    By whatisthat456 in forum Basic Configuration
    Replies: 8
    Last Post: 3 May 2012, 10:40 AM
  2. Blank Page problem logs inside
    By Radx in forum General Questions
    Replies: 2
    Last Post: 8 Dec 2011, 04:45 PM
  3. Replies: 4
    Last Post: 18 Jan 2008, 08:14 PM
  4. Customer Logs in and sees another customers account
    By romanus in forum General Questions
    Replies: 2
    Last Post: 28 Sep 2007, 12:34 PM
  5. Urgent! Customer Sees Someone Elses Order
    By Seamstobesew in forum Managing Customers and Orders
    Replies: 6
    Last Post: 29 Apr 2007, 04:03 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