Title: Can&#8217;t enable CSS/JavaScript minification
Last modified: April 9, 2022

---

# Can’t enable CSS/JavaScript minification

 *  Resolved [Leandro](https://wordpress.org/support/users/leandroprz/)
 * (@leandroprz)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/cant-enable-css-javascript-minification/)
 * After the last two plugin updates I noticed my website was slower and after checking
   your plugin settings I noticed CSS and JavaScript minification were disabled.
 * When loading `wp-admin/admin.php?page=sgo_frontend` I get this error:
 *     ```
       Error
       <p>Ha habido un error crítico en esta web.</p><p><a href="https://wordpress.org/support/article/faq-troubleshooting/">Aprende más sobre el diagnóstico de WordPress.</a></p>
       ```
   
 * When trying to enable CSS or JavaScript minification I get this error:
 *     ```
       Error
       No se puede activar Minimización CSS
       ```
   
 * I checked my debug.log file and these are the contents:
 *     ```
       [09-Apr-2022 17:44:35 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_cart_contents_total() on null in /home/********/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php:1127
       Stack trace:
       #0 /home/********/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(378): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->is_cart_price_total_zero()
       #1 /home/********/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(195): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_button_wrapper_registrar()
       #2 /home/********/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/ButtonModule.php(56): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_wrapper()
       #3 /home/********/public_html/wp-includes/class-wp-hook.php(307): WooCommerce\PayPalCommerce\Button\ButtonModule::WooCommerce\PayPalCommerce\Button\{closure}(Object(WP))
       #4 /home/******** in /home/********/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php on line 1127
       [09-Apr-2022 17:46:10 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_cart_contents_total() on null in /home/********/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php:1127
       Stack trace:
       #0 /home/********/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(378): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->is_cart_price_total_zero()
       #1 /home/********/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(195): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_button_wrapper_registrar()
       #2 /home/********/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/ButtonModule.php(56): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_wrapper()
       #3 /home/********/public_html/wp-includes/class-wp-hook.php(307): WooCommerce\PayPalCommerce\Button\ButtonModule::WooCommerce\PayPalCommerce\Button\{closure}(Object(WP))
       #4 /home/******** in /home/********/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php on line 1127
       ```
   
 * Maybe `woocommerce-paypal-payments` is conflicting with the plugin?
    -  This topic was modified 4 years, 1 month ago by [Leandro](https://wordpress.org/support/users/leandroprz/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcant-enable-css-javascript-minification%2Fpage%2F2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/cant-enable-css-javascript-minification/?output_format=md)
[1](https://wordpress.org/support/topic/cant-enable-css-javascript-minification/?output_format=md)
2

 *  [Raquel](https://wordpress.org/support/users/keuls/)
 * (@keuls)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/cant-enable-css-javascript-minification/page/2/#post-15552497)
 * Hi [@plamenm](https://wordpress.org/support/users/plamenm/), I see [@leandroprz](https://wordpress.org/support/users/leandroprz/)
   has already reported the issue to the Paypal plugin and they have suggested to
   either downgrade or test a fix package. I will do this.
 *  Plugin Support [Plamen M](https://wordpress.org/support/users/plamenm/)
 * (@plamenm)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/cant-enable-css-javascript-minification/page/2/#post-15552668)
 * I meant that I will inform the developers of our plugin, [@keuls](https://wordpress.org/support/users/keuls/)
   🙂 I already did.
 * Thank you for the update, though.
 * Happy hosting!
 * Plamen.M
    Tech Support Team SiteGround.com

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/cant-enable-css-javascript-minification/?output_format=md)
[1](https://wordpress.org/support/topic/cant-enable-css-javascript-minification/?output_format=md)
2

The topic ‘Can’t enable CSS/JavaScript minification’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

## Tags

 * [minification](https://wordpress.org/support/topic-tag/minification/)
 * [plugin conflict](https://wordpress.org/support/topic-tag/plugin-conflict/)

 * 17 replies
 * 7 participants
 * Last reply from: [Plamen M](https://wordpress.org/support/users/plamenm/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/cant-enable-css-javascript-minification/page/2/#post-15552668)
 * Status: resolved