critical error when accessing widgets
-
I am trying to get into appearance – widgets but getting the error:
“There was been a critical error on your website”I have done a search on the forum here but found nothing which has a direct solution for me. Everything was working normally – then all of a sudden not.
I don’t think that I made any changes in the interim, so I’m a bit confused.
The server log file is as follows:[12-Aug-2023 06:03:40 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wc_print_notices() in /home/traxidec/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3878 Stack trace: #0 /home/traxidec/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/StoreNotices.php(30): woocommerce_output_all_notices() #1 /home/traxidec/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(88): Automattic\WooCommerce\Blocks\BlockTypes\StoreNotices->render(Array, '', Object(WP_Block)) #2 /home/traxidec/public_html/wp-includes/class-wp-block.php(258): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback(Array, '', Object(WP_Block)) #3 /home/traxidec/public_html/wp-includes/blocks.php(1133): WP_Block->render() #4 /home/traxidec/public_html/wp-includes/blocks.php(1171): render_block(Array) #5 /home/traxidec/public_html/wp-includes/class-wp-hook.php(312): do_blocks('<!-- wp:woocomm...') #6 /home/traxidec/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('<!-- wp:woocomm...', Array) #7 /home/traxidec/public_html/wp-includes/widgets/class-wp-widget-block.php(78): apply_filters('widget_block_co...', '<!-- wp:woocomm...', Array, Object(WP_Widget_Block)) #8 /home/traxidec/public_html/wp-includes/class-wp-widget.php(394): WP_Widget_Block->widget(Array, Array) #9 /home/traxidec/public_html/wp-includes/widgets.php(2026): WP_Widget->display_callback(Array, Array) #10 /home/traxidec/public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(697): wp_render_widget('block-110', 'sidebar-1') #11 /home/traxidec/public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(154): WP_REST_Widgets_Controller->prepare_item_for_response(Array, Object(WP_REST_Request)) #12 /home/traxidec/public_html/wp-includes/rest-api/class-wp-rest-server.php(1188): WP_REST_Widgets_Controller->get_items(Object(WP_REST_Request)) #13 /home/traxidec/public_html/wp-includes/rest-api/class-wp-rest-server.php(1035): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wp/v2/widgets', Array, NULL) #14 /home/traxidec/public_html/wp-includes/rest-api.php(545): WP_REST_Server->dispatch(Object(WP_REST_Request)) #15 /home/traxidec/public_html/wp-includes/rest-api.php(2911): rest_do_request(Object(WP_REST_Request)) #16 [internal function]: rest_preload_api_request(Array, '/wp/v2/widgets?...') #17 /home/traxidec/public_html/wp-includes/block-editor.php(743): array_reduce(Array, 'rest_preload_ap...', Array) #18 /home/traxidec/public_html/wp-admin/widgets-form-blocks.php(26): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context)) #19 /home/traxidec/public_html/wp-admin/widgets.php(32): require('/home/traxidec/...') #20 {main} thrown in /home/traxidec/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 3878
the wordpress site health info is:
` wp-core version: 6.3
site_language: en_AU
user_language: en_AU
timezone: +10:00
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: true wp-paths-sizes wordpress_path: /home/traxidec/public_html
wordpress_size: 434.56 MB (455673056 bytes)
uploads_path: /home/traxidec/public_html/wp-content/uploads
uploads_size: 55.12 MB (57800491 bytes)
themes_path: /home/traxidec/public_html/wp-content/themes
themes_size: 56.67 MB (59424382 bytes)
plugins_path: /home/traxidec/public_html/wp-content/plugins
plugins_size: 30.48 MB (31962576 bytes)
database_size: 5.92 MB (6202916 bytes)
total_size: 582.76 MB (611063421 bytes) wp-dropins (1) maintenance.php: true wp-active-theme name: Traxide Theme (divi-child-theme)
version: 1.0
author: Michael Reed
author_website: https://webbymichael.com
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: /home/traxidec/public_html/wp-content/themes/divi-child-theme
auto_update: Disabled wp-parent-theme name: Divi (Divi)
version: 4.22.0
author: Elegant Themes
author_website: https://www.elegantthemes.com
theme_path: /home/traxidec/public_html/wp-content/themes/Divi
auto_update: Disabled wp-themes-inactive (2) Storefront: version: 4.5.2, author: Automattic, Auto-updates disabled
Twenty Twenty-Three: version: 1.2, author: the WordPress team, Auto-updates disabled wp-plugins-active (6) eCommerce Product Catalog for WordPress: version: 3.3.19, author: impleCode, Auto-updates enabled
Mailer Dragon: version: 1.1.2, author: impleCode, Auto-updates enabled
Product Enquiry for WooCommerce: version: 3.1.6, author: WisdmLabs, Auto-updates disabled
Rank Math SEO: version: 1.0.121.1, author: Rank Math, Auto-updates enabled
Really Simple SSL: version: 7.0.8, author: Really Simple Plugins, Auto-updates enabled
WooCommerce: version: 8.0.1, author: Automattic, Auto-updates disabled wp-plugins-inactive (5) 3D FlipBook : Dflip Lite: version: 1.7.35, author: DearHive, Auto-updates disabled
Duplicate Page: version: 4.5.2, author: mndpsingh287, Auto-updates enabled
LiteSpeed Cache: version: 5.5.1, author: LiteSpeed Technologies, Auto-updates disabled
Reviews Plus - Google compatible WordPress Reviews for any content: version: 1.3.3, author: impleCode, Auto-updates enabled
Slim Maintenance Mode: version: 1.4.3, author: Johannes Ries, Auto-updates disabled wp-media image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1692
imagemagick_version: ImageMagick 6.9.12-86 Q16 x86_64 17814 https://legacy.imagemagick.org
imagick_version: 3.7.0
file_uploads: File uploads is turned off
post_max_size: 8M
upload_max_filesize: 2M
max_effective_size: 2 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 125 GB
imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
imagick::RESOURCETYPE_FILE: 196608
imagick::RESOURCETYPE_MAP: 62 GB
imagick::RESOURCETYPE_MEMORY: 31 GB
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, 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, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FRACTAL, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, 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, MPEG, 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: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.27 wp-server server_architecture: Linux 4.18.0-425.3.1.lve.el8.x86_64 x86_64
httpd_software: LiteSpeed
php_version: 8.0.29 64bit
php_sapi: litespeed
max_input_variables: 1000
time_limit: 30
memory_limit: 128M
admin_memory_limit: 256M
max_input_time: 60
upload_max_filesize: 2M
php_post_max_size: 8M
curl_version: 7.61.1 OpenSSL/1.1.1k
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true
current: 2023-08-12T06:17:49+00:00
utc-time: Saturday, 12-Aug-23 06:17:49 UTC
server-time: 2023-08-12T16:17:48+10:00 wp-database extension: mysqli
server_version: 8.0.33
client_version: mysqlnd 8.0.29
max_allowed_packet: 268435456
max_connections: 151 wp-constants WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /home/traxidec/public_html/wp-content
WP_PLUGIN_DIR: /home/traxidec/public_html/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: true
WP_DEBUG_DISPLAY: false
WP_DEBUG_LOG: true
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: utf8
DB_COLLATE: undefined wp-filesystem wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writableAt this time the divi child theme (traxide theme) does not have any additional code in it. Essentially it’s operating in the same way the Divi itself would.
It’s POSSIBLE I may have updated woocommerce which resulted in this error (I can’t be sure if I did it them or after the error eventuated)
The only other updates were to inactive themes and plugins.
All help appreciatedThe page I need help with: [log in to see the link]
- The topic ‘critical error when accessing widgets’ is closed to new replies.