Critical Error on WordPress Admin Backend
-
When activating Woocommerce, I get a critical error on my websites wp-admin backend. We’ve tried using a default theme, deactivating all other plugins, clearing transients, doing a fresh install of Woocommerece, and rolling back to a previous PHP version but nothing works. The frontend of the website functions fine but the backend gives a critical error on each page.
-
This is the error that I get in the log:
[15-Aug-2023 19:10:04 UTC] PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, string given in /var/web/site/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/CustomerEffortScoreTracks.php:465 PHP Stacktrace: - undefined - undefined - undefined - undefined - undefined - undefined - undefined /var/web/site/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/CustomerEffortScoreTracks.php(465): array_filter('', Object(Closure)) /var/web/site/public_html/wp-includes/class-wp-hook.php(310): Automattic\WooCommerce\Internal\Admin\CustomerEffortScoreTracks->maybe_clear_ces_tracks_queue('') /var/web/site/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) /var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) /var/web/site/public_html/wp-admin/admin.php(175): do_action('admin_init') /var/web/site/public_html/wp-admin/plugins.php(10): require_once('/var/web/site/p...') {main} thrown in /var/web/site/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/CustomerEffortScoreTracks.php on line 465
Hi @glabs ,
Thanks for reaching out!
I understand that you are encountering a critical error on the backend of your site when activating WooCommerce, is this correct?
Was WooCommerce previously active on your site without any issues, or is this the first time WooCommerce is being installed on the site?
If the former, do you recall any changes/updates made to the site or server before this issue surfaced?
To clarify, this occurs when activating WooCommerce while all plugins are deactivated and your theme is switched to a default one, such as Storefront, correct?
If so, can you check if there are any server-side errors and share these with us here?
Also, can you navigate to Tools → Site Health → Info and click
Copy site info to clipboard
, and share the results with us here so that we can take a closer look at your sites current environment.Cheers!
Thanks @beautyofcode for the quick reply. We did not see any server errors and were previously running Woocommerce without a problem. Here’s the information from Site Health below.
` wp-core version: 6.3
site_language: en_US
user_language: en_US
timezone: America/New_York
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 2709
dotorg_communication: true wp-paths-sizes wordpress_path: /var/web/site/public_html
wordpress_size: 378.22 MB (396589054 bytes)
uploads_path: /var/web/site/public_html/wp-content/uploads
uploads_size: 1.20 GB (1292478336 bytes)
themes_path: /var/web/site/public_html/wp-content/themes
themes_size: 76.65 MB (80376158 bytes)
plugins_path: /var/web/site/public_html/wp-content/plugins
plugins_size: 3.78 GB (4056028133 bytes)
database_size: 244.49 MB (256366631 bytes)
total_size: 5.66 GB (6081838312 bytes) wp-dropins (1) object-cache.php: true wp-active-theme name: GLabs (glabs)
version: 3.0.5
author: Guzman Labs
author_website: (undefined)
parent_theme: Divi (Divi)
theme_features: core-block-patterns, block-templates, widgets-block-editor, post-thumbnails, custom-background, automatic-feed-links, menus, title-tag, post-formats, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, customize-selective-refresh-widgets, wp-block-styles, editor-style, widgets
theme_path: /var/web/site/public_html/wp-content/themes/glabs
auto_update: Enabled wp-parent-theme name: Divi (Divi)
version: 4.22.0
author: Elegant Themes
author_website: https://www.elegantthemes.com
theme_path: /var/web/site/public_html/wp-content/themes/Divi
auto_update: Enabled wp-themes-inactive (4) Twenty Twenty: version: 2.2, author: the WordPress team, Auto-updates enabled
Twenty Twenty-One: version: 1.8, author: the WordPress team, Auto-updates enabled
Twenty Twenty-Three: version: 1.2, author: the WordPress team, Auto-updates enabled
Twenty Twenty-Two: version: 1.4, author: the WordPress team, Auto-updates enabled wp-mu-plugins (1) Hosting: author: (undefined), version: 0.1 wp-plugins-active (45) 404 to 301 - Redirect, Log and Notify 404 Errors: version: 3.1.4, author: Joel James, Auto-updates enabled
Activity Log: version: 2.8.7, author: Activity Log Team, Auto-updates enabled
AddToAny Share Buttons: version: 1.8.8, author: AddToAny, Auto-updates enabled
Admin Customizer: version: 2.2.7, author: Nilambar Sharma, Auto-updates enabled
Adminimize: version: 1.11.9, author: Frank Bültge, Auto-updates enabled
Admin Menu Editor: version: 1.11.1, author: Janis Elsts, Auto-updates enabled
Advanced Order Export For WooCommerce: version: 3.4.2, author: AlgolPlus, Auto-updates enabled
Autocomplete WooCommerce Orders: version: 3.1.2, author: QuadLayers, Auto-updates enabled
BuddyPress: version: 11.2.0, author: The BuddyPress Community, Auto-updates enabled
Custom Fonts: version: 2.0.2, author: Brainstorm Force, Auto-updates enabled
Duplicate Page: version: 4.5.2, author: mndpsingh287, Auto-updates enabled
Easy Google Fonts: version: 2.0.4, author: Titanium Themes, Auto-updates enabled
EventON: version: 2.6.17, author: AshanJay, Auto-updates enabled
Extended CRM For Users Insights: version: 1.2.1, author: denizz, Auto-updates enabled
Facebook for WooCommerce: version: 3.0.31, author: Facebook, Auto-updates enabled
Flickr Justified Gallery: version: 3.5, author: Miro Mannino, Auto-updates enabled
GZip Ninja Speed Compression: version: 1.2.3, author: CustomWPNinjas, Auto-updates enabled
Hide Plugins: version: 1.0.4, author: brianmiyaji, Auto-updates enabled
Limit Groups per User: version: 2.0.2, author: BuddyDev, Auto-updates enabled
Loginizer: version: 1.8.1, author: Softaculous, Auto-updates enabled
Mailchimp for WooCommerce: version: 3.1, author: Mailchimp, Auto-updates enabled
My Custom Functions: version: 4.51, author: Space X-Chimp, Auto-updates enabled
PixelYourSite: version: 9.4.2, author: PixelYourSite, Auto-updates enabled
PPOM for WooCommerce: version: 32.0.8, author: Themeisle, Auto-updates enabled
Printful Integration for WooCommerce: version: 2.2.2, author: Printful, Auto-updates enabled
ProfilePress: version: 4.13.0, author: ProfilePress Membership Team, Auto-updates enabled
PublishPress Capabilities: version: 2.9.1, author: PublishPress, Auto-updates enabled
PW WooCommerce Bulk Edit: version: 2.118, author: Pimwick, LLC, Auto-updates enabled
Redirect After Login: version: 0.1.9, author: marcelotorres, Auto-updates enabled
Redirection: version: 5.3.10, author: John Godley, Auto-updates enabled
Rename wp-login.php: version: 2.6.0, author: Ella van Durpe, Auto-updates enabled
TablePress: version: 2.1.7, author: Tobias B?thge, Auto-updates enabled
Users Insights: version: 3.8.2, author: Pexeto (latest version: 4.4.1), Auto-updates enabled
Wbcom Designs - BuddyPress Create Group Type: version: 2.7.0, author: Wbcom Designs, Auto-updates enabled
WooCommerce: version: 8.0.2, author: Automattic, Auto-updates disabled
WooCommerce Checkout Manager: version: 7.2.2, author: QuadLayers, Auto-updates enabled
WooCommerce Memberships: version: 1.25.0, author: SkyVerge, Auto-updates enabled
WooCommerce No Shipping Message: version: 2.1.5, author: dangoodman, Auto-updates enabled
WooCommerce Stripe Gateway: version: 7.5.0, author: WooCommerce, Auto-updates enabled
Woo Custom Emails Per Product: version: 2.2.9, author: Alex Mustin, Auto-updates enabled
WP-Optimize - Clean, Compress, Cache: version: 3.2.18, author: David Anderson, Ruhani Rabin, Team Updraft, Auto-updates enabled
WP Crontrol: version: 1.15.3, author: John Blackbourn & crontributors, Auto-updates enabled
WP Mail Logging: version: 1.12.0, author: WP Mail Logging Team, Auto-updates enabled
WPMU DEV Dashboard: version: 4.11.19, author: WPMU DEV, Auto-updates enabled
YYDevelopment - Show Pages ID: version: 1.5.5, author: YYDevelopment, Auto-updates enabled wp-plugins-inactive (28) All-in-One WP Migration: version: 7.77, author: ServMask, Auto-updates enabled
All-in-One WP Migration FTP Extension: version: 2.76, author: ServMask, Auto-updates disabled
Bloom: version: 1.3.12, author: Elegant Themes, Auto-updates enabled
Defender Pro: version: 4.0.1, author: WPMU DEV, Auto-updates disabled
Divi Ghoster: version: 2.1.6, author: Aspen Grove Studios, Auto-updates enabled
Error Log Monitor: version: 1.7.7, author: Janis Elsts, Auto-updates enabled
Forminator Pro: version: 1.25.0, author: WPMU DEV, Auto-updates disabled
Gravity Forms: version: 2.6.1, author: Gravity Forms, Auto-updates enabled
Hummingbird Pro: version: 3.5.0, author: WPMU DEV, Auto-updates disabled
IP Geo Block: version: 3.0.17.4, author: tokkonopapa, Auto-updates enabled
Popup Maker: version: 1.18.2, author: Popup Maker, Auto-updates enabled
Product Feed Manager for WooCommerce: version: 7.3.7, author: RexTheme, Auto-updates enabled
Product Slider and Carousel with Category for WooCommerce: version: 2.8, author: WP OnlineSupport, Essential Plugin, Auto-updates enabled
Role Based Price For WooCommerce: version: 3.3.7, author: Varun Sridharan, Auto-updates enabled
Site Kit by Google: version: 1.107.0, author: Google, Auto-updates enabled
SmartCrawl Pro: version: 3.7.1, author: WPMU DEV, Auto-updates disabled
Smush Pro: version: 3.14.1, author: WPMU DEV, Auto-updates disabled
Sucuri Security - Auditing, Malware Scanner and Hardening: version: 1.8.39, author: Sucuri Inc., Auto-updates enabled
WC User Role Based Coupon: version: 0.2, author: Varun Sridharan, Auto-updates enabled
WooCommerce Dynamic Pricing: version: 3.1.0, author: Lucas Stark (latest version: 3.2.3), Auto-updates enabled
WooCommerce Shipping & Tax: version: 2.3.2, author: WooCommerce, Auto-updates enabled
WooCommerce Subscriptions: version: 2.2.16, author: Prospress Inc. (latest version: 5.4.0), Auto-updates enabled
WordPress Importer: version: 0.8.1, author: wordpressdotorg, Auto-updates disabled
WP-DBManager: version: 2.80.9, author: Lester 'GaMerZ' Chan, Auto-updates enabled
Wp Maximum Upload File Size: version: 1.1.0, author: CodePopular, Auto-updates disabled
WP Performance Score Booster: version: 2.2.1, author: Dipak C. Gajjar, Auto-updates enabled
WPT Custom Mo File: version: 1.2.2, author: WP-Translations Team, Auto-updates enabled
Yoast SEO: version: 20.13, author: Team Yoast, Auto-updates enabled wp-media image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1691
imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
imagick_version: 3.7.0
file_uploads: File uploads is turned off
post_max_size: 128M
upload_max_filesize: 128M
max_effective_size: 128 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 122 MB
imagick::RESOURCETYPE_DISK: 1073741824
imagick::RESOURCETYPE_FILE: 768
imagick::RESOURCETYPE_MAP: 512 MB
imagick::RESOURCETYPE_MEMORY: 256 MB
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HEIC, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
gd_version: 2.3.3
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
ghostscript_version: unknown wp-server server_architecture: Linux 5.15.0-78-generic x86_64
httpd_software: nginx/1.22.1
php_version: 8.1.21 64bit
php_sapi: fpm-fcgi
max_input_variables: 3000
time_limit: 300
memory_limit: 256M
max_input_time: 180
upload_max_filesize: 128M
php_post_max_size: 128M
curl_version: 7.81.0 OpenSSL/3.0.2
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true
current: 2023-08-16T13:59:00+00:00
utc-time: Wednesday, 16-Aug-23 13:59:00 UTC
server-time: 2023-08-16T09:58:57-04:00 wp-database extension: mysqli
server_version: 10.6.12-MariaDB-0ubuntu0.22.04.1
client_version: mysqlnd 8.1.21
max_allowed_packet: 134217728
max_connections: 50 wp-constants WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/web/site/public_html/wp-content
WP_PLUGIN_DIR: /var/web/site/public_html/wp-content/plugins
WP_MEMORY_LIMIT: 128M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined wp-filesystem wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
mu-plugins: writable buddypress version: 11.2.0
active_components: Community Members, User Groups
template_pack: BuddyPress Nouveau 11.2.0
! hide-loggedout-adminbar: No
! bp-disable-account-deletion: No
! bp-disable-avatar-uploads: Yes
! bp-disable-cover-image-uploads: Yes
bp-enable-members-invitations: undefined
bp-enable-membership-requests: undefined
! bp_restrict_group_creation: Yes
! bp-disable-group-avatar-uploads: Yes
! bp-disable-group-cover-image-uploads: YesHello @glabs,
Thank you for sharing these logs but this is not the report we’re looking for.
Would you mind navigating over to the following page and changing the value ofwoocommerce_allow_tracking
to ‘yes’?
https://wpcomstaging.com/wp-admin/options.php
Link to image: https://d.pr/i/Lve1B6
Does that help?Also, please attach a copy of your WooCommerce system status report which you can find WooCommerce > Status. Select “Get system report” and then “Copy for support” (after you scroll down a bit)”. Once you copied it, paste it here in your reply or via a text-sharing service like https://gist.github.com/.
Look forward to hearing back from you.Hi there,
We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if you need any further help with this.
Cheers!
- The topic ‘Critical Error on WordPress Admin Backend’ is closed to new replies.