Title: Fatal Error
Last modified: January 14, 2019

---

# Fatal Error

 *  Resolved [koepi](https://wordpress.org/support/users/koepi/)
 * (@koepi)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-3103/)
 * Hi,
 * since some WC-Updates I have following error output in cart:
    ——————- Fatal error:
   Uncaught ArgumentCountError: Too few arguments to function uni_cpo_woocommerce_cart_item_quantity(),
   2 passed in /var/www/vhosts/webundprint24.de/httpdocs/webundprint24_website_shop/
   wp-includes/class-wp-hook.php on line 286 and exactly 3 expected in /var/www/
   vhosts/webundprint24.de/httpdocs/webundprint24_website_shop/wp-content/plugins/
   uni-woo-custom-product-options-premium/includes/uni-cpo-core-functions.php:963
   Stack trace: #0 /var/www/vhosts/webundprint24.de/httpdocs/webundprint24_website_shop/
   wp-includes/class-wp-hook.php(286): uni_cpo_woocommerce_cart_item_quantity(‘<
   div class=”qua…’, ‘abc99d6b9938aa8…’) #1 /var/www/vhosts/webundprint24.de/httpdocs/
   webundprint24_website_shop/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘
   <div class=”qua…’, Array) #2 /var/www/vhosts/webundprint24.de/httpdocs/webundprint24_website_shop/
   wp-content/themes/wp24/woocommerce/cart/cart.php(121): apply_filters(‘woocommerce_car…’,‘
   <div class=”qua…’, ‘abc99d6b9938aa8…’) #3 /var/www/vhosts/webundprint24.de/httpdoc
   in /var/www/vhosts/webundprint24.de/httpdocs/webundprint24_website_shop/wp-content/
   plugins/uni-woo-custom-product-options-premium/includes/uni-cpo-core-functions.
   php on line 963
 * ——-
 * That error appears even on products in the cart where CPO isn’t active on that
   product. Seems to be a general issue not depending on a special product item.
 * Any idea?
    Thanks in advance Koepi
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-3103%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Contributor [Vitalii Kiiko](https://wordpress.org/support/users/mrpsiho/)
 * (@mrpsiho)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-3103/#post-11085985)
 * Hi,
 * Could you switch to Storefront theme and deactivate all the plugins except WC
   and Uni CPO? Thanks!
 *  Thread Starter [koepi](https://wordpress.org/support/users/koepi/)
 * (@koepi)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-3103/#post-11088222)
 * Thanks for your reply, mr.psiho.
    Unfortunately a strong issue!
 * 1. All plugins deactivated one by one: no success, fatal error in cart (column
   quantity)
    2. Tried standard themes twenty ninteen / twenty twelve: work fine
   3. Disabled CPO using my own theme: quantity in cart okay!
 * CPO-price-calculation on product-page: okay. Only cart-quantity issue with fatal
   error output.
    In former CPO-versions everything was fine. Conclusion: issue 
   has something to do with bad working together of CPO with my theme (theme by 
   themler template designer).
 * Need help, please!
    Thanks. Koepi
 *  Plugin Contributor [Vitalii Kiiko](https://wordpress.org/support/users/mrpsiho/)
 * (@mrpsiho)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-3103/#post-11088621)
 * Hi,
 * The issue must be in the theme. Ask your theme developer/provider for fixing 
   the issue.
 * Thanks!
 *  Thread Starter [koepi](https://wordpress.org/support/users/koepi/)
 * (@koepi)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-3103/#post-11088882)
 * Hi,
    I understand you don’t want to have a closer look to my issue when CPO is
   working proper on standard themes. BUT CPO worked on my themler themes weeks 
   ago also. Theme didn’t change. What happened?? Really no idea?? The issue is 
   within function uni_cpo_woocommerce_cart_item_quantity().
 * How to do a fresh install an activation of Uni CPO?
    Does it make sense to delete
   and recreate all options and products? (What a work. Grrr…)
 * Thanks.
 *  Plugin Author [moomooagency](https://wordpress.org/support/users/moomooagency/)
 * (@moomooagency)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-3103/#post-11089265)
 * The issue might be simply that you don’t update wc templates in your theme.
 * Solution is to update everything: theme, wc, uni cpo. And not just something 
   one or two. Your theme may be abandoned or customly done and doesn’t have updates,
   but it is solely your responsibility to keep it up to date. Things are changing
   in wc, I update uni cpo accordingly.
 *  Thread Starter [koepi](https://wordpress.org/support/users/koepi/)
 * (@koepi)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-3103/#post-11094910)
 * Okay, I’ll see what can I do with my template.
    I installed CPO v4.0.7 again 
   and … everything fine. Please, could you provide each update version up to now
   for testing purpuse? Or where can I find former plugin versions of CPO?
 * Thank you.
    Koepi
 *  Plugin Contributor [Vitalii Kiiko](https://wordpress.org/support/users/mrpsiho/)
 * (@mrpsiho)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-3103/#post-11095459)
 * Hi,
 * Generally, we do not give access to previous versions of pro version of the plugin.
   I also discourage you from using older versions. Older versions are not supported.
   You will be always asked to update to the latest.
 * Different versions of free version of the plugin is available here on wordpress.
   org, if I am not mistaken. You can try them.
 *  Thread Starter [koepi](https://wordpress.org/support/users/koepi/)
 * (@koepi)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-3103/#post-11099582)
 * Find the solution on myself.
    There is a missing argument in my template cart.
   php.
 * File: /wp-content/themes/your-theme/woocommerce/cart/cart.php
 * Wrong: echo apply_filters(‘woocommerce_cart_item_quantity’, $product_quantity,
   $cart_item_key );
    Must be: echo apply_filters(‘woocommerce_cart_item_quantity’,
   $product_quantity, $cart_item_key, **$cart_item** );
 * Tip: Replace original theme file with the updated cart.php with plugin booster.
   There is a modul to do that.
    So your are update-save.
 * Have success.
    Koepi

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Fatal Error’ is closed to new replies.

 * ![](https://ps.w.org/uni-woo-custom-product-options/assets/icon-256x256.jpg?rev
   =1764217)
 * [Product Options and Price Calculation Formulas for WooCommerce – Uni CPO](https://wordpress.org/plugins/uni-woo-custom-product-options/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/uni-woo-custom-product-options/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/uni-woo-custom-product-options/)
 * [Active Topics](https://wordpress.org/support/plugin/uni-woo-custom-product-options/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/uni-woo-custom-product-options/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/uni-woo-custom-product-options/reviews/)

## Tags

 * [cart](https://wordpress.org/support/topic-tag/cart/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [quantity](https://wordpress.org/support/topic-tag/quantity/)

 * 8 replies
 * 3 participants
 * Last reply from: [koepi](https://wordpress.org/support/users/koepi/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-3103/#post-11099582)
 * Status: resolved