Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Call to undefined method ot_coupon::collect_posts()

    156a vanilla install w/demo data
    drop demo data
    import db from live backup
    rerun zcinstall
    install zca_bootstrap
    change template back to classic responsive.
    restore original includes/classes/order_total.php that zca_bootstrap overwrote

    Setup payment modules
    AIM setup but disabled
    SIM setup enabled
    Square setup enabled
    PayPal setup enabled

    setup USPS shipping: remove/reinstall & enable
    setup FEDEX shipping: remove/install & disable

    add item to cart
    click checkout
    white screen

    myDEBUG
    Code:
    [09-Jan-2019 10:33:25 America/Los_Angeles] PHP Fatal error:  Uncaught Error: Call to undefined method ot_coupon::collect_posts() in /home/cPanelID/public_html/156/includes/classes/order_total.php:162
    Stack trace:
    #0 /home/cPanelID/public_html/156/includes/modules/pages/checkout_payment/header_php.php(100): order_total->collect_posts()
    #1 /home/cPanelID/public_html/156/index.php(36): require('/home/cPanelID/...')
    #2 {main}
      thrown in /home/cPanelID/public_html/156/includes/classes/order_total.php on line 162
    
    [09-Jan-2019 10:33:25 America/Los_Angeles] Request URI: /156/index.php?main_page=checkout_payment, IP address: 98.146.xxx.yyy
    --> PHP Fatal error: Uncaught Error: Call to undefined method ot_coupon::collect_posts() in /home/cPanelID/public_html/156/includes/classes/order_total.php:162
    Stack trace:
    #0 /home/cPanelID/public_html/156/includes/modules/pages/checkout_payment/header_php.php(100): order_total->collect_posts()
    #1 /home/cPanelID/public_html/156/index.php(36): require('/home/cPanelID/...')
    #2 {main}
      thrown in /home/cPanelID/public_html/156/includes/classes/order_total.php on line 162.
    there are other DEBUG-adm but I think they're all related to email not being setup

    Add'l info but probably not related
    FREE SHIPPING is a selectable option even though the order total is greater than $0
    FREE SHIPPING was removed and reinstalled
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,697
    Plugin Contributions
    123

    Default Re: Call to undefined method ot_coupon::collect_posts()

    Please check your copy of
    includes/modules/order_total/ot_coupon.php
    The function collect_posts() should be there at line 157.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Call to undefined method ot_coupon::collect_posts()

    Rick,

    if using the Bootstrap template a github issue was created and fix provided

    https://github.com/zcadditions/ZCA-B...93b0d711b06751
    Website - Github. Like the ZCA Bootstrap 4 Template? Donations Welcome. Bootstrap Plugins?

  4. #4
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Call to undefined method ot_coupon::collect_posts()

    Quote Originally Posted by rbarbour View Post
    Rick,

    if using the Bootstrap template a github issue was created and fix provided

    https://github.com/zcadditions/ZCA-B...93b0d711b06751
    TNX

    I'll just wipe the entire installation and start over again and make that edit. That's the only way that I can ensure that things are as they should. I should say, AFTER I prove that I can complete an order with a vanilla install. This redoing all the setups is getting old quickly. I think I have finally learned to leave the colors and other small stuff as-is, instead of assuming there would not be any issues with shipping and/or payment functions.

    156a is surely not playing nice like any other upgrade that I've performed. It is getting old after a few weeks and not even completed a test order.

    Now, with classic_responsive template enabled, I am getting yellow warnings about OT things were disabled in 154, that are not even installed in 156a and have no intention of installing. AND if it was installed, it would be disabled.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

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

    Default Re: Call to undefined method ot_coupon::collect_posts()

    Quote Originally Posted by RixStix View Post
    Now, with classic_responsive template enabled, I am getting yellow warnings about OT things were disabled in 154, that are not even installed in 156a and have no intention of installing. AND if it was installed, it would be disabled.
    Sorry you're having trouble. I'm not seeing any messages that look like that; granted, I don't have your customizations or your database. What are they? (If they're not related to this same error discussed here, let's put them in another thread)
    .

    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.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 7 Jan 2019, 09:00 PM
  2. v154 Call to undefined method currencies::get_decimal_places() in paypalwpp.php line 1055
    By Kenton in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 12 Apr 2016, 07:04 AM
  3. v153 Install ZC 1.5.3 - Call to undefined method queryFactory
    By Joaonv in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 18 Jul 2014, 09:26 PM
  4. Call to undefined method authorizenet_aim::tableCheckup()
    By Appa306 in forum General Questions
    Replies: 2
    Last Post: 15 Jul 2011, 01:45 AM
  5. Replies: 3
    Last Post: 18 Apr 2007, 03:06 AM

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