WordPress.org

Ready to get started?Download WordPress

Forums

Cart66 Lite :: WordPress Ecommerce
add to cart button error (34 posts)

  1. robert3harrison
    Member
    Posted 1 year ago #

    After upgrading to 1.5.1.1 I now get the following error when I click my add to cart button:

    Warning: Missing argument 8 for Cart66Cart::addItem(), called in wp-content/plugins/cart66-lite/models/Cart66Cart.php on line 76 and defined in wp-content/plugins/cart66-lite/models/Cart66Cart.php on line 107

    Was fine with 1.5.1 version

    http://wordpress.org/extend/plugins/cart66-lite/

  2. xtra
    Member
    Posted 1 year ago #

    Same problem here, once you click "add to cart" and you get taken to the cart page I get the same error message since upgrading to Cart66 Lite 1.5.1.1

    Running WordPress 3.4.2, what version are you on robert3harrison?

    Warning: Missing argument 8 for Cart66Cart::addItem(), called in /home/happy/public_html/wp-content/plugins/cart66-lite/models/Cart66Cart.php on line 76 and defined in /home/happy/public_html/wp-content/plugins/cart66-lite/models/Cart66Cart.php on line 107

  3. hiboy
    Member
    Posted 1 year ago #

    urgently need help , same problem here , i just update the cart66lite 1.5.1.1 , and this error when i press add to cart ,
    Warning: Missing argument 8 for Cart66Cart::addItem(), called in /home/public_html/wp-content/plugins/cart66-lite/models/Cart66Cart.php on line 76 and defined in /home/public_html/wp-content/plugins/cart66-lite/models/Cart66Cart.php on line 107

    my wordpress was update to the latest version 3.5

  4. hiboy
    Member
    Posted 1 year ago #

    I dont know if you guys are facing this problem too, tested this plugin in all browser, in firefox browser shopping cart , the layout is mess up, meaning the coupon and price total are align to the left.

    In ie 9, the error broke the whole site, meaning your theme menu ,everything all is mess up

  5. xtra
    Member
    Posted 1 year ago #

    The only problem since updating is the one mentioned above.

    You may need to look at your CSS, remember any changes to the CSS file needs to be done outside the plugin folder otherwise when you update the CSS changes you may have made will be over writtern by the new updated.

    Regarding a quick fix, unless a rep from Cart66 provides a solution here we will need to wait for an update since the error is coming from within the Cart66 plugin folder.

  6. hiboy
    Member
    Posted 1 year ago #

    hi bjarni, i did not touch any css file, before updating the site or cart66lite ,the layout and everything was fine, i guess the plugin broke the site layout?

  7. xtra
    Member
    Posted 1 year ago #

    Uninstall the plugin and see if your site is ok then?

  8. hiboy
    Member
    Posted 1 year ago #

    hi bjarni,

    Sorry, i guess i did not make myself clear, what i meant was, when this plugin was activated and updated,the homepage and everything was fine , except the "add to cart" button error and it broke the cart page layout in firefox and ie9 browser, so the issue lies with the plugin itself

    I correct myself
    in firefox browser shopping cart page layout is mess up, meaning the coupon and price total amount are align to the left. The "price total :" word is missing

    In ie 9, the error broke the "shopping cart page", meaning your theme menu ,everything all is mess up

  9. robert3harrison
    Member
    Posted 1 year ago #

    I'm on WordPress 3.5, the update to 1.5.1.1 from 1.5.1 definetly caused the error. Everything on my site worked fine with no other changes until I updated cart66. They need to address this error and fast.

  10. ZedGee
    Member
    Posted 1 year ago #

    wp-content/plugins/cart66/models/Cart66Cart.php on line 107

    Argument 8 of line 107 in Cart66Cart.php is:

    $optionResult
    change that to:

    $optionResult=''

    That fixes the error.

  11. hiboy
    Member
    Posted 1 year ago #

    Thanks ZedGee,

    Do you all know how to remove cart 66 meta generator?
    <meta name="generator" content="Cart66 Lite 1.5.1.1" />

  12. Sam De Francesco
    Member
    Posted 1 year ago #

    You could try calling Cart66Common::removeCart66Meta() from one of your init scripts.

  13. hiboy
    Member
    Posted 1 year ago #

    hi sdefranc, sorry i may seem abit novice to coding, hmm ,how do i achieve it?
    "calling Cart66Common::removeCart66Meta() from one of your init scripts. "

  14. Sam De Francesco
    Member
    Posted 1 year ago #

    No problem, perhaps add something like:

    function remove_cart66_meta() {
        Cart66Common::removeCart66Meta();
    }
    add_action('init', 'remove_cart66_meta');

    to your theme's function.php file.

  15. hiboy
    Member
    Posted 1 year ago #

    Thank you so much, sdefranc

  16. Liverpool4evr
    Member
    Posted 1 year ago #

    Hi,

    Everything was working great until I just did the 1.5.1.1 update.

    I receive the following error when the cart screen comes up:
    Warning: Missing argument 8 for Cart66Cart::addItem(), called in /home/content/60/10073160/html/wp-content/plugins/cart66-lite/models/Cart66Cart.php on line 76 and defined in /home/content/60/10073160/html/wp-content/plugins/cart66-lite/models/Cart66Cart.php on line 107

  17. reality66
    Member
    Plugin Author

    Posted 1 year ago #

    We're looking into this problem now and will release an update to fix it right away. It seems the error only occurs when debug mode is turned on. We'll have a fix deployed no later than Monday.

  18. robert3harrison
    Member
    Posted 1 year ago #

    Not sure what you mean by "It seems the error only occurs when debug mode is turned on.", but I've never done anything to turn on debugging on my site that I'm aware of, but I'm getting the error.

  19. xtra
    Member
    Posted 1 year ago #

    Letting you know that the response that @ZedGee (thanks) gave fixes the issue:

    Argument 8 of line 107 in Cart66Cart.php is:

    $optionResult

    change that to:

    $optionResult=''

  20. robert3harrison
    Member
    Posted 1 year ago #

    Yes, I've tried that also and it appears to fix the error...just want the "plugin author" to verify that that is the correct fix instead of a temporary fix.

    I only know enough php to be dangerous. Don't want to create an unknown issue only to be found later down the line.

  21. reality66
    Member
    Plugin Author

    Posted 1 year ago #

    We just released an update that should resolve this problem (version 1.5.1.2)

  22. robert3harrison
    Member
    Posted 1 year ago #

    Can you tell us if it is just the change noted above?

  23. reality66
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, adding the quotes to $optionResult='' was one of the three updates in this new release. We also updated the cart widget to show the non-discounted subtotal and fixed an issue with ajax add to cart in the cart66-library.js file.

  24. robert3harrison
    Member
    Posted 1 year ago #

    Great, thanks.

  25. hiboy
    Member
    Posted 1 year ago #

    Hi guys ,after updating the plugin to latest version, i was faced with a white screen on both front and back end with an error
    " Fatal error: Class 'Cart66Common' not found in /home/public_html/wp-content/themes/eleven/functions.php on line 494"

    on my line 494 was
    function remove_cart66_meta() {
    Cart66Common::removeCart66Meta();
    }
    add_action('init', 'remove_cart66_meta');

    any solution?

  26. reality66
    Member
    Plugin Author

    Posted 1 year ago #

    Are you using the Storemerce theme? There seems to be some sort of a problem with that theme.

  27. hiboy
    Member
    Posted 1 year ago #

    To the plugin author
    another thing i aware, not sure if it was a bug, when people add to cart, the reach the shopping cart page, when they check out at the shopping cart page, they reach the check out page and the check out page wrote "Your Cart Is Empty" and a continue shopping button.

    It seem like something like it couldnt hook the shopping cart checkout sometime

  28. hiboy
    Member
    Posted 1 year ago #

    Hi , reality66, i switch to the default wordpress twenty eleven theme, by right i am using "bounce" wordpress theme

    I added the following code to my function.php

    function remove_cart66_meta() {
    Cart66Common::removeCart66Meta();
    }
    add_action('init', 'remove_cart66_meta');

    This code was provided by @sdefranc as above to remove the cart66lite meta generator . seem like "Cart66Common" class causing the error , did u all change something during the update?

  29. Sam De Francesco
    Member
    Posted 1 year ago #

    Perhaps the action is being called before the Cart66Common class is being defined. You might want to experiment with different priority levels as a third option to the "add_action()" function to make sure that it gets called after the cart66 classes.

  30. hiboy
    Member
    Posted 1 year ago #

    hi sdefranc, sorry, any idea how do i modify the code?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic