Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Nov 2013
    Location
    Dorset, UK
    Posts
    124
    Plugin Contributions
    0

    Default Any suggestions for Error Log.

    Hi everyone,

    Strange problem started today. No changes but have at least 50 error logs all the same as below.

    I haven't changed anything!! No logs for any other day, all was clear. The first thing that was noticed was an order received with no name, address, email or contact number. Luckily the customer paid with PayPal and they had all the order details for me. Strangely though I have received about 8 PayPal orders tonight and only 1 has this problem. Every order tonight regardless of payment method generated this error. This has become an urgent issue for me...........

    I have replaced /home/mysite/public_html/myadmin/includes/classes/object_info.php with a copy from my old backups but still the logs keep being generated.

    Any suggestions helpful.

    Error log:
    [29-Sep-2015 21:56:40 Europe/London] PHP Warning: reset() expects parameter 1 to be array, null given in /home/mysite/public_html/myadmin/includes/classes/object_info.php on line 29
    [29-Sep-2015 21:56:40 Europe/London] PHP Warning: Variable passed to each() is not an array or object in /home/mysite/public_html/myadmin/includes/classes/object_info.php on line 30

  2. #2
    Join Date
    Nov 2013
    Location
    Dorset, UK
    Posts
    124
    Plugin Contributions
    0

    Default Re: Any suggestions for Error Log.

    FYI

    contents of /home/mysite/public_html/myadmin/includes/classes/object_info.php

    PHP Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |   
    // | http://www.zen-cart.com/index.php                                    |   
    // |                                                                      |   
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    //  $Id: object_info.php 1969 2005-09-13 06:57:21Z drbyte $
    //

      
    class objectInfo {

    // class constructor
        
    function objectInfo($object_array) {
    //this line should be added, but should be tested first:
    //      if (!is_array($object_array)) return;
          
    reset($object_array);
          while (list(
    $key$value) = each($object_array)) {
            
    $this->$key zen_db_prepare_input($value);
          }
        }
      }
    ?>

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Any suggestions for Error Log.

    Quicker answers can be provided with the necessary information provided (posting tips info really is a great start):


    Php version?
    ZEN CART version (this really should be a starter for almost any post and is one reason why it is provided as a dropdown option when starting a thread.)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Any suggestions for Error Log.

    Guessing ZC 1.3.x and PHP 5.4 or above?

    Regardless, would suggest installing lat9's mydebug backtrace which may provide more information about the origin of the error if a php zc discrepancy doesn't exist.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Nov 2013
    Location
    Dorset, UK
    Posts
    124
    Plugin Contributions
    0

    Default Re: Any suggestions for Error Log.

    Quote Originally Posted by mc12345678 View Post
    Guessing ZC 1.3.x and PHP 5.4 or above?

    Regardless, would suggest installing lat9's mydebug backtrace which may provide more information about the origin of the error if a php zc discrepancy doesn't exist.
    Yeah sorry forgot the basics.......

    Zen Cart 1.54 and PHP 5.4

    Gone to look at "lat9's mydebug backtrace" now.
    Last edited by SpaceMonkey; 29 Sep 2015 at 11:14 PM. Reason: bad grammer

  6. #6
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Any suggestions for Error Log.

    What paypal method is being used?

    Any access logs that correspond with the date/time of the debug logs?

    Log indicates a warning, not an error, but the issue could case downstream processing to not work as expected/necessary. May want to enable paypal error logging. (Is paypal the only payment method available? I assume not because of the statement that it was good that they used paypal.)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Nov 2013
    Location
    Dorset, UK
    Posts
    124
    Plugin Contributions
    0

    Default Re: Any suggestions for Error Log.

    Quote Originally Posted by mc12345678 View Post
    Php version?
    ZEN CART version (this really should be a starter for almost any post and is one reason why it is provided as a dropdown option when starting a thread.)
    Just looked at this and started a new Thread (testing). No drop downs for zen version or php versions in ie11! Your comment stumped me a little so checked, I do remember this being there but no longer present!!

    Any how just thought would say.

  8. #8
    Join Date
    Nov 2013
    Location
    Dorset, UK
    Posts
    124
    Plugin Contributions
    0

    Default Re: Any suggestions for Error Log.

    Quote Originally Posted by mc12345678 View Post
    What paypal method is being used?

    Any access logs that correspond with the date/time of the debug logs?

    Log indicates a warning, not an error, but the issue could case downstream processing to not work as expected/necessary. May want to enable paypal error logging. (Is paypal the only payment method available? I assume not because of the statement that it was good that they used paypal.)
    PayPal API

    I have turned PayPal logging on but closed store for the night now so no more orders until 17:00hrs GMT tomorrow (Chinese takeaway store). We have Cash, Cards (authorize.net) & PayPal. All methods of payment are generating these error logs.

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

    Default Re: Any suggestions for Error Log.

    Quote Originally Posted by SpaceMonkey View Post
    Just looked at this and started a new Thread (testing). No drop downs for zen version or php versions in ie11! Your comment stumped me a little so checked, I do remember this being there but no longer present!!

    Any how just thought would say.
    That's interesting. Should definitely be made as a comment about the forum in the forum. :) (seems an ironic statement), anyways good to know that when (if?) I upgrade to a windows version that has IE 11 then it is likely to not work correctly... Hmm, wonder what causes it not to work, because it could have a serious negative impact on things like attributes. Oh, and what forum template are you using? (Lower left or right corner depending on which one of the two desktop templates.)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Any suggestions for Error Log.

    Quote Originally Posted by SpaceMonkey View Post
    PayPal API

    I have turned PayPal logging on but closed store for the night now so no more orders until 17:00hrs GMT tomorrow (Chinese takeaway store). We have Cash, Cards (authorize.net) & PayPal. All methods of payment are generating these error logs.
    So, could still independently continue testing even with the store closed primarily depending on how that was accomplished, as to choice of using paypal ipn, any reason not using paypal express?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 body styles are not applying to any text in define pages, any suggestions??
    By tlyczko in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Feb 2013, 02:25 PM
  2. Taking payments for holiday lets?? Any suggestions.
    By ormcd in forum General Questions
    Replies: 2
    Last Post: 18 Feb 2011, 10:12 AM

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