Error “evaluating ‘e.user.capabilities[t]’”
-
Hi,
When I try to navigate on certain admin page the following error message is displayed on developer tools using WordPress 6.1 and WooCommerce 7.0.1
TypeError: undefined is not an object (evaluating ‘e.user.capabilities[t]’) — index.js:1
I detect this problem on both pages:
https://www.xxxxxxx.com/wp-admin/admin.php?page=wc-admin
https://www.xxxxxxx.com/wp-admin/admin.php?page=wc-admin&path=/analytics/overviewAlso I see this on Console:
TypeError: Cannot read properties of undefined (reading 'manage_woocommerce') at currentUserCan (index.js?ver=7.0.1:2:137662) at index.js?ver=7.0.1:2:370587 at Array.filter (<anonymous>) at index.js?ver=7.0.1:2:370561 at ct (react-dom.min.js?ver=17.0.1:9:43430) at os (react-dom.min.js?ver=17.0.1:9:111136) at Ur (react-dom.min.js?ver=17.0.1:9:77643) at Ir (react-dom.min.js?ver=17.0.1:9:77571) at Dr (react-dom.min.js?ver=17.0.1:9:77434) at Pr (react-dom.min.js?ver=17.0.1:9:74429)and
TypeError: Cannot read properties of undefined (reading 'manage_woocommerce') at currentUserCan (index.js?ver=7.0.1:2:137662) at index.js?ver=7.0.1:2:370587 at Array.filter (<anonymous>) at index.js?ver=7.0.1:2:370561 at ct (react-dom.min.js?ver=17.0.1:9:43430) at os (react-dom.min.js?ver=17.0.1:9:111136) at Ur (react-dom.min.js?ver=17.0.1:9:77643) at Ir (react-dom.min.js?ver=17.0.1:9:77571) at Dr (react-dom.min.js?ver=17.0.1:9:77434) at Pr (react-dom.min.js?ver=17.0.1:9:74429)Has anybody else encountered this, and have you found a solution?
-
This topic was modified 3 years, 6 months ago by
guif.
-
This topic was modified 3 years, 6 months ago by
-
Hello,
Did the site receive a recent update? To take a closer look, please share with us a copy of your site’s System Status You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Then please include the report in your response for us to check.
### WordPress Environment ### WordPress address (URL): https://www.nutricion-herbal.com Site address (URL): https://www.nutricion-herbal.com WC Version: 7.0.1 REST API Version: ✔ 7.0.1 WC Blocks Version: ✔ 8.5.2 Action Scheduler Version: ✔ 3.5.2 Log Directory Writable: ✔ WP Version: 6.1 WP Multisite: – WP Memory Limit: 2 GB WP Debug Mode: – WP Cron: – Language: es_ES External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.0.25 PHP Post Max Size: 650 MB PHP Time Limit: 30 PHP Max Input Vars: 4000 cURL Version: 7.61.1 OpenSSL/1.1.1k SUHOSIN Installed: – MySQL Version: 10.3.28-MariaDB-log Max Upload Size: 500 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 7.0.1 WC Database Prefix: wp_ Tamaño total de la base de datos: 34.15MB Tamaño de los datos de la base de datos: 27.14MB Tamaño del índice de la base de datos: 7.01MB wp_woocommerce_sessions: Datos: 0.06MB + Índice: 0.02MB + Motor InnoDB wp_woocommerce_api_keys: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_woocommerce_attribute_taxonomies: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_woocommerce_downloadable_product_permissions: Datos: 0.02MB + Índice: 0.06MB + Motor InnoDB wp_woocommerce_order_items: Datos: 0.13MB + Índice: 0.05MB + Motor InnoDB wp_woocommerce_order_itemmeta: Datos: 2.52MB + Índice: 0.73MB + Motor InnoDB wp_woocommerce_tax_rates: Datos: 0.02MB + Índice: 0.06MB + Motor InnoDB wp_woocommerce_tax_rate_locations: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_woocommerce_shipping_zones: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_woocommerce_shipping_zone_locations: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_woocommerce_shipping_zone_methods: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_woocommerce_payment_tokens: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_woocommerce_payment_tokenmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_woocommerce_log: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_actionscheduler_actions: Datos: 0.38MB + Índice: 0.42MB + Motor InnoDB wp_actionscheduler_claims: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_actionscheduler_groups: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_actionscheduler_logs: Datos: 0.30MB + Índice: 0.19MB + Motor InnoDB wp_aiowps_debug_log: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_aiowps_events: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_aiowps_failed_logins: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_aiowps_global_meta: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_aiowps_login_activity: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_aiowps_login_lockdown: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_aiowps_permanent_block: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_cartflows_ca_cart_abandonment: Datos: 0.14MB + Índice: 0.02MB + Motor InnoDB wp_cartflows_ca_email_history: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_cartflows_ca_email_templates: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_cartflows_ca_email_templates_meta: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_cmplz_cookiebanners: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_cmplz_cookies: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_cmplz_services: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_commentmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_comments: Datos: 0.14MB + Índice: 0.09MB + Motor InnoDB wp_links: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_custom_fields: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_dynamic_segment_filters: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_feature_flags: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_forms: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_mailpoet_log: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_mailpoet_mapping_to_external_entities: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_migrations: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_newsletters: Datos: 0.06MB + Índice: 0.03MB + Motor InnoDB wp_mailpoet_newsletter_links: Datos: 0.14MB + Índice: 0.11MB + Motor InnoDB wp_mailpoet_newsletter_option: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_newsletter_option_fields: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_newsletter_posts: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_newsletter_segment: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_newsletter_templates: Datos: 2.52MB + Índice: 0.00MB + Motor InnoDB wp_mailpoet_scheduled_tasks: Datos: 0.16MB + Índice: 0.13MB + Motor InnoDB wp_mailpoet_scheduled_task_subscribers: Datos: 0.30MB + Índice: 0.11MB + Motor InnoDB wp_mailpoet_segments: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_mailpoet_sending_queues: Datos: 4.50MB + Índice: 0.03MB + Motor InnoDB wp_mailpoet_settings: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_statistics_bounces: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_mailpoet_statistics_clicks: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB wp_mailpoet_statistics_forms: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_statistics_newsletters: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_mailpoet_statistics_opens: Datos: 0.02MB + Índice: 0.08MB + Motor InnoDB wp_mailpoet_statistics_unsubscribes: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB wp_mailpoet_statistics_woocommerce_purchases: Datos: 0.02MB + Índice: 0.06MB + Motor InnoDB wp_mailpoet_stats_notifications: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_mailpoet_subscribers: Datos: 0.05MB + Índice: 0.13MB + Motor InnoDB wp_mailpoet_subscriber_custom_field: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_subscriber_ips: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_subscriber_segment: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_mailpoet_subscriber_tag: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_mailpoet_tags: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_user_agents: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_mailpoet_user_flags: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_options: Datos: 2.52MB + Índice: 0.13MB + Motor InnoDB wp_pmxi_files: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_pmxi_hash: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_pmxi_history: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_pmxi_images: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_pmxi_imports: Datos: 0.08MB + Índice: 0.00MB + Motor InnoDB wp_pmxi_posts: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_pmxi_templates: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_postmeta: Datos: 3.52MB + Índice: 1.91MB + Motor InnoDB wp_posts: Datos: 6.52MB + Índice: 0.22MB + Motor InnoDB wp_snippets: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_termmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_terms: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_term_relationships: Datos: 0.13MB + Índice: 0.08MB + Motor InnoDB wp_term_taxonomy: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_tipsa_address: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_tipsa_carrier: Datos: 0.05MB + Índice: 0.00MB + Motor InnoDB wp_usermeta: Datos: 0.25MB + Índice: 0.13MB + Motor InnoDB wp_users: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB wp_wcpdf_invoice_number: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_wc_admin_notes: Datos: 0.06MB + Índice: 0.00MB + Motor InnoDB wp_wc_admin_note_actions: Datos: 0.05MB + Índice: 0.02MB + Motor InnoDB wp_wc_category_lookup: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_wc_customer_lookup: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_wc_download_log: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_wc_order_bundle_lookup: Datos: 0.11MB + Índice: 0.09MB + Motor InnoDB wp_wc_order_coupon_lookup: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_wc_order_product_lookup: Datos: 0.11MB + Índice: 0.16MB + Motor InnoDB wp_wc_order_stats: Datos: 0.05MB + Índice: 0.05MB + Motor InnoDB wp_wc_order_tax_lookup: Datos: 0.05MB + Índice: 0.03MB + Motor InnoDB wp_wc_product_attributes_lookup: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_wc_product_download_directories: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_wc_product_meta_lookup: Datos: 0.05MB + Índice: 0.09MB + Motor InnoDB wp_wc_rate_limits: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_wc_reserved_stock: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_wc_tax_rate_classes: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_wc_webhooks: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_woobe_history: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB wp_woobe_history_bulk: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_woocommerce_bundled_itemmeta: Datos: 0.16MB + Índice: 0.16MB + Motor InnoDB wp_woocommerce_bundled_items: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_wpforms_tasks_meta: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_wpmailsmtp_debug_events: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_wpmailsmtp_tasks_meta: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB wp_yoast_indexable: Datos: 0.25MB + Índice: 0.13MB + Motor InnoDB wp_yoast_indexable_hierarchy: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB wp_yoast_migrations: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB wp_yoast_primary_term: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB wp_yoast_seo_links: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB ### Post Type Counts ### attachment: 186 custom_css: 1 et_body_layout: 10 et_footer_layout: 1 et_header_layout: 1 et_pb_layout: 1 et_template: 34 et_theme_builder: 1 mailpoet_page: 1 nav_menu_item: 11 page: 15 post: 4 product: 106 product_variation: 105 revision: 449 shop_coupon: 4 shop_order: 177 shop_order_refund: 3 wp_global_styles: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (26) ### Admin CSS MU: por Arun Basil Lal – 2.7 FiboSearch - AJAX Search for WooCommerce: por Equipo de FiboSearch – 1.20.0 All-in-One WP Migration Unlimited Extension: por ServMask – 2.46 All-in-One WP Migration: por ServMask – 7.67 Code Snippets: por Code Snippets Pro – 3.2.1 Divi BodyCommerce: por Divi Engine – 6.5.4.2 Facebook for WooCommerce: por Facebook – 2.6.28 Health Check & Troubleshooting: por La comunidad de ww.wp.xz.cn – 1.5.1 Integración con Holded: por Holded – 3.3.5 Loco Translate: por Tim Whitlock – 2.6.3 MailPoet: por MailPoet – 3.103.1 tipsacarrier: por Tipsa Integraciones – 1.4.4.1 Top Bar: por WP Darko – 3.0.4 WooCommerce Smart COD: por woosmartcod.com – 1.6.1 BEAR – Bulk Editor and Products Manager Professional for WooCommerce: por realmag777 – 1.1.2 WooCommerce Cart Abandonment Recovery: por CartFlows Inc – 1.2.20 WooCommerce Redsys Gateway Light: por José Conti – 4.0.1 Checkout Fields Manager for WooCommerce: por QuadLayers – 6.3.5 WooCommerce Google Analytics Integration: por WooCommerce – 1.5.16 Pay for Payment for WooCommerce: por Karolína Vyskočilová – 2.1.7 PDF Invoices & Packing Slips for WooCommerce: por WP Overnight – 3.2.4 WooCommerce Product Bundles: por WooCommerce – 6.16.1 WooCommerce: por Automattic – 7.0.1 (la actualización a la versión 7.1.0 está disponible) Yoast SEO: por Equipo Yoast – 19.10 WP Mail SMTP: por WPForms – 3.6.1 WPForms Lite: por WPForms – 1.7.7.2 ### Inactive Plugins (2) ### Complianz | GDPR/CCPA Cookie Consent: por Really Simple Plugins – 6.3.5 WooCommerce Product Bundles: por WooCommerce – 6.13.3 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: bundle (bundle) external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: – ### WC Pages ### Base de la tienda: #19 - /tienda/ Carrito: #20 - /carrito/ Finalizar compra: #21 - /finalizar-compra/ Mi cuenta: #22 - /mi-cuenta/ Términos y condiciones: #28041 - /terminos-y-condiciones-de-venta/ ### Theme ### Name: Divi Version: 4.19.0 Author URL: http://www.elegantthemes.com Child Theme: ❌ – Si estás modificando WooCommerce en un tema padre que no has creado personalmente te recomendamos utilizar un tema hijo. Ver: Cómo crear un tema hijo WooCommerce Support: ✔ ### Templates ### Overrides: – ### Product Bundles ### Database Version: 6.16.1 Loopback Test: ✔ Template Overrides: – ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ✔ Next scheduled: 2022-11-09 18:19:49 +01:00 Options: ✔ Notes: 90 Onboarding: skipped ### Action Scheduler ### Complete: 1.198 Oldest: 2022-10-09 12:43:01 +0200 Newest: 2022-11-08 23:01:17 +0100 Failed: 7 Oldest: 2022-04-07 13:30:53 +0200 Newest: 2022-11-03 00:10:15 +0100 Pending: 8 Oldest: 2022-11-09 16:00:44 +0100 Newest: 2022-11-15 05:00:44 +0100 ### Status report information ### Generated at: 2022-11-08 23:26:41 +01:00Hi @guif
Thanks for sending the System Status Report.
If you could also provide the fatal error logs (if any) under
WooCommerce > Status > Logs?sure!
2022-10-18T10:46:42+00:00 CRITICAL Uncaught DivisionByZeroError: Division by zero in /var/www/html/nutricion-herbal.com/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php:348 Stack trace: #0 /var/www/html/nutricion-herbal.com/wp-includes/rest-api/class-wp-rest-server.php(1143): WP_REST_Users_Controller->get_items() #1 /var/www/html/nutricion-herbal.com/wp-includes/rest-api/class-wp-rest-server.php(990): WP_REST_Server->respond_to_request() #2 /var/www/html/nutricion-herbal.com/wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch() #3 /var/www/html/nutricion-herbal.com/wp-includes/rest-api.php(394): WP_REST_Server->serve_request() #4 /var/www/html/nutricion-herbal.com/wp-includes/class-wp-hook.php(307): rest_api_loaded() #5 /var/www/html/nutricion-herbal.com/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #6 /var/www/html/nutricion-herbal.com/wp-includes/plugin.php(524): WP_Hook->do_action() #7 /var/www/html/nutricion-herbal.com/wp-includes/class-wp.php(398): do_action_ref_array() #8 /var/www/html/nutricion-herbal.com/wp-includes/class-wp.php(770): WP->parse_request() #9 /var/www/html/nutricion-herbal.com/wp-includes/functions.php(1330): WP->main() #10 /var/www/html/nutricion-herbal.com/wp-blog-header.php(16): wp() #11 /var/www/html/nutricion-herbal.com/index.php(17): require('...') #12 {main} thrown en /var/www/html/nutricion-herbal.com/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php en la línea 348-
This reply was modified 3 years, 6 months ago by
guif.
Hello,
Thanks for the info. Does the site have any custom code that you can temporarily disable? If so, please disable it.
If that does not help, you can temporarily switch your theme to Storefront, disable all plugins except WooCommerce, at this point check again to see if the issue persists.
You can use the Meks Quick Plugin Disabler, it is a plugin that will help you to remember what plugins you currently have active, so it’s easy to switch them back on: https://ww.wp.xz.cn/plugins/meks-quick-plugin-disabler/
Let us know if that makes a difference.
same problem on all this scenarios:
– Disable all plugins and put Storefront
– Disable all plugins with Meks Quick Plugin Disabler and enable. After this enable Woocommerce
– Disable all plugins. After this enable WoocommerceWhite page when try to access on Woocommerce (Home) and Analytics (and same error)
Hello,
Can you please update WooCommerce to the version 7.1.0, you can update it under WooCommerce > plugins? After that, is the issue still present?
Let us know what you find.
Hi!
Yes! I’m on the last release (7.1.0) and same issue
Hello,
I was trying to reproduce the issue on my site which is using Storefront, and the latest WooCommerce version, but I was unable to reproduce it.
May I ask for one additional piece of information? Please send a screenshot of the issue on your end, you can send it via https://snipboard.io – please follow the instructions on that page, then paste the URL in this thread. Thanks.
-
This reply was modified 3 years, 6 months ago by
The topic ‘Error “evaluating ‘e.user.capabilities[t]’”’ is closed to new replies.