Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Admin debug logs - Creating default object from empty value - categories search

    Quote Originally Posted by jsarwar View Post
    same error appearing for includes/modules/shipping_rates_in_cart.php

    Apply same fix and it seems to work but making shopping cart page to load slow now. Any idea how to change it so it does not take long to load?
    The fix to the problem as detailed in this thread will *not* be the cause of slow loading pages.

    There *may* be something coincidental going on that is making you think the fix and slowness are related, but for the life of me I can't imagine what the connection would be.

    Cheers
    RodG

  2. #2
    Join Date
    Jul 2012
    Posts
    347
    Plugin Contributions
    0

    Default Re: Admin debug logs - Creating default object from empty value - categories search

    It is as as soon as I remove this code page load fast. Also I added this code on line 117 then it start giving same error for line 107 and others. So do I add same code on each of these lines?

  3. #3
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Admin debug logs - Creating default object from empty value - categories search

    Quote Originally Posted by jsarwar View Post
    It is as as soon as I remove this code page load fast.
    Hmmm, yes well, <speculation> without the added code the server will effectively 'die' when it reaches that part of the code, or at the very least, not have all it needs to continue the processing, so it would stand to reason that it would return back to the caller function a lot quicker with the error than if it had all it needed and was able to continue its normal processing.

    I'm not saying this *IS* the case or the reason, but it is almost certainly one of the possible things you haven't considered.

    Quote Originally Posted by jsarwar View Post
    Also I added this code on line 117 then it start giving same error for line 107 and others. So do I add same code on each of these lines?
    Sorry, but I can't really answer this with any degree of confidence. I don't have the code in front of me. I do see mention of both of these line numbers in the earlier posts in this thread that would seem to imply that the 'fix' needs to be applied in each instance that has the problem though.

    The fact that it (apparently) started to give the same error on a different line (117) after taking care of the problem in line 107 would tend to support my speculation that the reason the 'fix' is making things slower really is because it is now getting to process more of the code, and this being the case, and going back to your original question of "Any idea how to change it so it does not take long to load?" the answer will be "you can't". It isn't that the fixes are making it slower, it is that the fixes are making it *work* - and work always seems to take a lot more time than not having to work. :-)

    Cheers
    RodG

 

 

Similar Threads

  1. Replies: 12
    Last Post: 31 Jul 2017, 11:57 PM
  2. v139h Warning: Creating default object from empty value in shipping_estimator.php
    By split63 in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 30 Apr 2016, 08:00 PM
  3. Replies: 11
    Last Post: 15 Jan 2015, 05:40 PM
  4. Replies: 10
    Last Post: 6 Sep 2014, 02:55 AM
  5. Replies: 3
    Last Post: 26 Mar 2014, 07:35 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