Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30
  1. #21
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: Fatal Error when purchasing Gift Certificate

    this is a separate problem, and one where an error log would be generated... i do not really deal with GCs; so i am unfamiliar with how they get released.

    have you gone to the gift certificate release queue page (gv_queue.php)? what do you see there? and are there any new log files?
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  2. #22
    Join Date
    Apr 2008
    Posts
    446
    Plugin Contributions
    1

    Default Re: Fatal Error when purchasing Gift Certificate

    Quote Originally Posted by carlwhat View Post
    this is a separate problem, and one where an error log would be generated... i do not really deal with GCs; so i am unfamiliar with how they get released.

    have you gone to the gift certificate release queue page (gv_queue.php)? what do you see there? and are there any new log files?
    Nothing appears on the gv_queue.php page and no log files for either the admin or the catalog.

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

    Default Re: Fatal Error when purchasing Gift Certificate

    Back on the original issue: isn't the issue here that with the product marked as do not collect the shipping address, that when the order is processed that a shipping address is not collected, which means that $shipping_address->EOF is true and then that $this->delivery['format_id'] is not set to 0 but instead is empty and that then when 'delivery_address_format_id' is attempted to be set from an empty value which in turn acts like an empty set of quotes instead of an integer? or is there some other process that has come to generate a 0 valued address_book_id such that $shipping_address actually has/should a record and the integer casting should address the situation? And wasn't there a test against the product/cart being virtual and if so to set some variables to prevent strict notices associated with the operation with that test incorporated into ZC 1.5.7?

    Just seems like that all fits together with the database strictness to cause this issue to be seen.


    BTW, please forgive me if something technical above is inaccurate, I've gotten distracted and can only seem to get to this on a mini screen at the moment which makes it terribly difficult to piece together a larger concept...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #24
    Join Date
    Apr 2008
    Posts
    446
    Plugin Contributions
    1

    Default Re: Fatal Error when purchasing Gift Certificate

    Quote Originally Posted by mvstudio View Post
    Nothing appears on the gv_queue.php page and no log files for either the admin or the catalog.
    I was able to fix the issue of no gift certificate queue button. In the middle of changing settings I must have changed the settings for the gift certificate.
    Queue Purchases and Show Queue in Admin header are now set to true and it finally works with the new patch.
    Not that this solves the actual issue of why is misbehaving to start with, but at least it works for the time being until a more permanent fix is found.

  5. #25
    Join Date
    Apr 2008
    Posts
    446
    Plugin Contributions
    1

    Default Re: Fatal Error when purchasing Gift Certificate

    Quote Originally Posted by mc12345678 View Post
    Back on the original issue: isn't the issue here that with the product marked as do not collect the shipping address, that when the order is processed that a shipping address is not collected, which means that $shipping_address->EOF is true and then that $this->delivery['format_id'] is not set to 0 but instead is empty and that then when 'delivery_address_format_id' is attempted to be set from an empty value which in turn acts like an empty set of quotes instead of an integer? or is there some other process that has come to generate a 0 valued address_book_id such that $shipping_address actually has/should a record and the integer casting should address the situation? And wasn't there a test against the product/cart being virtual and if so to set some variables to prevent strict notices associated with the operation with that test incorporated into ZC 1.5.7?

    Just seems like that all fits together with the database strictness to cause this issue to be seen.


    BTW, please forgive me if something technical above is inaccurate, I've gotten distracted and can only seem to get to this on a mini screen at the moment which makes it terribly difficult to piece together a larger concept...
    It seems that's the actual issue. The strictness of mysql which I have not even the most remote idea why is there, is the root of the problem.

    The patch that Cindy provided didn't work, but the version of the patch that carlwhat provided did work in the end at least for now. I'm hoping my hosting provider won't complain about it! =D

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

    Default Re: Fatal Error when purchasing Gift Certificate

    Quote Originally Posted by mvstudio View Post
    It seems that's the actual issue. The strictness of mysql which I have not even the most remote idea why is there, is the root of the problem.

    The patch that Cindy provided didn't work, but the version of the patch that carlwhat provided did work in the end at least for now. I'm hoping my hosting provider won't complain about it! =D
    Suggest following the "rabbit trail" at the following github issue which led to a code change incorporated into ZC 1.5.7 that is compatible with ZC 1.5.6:
    https://github.com/zencart/zencart/issues/2426
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #27
    Join Date
    Apr 2008
    Posts
    446
    Plugin Contributions
    1

    Default Re: Fatal Error when purchasing Gift Certificate

    Quote Originally Posted by mc12345678 View Post
    Suggest following the "rabbit trail" at the following github issue which led to a code change incorporated into ZC 1.5.7 that is compatible with ZC 1.5.6:
    https://github.com/zencart/zencart/issues/2426
    That's exactly the log files I've been getting. Thank you looking into it!!! This gives me reassurance it wasn't something I caused.
    Before I manage to screw things up, would this be the change required? https://github.com/zencart/zencart/p...886837a3572ad9

  8. #28
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Fatal Error when purchasing Gift Certificate

    Quote Originally Posted by mvstudio View Post
    That's exactly the log files I've been getting. Thank you looking into it!!! This gives me reassurance it wasn't something I caused.
    Before I manage to screw things up, would this be the change required? https://github.com/zencart/zencart/p...886837a3572ad9
    Yes it would. Then after applying that, you could remove the "patch" applied earlier in this thread (at least for that issue). There may be other things in the code that would "benefit" from not operating in strict mode, but being in strict mode offers tighter control in an effort of maintaining security.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #29
    Join Date
    Apr 2008
    Posts
    446
    Plugin Contributions
    1

    Default Re: Fatal Error when purchasing Gift Certificate

    Quote Originally Posted by mc12345678 View Post
    Yes it would. Then after applying that, you could remove the "patch" applied earlier in this thread (at least for that issue). There may be other things in the code that would "benefit" from not operating in strict mode, but being in strict mode offers tighter control in an effort of maintaining security.
    Brilliant!!
    I tested it and it works perfectly!
    Thank you so, so much!!! Have an awesome day!

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

    Default Re: Fatal Error when purchasing Gift Certificate

    Quote Originally Posted by mvstudio View Post
    Brilliant!!
    I tested it and it works perfectly!
    Thank you so, so much!!! Have an awesome day!
    Welcome. As noted in the link and change, lat9 identified and suggested a correction for it.

    I tested the operation yesterday (without the modification) with strict php but not strict database access and was able to "successfully" process the transaction, but had myDebug related files because of the strict php.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. v154 Checkout page doesn't load when purchasing a gift certificate
    By tk42one in forum General Questions
    Replies: 13
    Last Post: 2 May 2016, 11:20 PM
  2. Gift Certificates causing fatal error when applying a coupon to them
    By jrstaatsiii in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 29 Jul 2009, 07:39 PM
  3. PayPal transactions fails when purchasing Gift Certificates only
    By shocker in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 17 Jan 2009, 02:28 PM
  4. Gift Certificate configuration has left 'fatal error'
    By Mrsjprice in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 14 Oct 2008, 05:46 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