Can’t view on Documents because of this error
-
Dear Woocommerce Payment team,
We can’t view the Document because of this error: There was an error rendering this view. Please contact support for assistance if the problem persists. ReferenceError: wpApiSettings is not defined
Screenshot: https://ibb.co/3ML2hF4
Please tell me how to solve it? Thank you
The page I need help with: [log in to see the link]
-
Hello @dinaddd,
Thank you for reaching out!
Could you please check if the problem is caused by a caching, performance, or security plugin by disabling all of them?
If that didn’t help, please attach a copy of your site’s System Status report. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support” (after you scroll down a bit)”. Once done, please paste it here in your reply or via a text-sharing service like https://gist.github.com/.
Look forward to hearing back from you.Hello, thank you for answering and I tried deactivated all plugins and the error is still there. Here is my status:
` WordPress Environment WordPress address (URL): https://conferenziaworld.com Site address (URL): https://conferenziaworld.com WC Version: 8.2.0 REST API Version: ? 8.2.0 WC Blocks Version: ? 11.1.2 Action Scheduler Version: ? 3.6.3 Log Directory Writable: ? WP Version: 6.3.1 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: – WP Cron: – Language: en External object cache: – Server Environment Server Info: Apache PHP Version: 7.4.33 PHP Post Max Size: 128 MB PHP Time Limit: 6000 PHP Max Input Vars: 6000 cURL Version: 7.87.0 OpenSSL/1.1.1p SUHOSIN Installed: – MySQL Version: 5.7.43-cll-lve Max Upload Size: 128 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? Database WC Database Version: 8.2.0 WC Database Prefix: wp_2k5xr90n0y_ Total Database Size: 95.12MB Database Data Size: 69.38MB Database Index Size: 25.74MB wp_2k5xr90n0y_woocommerce_sessions: Data: 0.36MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_2k5xr90n0y_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_2k5xr90n0y_woocommerce_order_items: Data: 0.45MB + Index: 0.11MB + Engine InnoDB wp_2k5xr90n0y_woocommerce_order_itemmeta: Data: 3.52MB + Index: 3.03MB + Engine InnoDB wp_2k5xr90n0y_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_2k5xr90n0y_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_2k5xr90n0y_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_2k5xr90n0y_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_2k5xr90n0y_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_actionscheduler_actions: Data: 0.17MB + Index: 0.17MB + Engine InnoDB wp_2k5xr90n0y_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_actionscheduler_logs: Data: 0.13MB + Index: 0.09MB + Engine InnoDB wp_2k5xr90n0y_cleantalk_ac_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_cleantalk_connection_reports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_cleantalk_no_cookie_data: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_cleantalk_sessions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_cleantalk_sfw: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_cleantalk_sfw_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_cleantalk_sfw_personal: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_cleantalk_spamscan_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_cleantalk_ua_bl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_cleantalk_wc_spam_orders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_cmplz_cookiebanners: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_cmplz_cookies: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_cmplz_dnsmpd: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_cmplz_services: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_2k5xr90n0y_comments: Data: 2.52MB + Index: 0.92MB + Engine InnoDB wp_2k5xr90n0y_duplicator_pro_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_duplicator_pro_packages: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_mclean_refs: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_mclean_scan: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_options: Data: 11.44MB + Index: 0.53MB + Engine InnoDB wp_2k5xr90n0y_postmeta: Data: 34.56MB + Index: 18.06MB + Engine InnoDB wp_2k5xr90n0y_posts: Data: 10.52MB + Index: 1.02MB + Engine InnoDB wp_2k5xr90n0y_post_smtp_logmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_post_smtp_logs: Data: 3.52MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_pum_subscribers: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_2k5xr90n0y_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_rank_math_analytics_gsc: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_2k5xr90n0y_rank_math_analytics_objects: Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_rank_math_internal_links: Data: 0.13MB + Index: 0.05MB + Engine InnoDB wp_2k5xr90n0y_rank_math_internal_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_2k5xr90n0y_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_2k5xr90n0y_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_2k5xr90n0y_term_relationships: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_2k5xr90n0y_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_2k5xr90n0y_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_2k5xr90n0y_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_2k5xr90n0y_wc_admin_notes: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_wc_admin_note_actions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_wc_customer_lookup: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wp_2k5xr90n0y_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_2k5xr90n0y_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_2k5xr90n0y_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_2k5xr90n0y_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_2k5xr90n0y_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_2k5xr90n0y_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_2k5xr90n0y_wc_order_product_lookup: Data: 0.09MB + Index: 0.06MB + Engine InnoDB wp_2k5xr90n0y_wc_order_stats: Data: 0.08MB + Index: 0.05MB + Engine InnoDB wp_2k5xr90n0y_wc_order_tax_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_2k5xr90n0y_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_wc_product_meta_lookup: Data: 0.06MB + Index: 0.13MB + Engine InnoDB wp_2k5xr90n0y_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_2k5xr90n0y_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_2k5xr90n0y_wpaas_activity_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB Post Type Counts acf: 2 acf-field: 2 acf-field-group: 2 ajde_events: 113 attachment: 1321 cfmemailverification: 1 chat-room: 1 cookielawinfo: 15 custom_css: 24 easy-pricing-table: 2 edge: 2 et_body_layout: 1 et_footer_layout: 1 et_header_layout: 1 et_pb_layout: 72 et_template: 6 et_theme_builder: 1 event: 1 evo-tix: 2644 fmemailverification: 1 follow_up_email: 5 happyform: 2 hover_effect: 1 ig_campaign: 1 ig_message: 4 image_hover_effect: 1 ims_countdown: 1 lgx_lsp_shortcodes: 1 location: 1 logosliderwp: 1 mailpoet_page: 1 nav_menu_item: 45 nf_sub: 181 oembed_cache: 4 page: 130 popup: 34 popup_theme: 9 popupbuilder: 4 post: 2 postman_sent_mail: 250 pp_video_block: 17 product: 113 product_variation: 373 pwh_dcfh: 293 qrcode: 1 revision: 130 sa_slider: 53 shop_coupon: 58 shop_order: 2317 shop_order_refund: 5 smuzform: 1 soliloquy: 1 team_showcase_post: 17 wmpc-trash: 47 wp_global_styles: 1 wp_navigation: 1 wpcdt_countdown: 1 wpcode: 2 wpforms: 1 ycdcountdown: 1 Security Secure connection (HTTPS): ? Hide errors from visitors: ? Active Plugins (23) Advanced Cron Manager: by BracketSpace – 2.5.2 Booster Plus for WooCommerce: by Algoritmika Ltd – 4.4.1 Anti-Spam by CleanTalk: by СleanTalk - Anti-Spam Protection – 6.20 Complianz | GDPR/CCPA Cookie Consent: by Really Simple Plugins – 6.5.5 Disable Gutenberg: by Jeff Starr – 3.0 Divi Contact Form Helper: by <a >Pak Web House</a> & <a >Pee-Aye Creative</a> – 1.5.2 Divi Extended Column Layouts: by Sean Barton - Tortoise IT – 2.0 Duplicate Page: by mndpsingh287 – 4.5.3 EventON: by AshanJay – 4.4.3 EventON - Event Tickets: by Ashan Jay – 2.2.3 Font Awesome: by Font Awesome – 4.4.0 WPCode Lite: by WPCode – 2.1.3.1 Local Google Fonts: by EverPress – 0.22.0 Popup Maker: by Popup Maker – 1.18.2 Rank Math SEO: by Rank Math – 1.0.203 Seraphinite Accelerator (Extended, limited): by Seraphinite Solutions – 2.20.28 Shortcodes for Divi: by WP Zone – 1.2.2 Slide Anything - Responsive Content / HTML Slider and Carousel: by – 2.4.9 Social Divi: by Jelle Roorda – 1.7.0 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.23.10 WooCommerce Payments: by Automattic – 6.6.0 WooCommerce: by Automattic – 8.2.0 WP Test Email: by Boopathi Rajan – 1.1.6 Inactive Plugins (1) Post SMTP: by Post SMTP – 2.6.1 Dropin Plugins (2) advanced-cache.php: advanced-cache.php db-error.php: db-error.php Must Use Plugins (1) WordPress automation by Installatron: by – Settings API Enabled: ? Force SSL: ? Currency: EUR (€) Currency Position: left_space Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: 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: ? HPOS feature screen enabled: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – WC Pages Shop base: ? Page not set Cart: ? Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block. Checkout: #119008 - /checkout/ My account: #119009 - /my-account/ Terms and conditions: #130016 - /terms-and-conditions/ Theme Name: Divi Version: 4.22.0 Author URL: https://www.elegantthemes.com Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? Templates Overrides: – WooPayments Version: 6.6.0 Connected to WPCOM: Yes WPCOM Blog ID: 210832127 Account ID: acct_1Ll6jgFhwPWb8ySy Payment Gateway: Enabled Test Mode: Disabled UPE: Disabled WooPay: Not eligible Apple Pay / Google Pay: Disabled Fraud Protection Level: basic Multi-currency: Enabled Public Key Encryption: Disabled Auth and Capture: Enabled Documents: Enabled Logging: Enabled Admin Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks product-variation-management 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: customize-store minified-js new-product-management-experience settings async-product-editor-category-field Daily Cron: ? Next scheduled: 2023-10-11 13:10:07 +01:00 Options: ? Notes: 136 Onboarding: completed Action Scheduler Canceled: 7 Oldest: 2023-09-13 00:14:58 +0000 Newest: 2023-10-11 13:38:02 +0000 Complete: 281 Oldest: 2023-09-11 08:32:05 +0000 Newest: 2023-10-12 08:06:22 +0000 Failed: 152 Oldest: 2023-02-15 13:33:30 +0000 Newest: 2023-07-20 09:32:48 +0000 Pending: 3 Oldest: 2023-10-12 08:06:23 +0000 Newest: 2023-10-13 08:25:13 +0000 Status report information Generated at: 2023-10-12 09:06:24 +01:00 `
Thank you and I hope it’s enough…
Hi @dinaddd
The error message “wpApiSettings is not defined” is often related to a JavaScript issue. This could be due to a conflict with your theme or one of your plugins.
Since you’ve already deactivated all plugins and the error is still there, I suggest temporarily switching your theme to a default WordPress theme, such as Storefront, to see if the issue persists. This will help us rule out any conflicts with your current theme.
If the problem still exists after switching the theme, it would be helpful if you could provide us with any JavaScript errors that you see in your browser’s console. You can access the console in most browsers by right-clicking on the page, selecting “Inspect”, and then clicking on the “Console” tab.
Please let us know the outcome of these tests so we can further assist you in resolving this issue.
Hello @shameemreza
I switched theme from Divi to others: Twenty Twenty-One , Twenty Twenty-Two and Twenty Twenty-Three. Unfortunately, there is still the error, so here is my Javascript: https://ibb.co/wh9FX2T
I hope this is what you want? Let me know when you need more details.
Thank you
Hello,
Did you manage to fix this issue? i have exactly the same issue. Please help me.
Hello @dinaddd,
Sorry for not updating the thread earlier. Our team was able to replicate the issue, a fix has already been released in version
6.6.1
. Please update the plugin to the latest release.For more details, you can visit: https://github.com/Automattic/woocommerce-payments/pull/7484
Thank you for bringing this to our attention!
Cheers!
CC: @steli85
Hello @babylon1999
I updated your Version 6.6.2 and it’s working ?? Thank you so much!
- The topic ‘Can’t view on Documents because of this error’ is closed to new replies.