Home
Automatically add product to cart
1.4
Does "Automatically add product to cart" work with WordPress 6.6.1 and PHP 8.1.12? A smoke test was performed on 2024-08-01 11:25:08 UTC .
Summary
Errors
1 PHP fatal errors
No JavaScript exceptions
1 Page failed to load1 500 Internal Server Error
No resource errors
Environment
WordPress version 6.6.1 PHP version 8.1.12 MySQL version 10.6.10 PHP memory limit 512M
Pages 1 WordPress › Error
URL
/wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=
Requested URL
/wp-admin/plugins.php?action=activate&plugin=automatically-add-product-to-cart%2Fautomatically-add-product-to-cart.php&plugin_status=all&paged=1&s&_wpnonce=5d30970e57
Aspect
after-activation
HTTP status
500
Load time
0.116 s
Memory usage
N/A
JS errors
None
Resource errors
None
Benchmark No benchmark data available.
Code Statistics
Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where
possible, so the numbers you see here may be lower than those reported by other tools.
Language
%
Lines of code
Comment lines
Files
PHP 100.0% 152 45 4
Total
152
45
4
Lines of code
140
Total complexity
31
Median class complexity
15.5
Median method complexity
1.0
Most complex class
WC_Cmetric_Aptc
Most complex function
WP_Class_Cmetric_Aptc_Settings::cmetric_aptc_add_product_to_cart()
Classes
2
Methods
14
Functions
0
Additions
No data available.
PHP Error Log 12 lines [01-Aug-2024 11:25:25 UTC] PHP Fatal error: Uncaught Error: Call to undefined function deactivate_plugins() in /wp-content/plugins/automatically-add-product-to-cart/class-woocommerce-automatically-add-product-to-cart.php:83
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): WC_Cmetric_Aptc->WC_load_cmetric_aptc()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-settings.php(555): do_action()
#4 /wp-config.php(191): require_once('...')
#5 /wp-load.php(50): require_once('...')
#6 /wp-admin/admin.php(34): require_once('...')
#7 /wp-admin/plugins.php(10): require_once('...')
#8 {main}
thrown in /wp-content/plugins/automatically-add-product-to-cart/class-woocommerce-automatically-add-product-to-cart.php on line 83