Critical error on the customize.php page
-
Hello! I imported these theme by coping files to
wp-content/themes
directory (also restored database with the phphMyAdmin export function)It shows the site correctly, expect it differs in colors and pictures. And when I open the “Customize” page, I get a critical error. With
define( 'WP_DEBUG_LOG', true );
inwp-config.php
I can see the stack trace inwp-content/debug.log
[22-Jan-2025 14:02:17 UTC] PHP Fatal error: Uncaught TypeError: array_merge(): Argument #3 must be of type array, bool given in /home/user/public_html/website_xxxxxxxx/wp-includes/class-wp-customize-widgets.php:380
Stack trace:
#0 /home/user/public_html/website_xxxxxxxx/wp-includes/class-wp-customize-widgets.php(380): array_merge(Array, Array, false)
#1 /home/user/public_html/website_xxxxxxxx/wp-includes/class-wp-customize-widgets.php(355): WP_Customize_Widgets->customize_register()
#2 /home/user/public_html/website_xxxxxxxx/wp-includes/class-wp-hook.php(324): WP_Customize_Widgets->schedule_customize_register(Object(WP_Customize_Manager))
#3 /home/user/public_html/website_xxxxxxxx/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#4 /home/user/public_html/website_xxxxxxxx/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /home/user/public_html/website_xxxxxxxx/wp-includes/class-wp-customize-manager.php(947): do_action('customize_regis...', Object(WP_Customize_Manager))
#6 /home/user/public_html/website_xxxxxxxx/wp-includes/class-wp-hook.php(324): WP_Customize_Manager->wp_loaded('')
#7 /home/user/public_html/website_xxxxxxxx/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#8 /home/user/public_html/website_xxxxxxxx/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#9 /home/user/public_html/website_xxxxxxxx/wp-settings.php(726): do_action('wp_loaded')
#10 /home/user/public_html/website_xxxxxxxx/wp-config.php(119): require_once('/home/user...')
#11 /home/user/public_html/website_xxxxxxxx/wp-load.php(50): require_once('/home/user...')
#12 /home/user/public_html/website_xxxxxxxx/wp-admin/admin.php(34): require_once('/home/user...')
#13 /home/user/public_html/website_xxxxxxxx/wp-admin/customize.php(13): require_once('/home/user...')
#14 {main}
thrown in /home/user/public_html/website_xxxxxxxx/wp-includes/class-wp-customize-widgets.php on line 380class-wp-customize-widgets.php on line 380:
$sidebars_widgets = array_merge(
array( 'wp_inactive_widgets' => array() ),
array_fill_keys( array_keys( $wp_registered_sidebars ), array() ),
wp_get_sidebars_widgets()
);I tried to install the plugin Classic Widgets which restores the old widgets. But it also does not help =(
What is the possible solution? I cannot downgrade PHP to 7.4 (the minumum php version that I can use is 8.1)
Site health info
### wp-core ###
version: 6.7.1
site_language: en
user_language: en
timezone: +00:00
permalink: /%year%/%monthnum%/%day%/%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: closed
environment_type: production
user_count: 1
dotorg_communication: true
### wp-paths-sizes ###
wordpress_path: /home/user/public_html/website_961d300f
wordpress_size: 155.03 MB (162556885 bytes)
uploads_path: /home/user/public_html/website_961d300f/wp-content/uploads
uploads_size: 33.21 MB (34827643 bytes)
themes_path: /home/user/public_html/website_961d300f/wp-content/themes
themes_size: 46.55 MB (48812557 bytes)
plugins_path: /home/user/public_html/website_961d300f/wp-content/plugins
plugins_size: 162.20 MB (170074499 bytes)
fonts_path: /home/user/public_html/website_961d300f/wp-content/uploads/fonts
fonts_size: directory not found
database_size: 3.28 MB (3440046 bytes)
total_size: 400.27 MB (419711630 bytes)
### wp-active-theme ###
name: Activation (activation)
version: 1.2.2
author: GoDaddy
author_website: https://www.godaddy.com/
parent_theme: Primer (primer)
theme_features: core-block-patterns, widgets-block-editor, wp-block-styles, align-wide, editor-styles, editor-style, custom-header, custom-background, editor-color-palette, custom-logo, automatic-feed-links, title-tag, post-thumbnails, customize-selective-refresh-widgets, menus, html5, post-formats, widgets
theme_path: /home/user/public_html/website_961d300f/wp-content/themes/activation
auto_update: Enabled
### wp-parent-theme ###
name: Primer (primer)
version: 1.8.9
author: GoDaddy
author_website: https://www.godaddy.com/
theme_path: /home/user/public_html/website_961d300f/wp-content/themes/primer
auto_update: Enabled
### wp-themes-inactive (14) ###
Aglee Lite: version: 1.1.4, author: 8Degree Themes, Auto-updates enabled
HB Charity: version: 1.1.3, author: Hummingbirdthemes, Auto-updates enabled
Neville: version: 1.0.1, author: Acosmin, Auto-updates enabled
SKT Charity: version: 2.7, author: SKT Themes, Auto-updates enabled
Somalite: version: 2.1.0, author: Spiracle Themes, Auto-updates enabled
Twenty Fifteen: version: 3.9, author: the WordPress team, Auto-updates enabled
Twenty Nineteen: version: 3.0, author: the WordPress team, Auto-updates enabled
Twenty Seventeen: version: 3.8, author: the WordPress team, Auto-updates enabled
Twenty Sixteen: version: 3.4, author: the WordPress team, Auto-updates enabled
Twenty Twenty: version: 2.8, author: the WordPress team, Auto-updates enabled
Twenty Twenty-Five: version: 1.0, author: the WordPress team, Auto-updates enabled
Twenty Twenty-Four: version: 1.3, author: the WordPress team, Auto-updates enabled
Twenty Twenty-Three: version: 1.6, author: the WordPress team, Auto-updates enabled
Twenty Twenty-Two: version: 1.9, author: the WordPress team, Auto-updates enabled
### wp-mu-plugins (3) ###
Endurance Page Cache: version: 2.2.1, author: Mike Hansen
installatron_hide_status_test.php: author: (undefined), version: (undefined)
SSO: version: 0.5, author: Garth Mortensen, Mike Hansen
### wp-plugins-active (8) ###
Classic Widgets: version: 0.3, author: WordPress Contributors, Auto-updates enabled
Contact Form 7: version: 6.0.2, author: Takayuki Miyoshi (latest version: 6.0.3), Auto-updates enabled
Custom Facebook Feed Pro Business: version: 3.9.1, author: Smash Balloon (latest version: 4.6.6), Auto-updates enabled
Disable Comments: version: 2.4.6, author: WPDeveloper, Auto-updates enabled
Google Analytics for WordPress by MonsterInsights: version: 9.2.4, author: MonsterInsights, Auto-updates enabled
Limit Login Attempts: version: 1.7.2, author: Johan Eenfeldt, Auto-updates enabled
Page scroll to id: version: 1.7.9, author: malihu, Auto-updates enabled
The Bluehost Plugin: version: 3.15.9, author: Bluehost, Auto-updates enabled
### wp-plugins-inactive (11) ###
Akismet Anti-spam: Spam Protection: version: 5.3.5, author: Automattic - Anti-spam Team, Auto-updates enabled
Creative Mail by Newfold Digital: version: 1.6.9, author: Newfold Digital, Auto-updates enabled
Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Auto-updates enabled
InstaWP Connect: version: 0.1.0.78, author: InstaWP Team, Auto-updates enabled
Jetpack: version: 14.2.1, author: Automattic, Auto-updates enabled
OptinMonster: version: 2.16.13, author: OptinMonster Popup Builder Team, Auto-updates enabled
Parallax Scroll by adamrob.co.uk: version: 3.0.1, author: adamrob, Auto-updates enabled
Quotes Collection: version: 2.5.2, author: Srini G, Auto-updates enabled
Really Simple Security: version: 9.2.0, author: Really Simple Security, Auto-updates enabled
WPForms Lite: version: 1.9.3.1, author: WPForms, Auto-updates enabled
Yoast SEO: version: 24.3, author: Team Yoast, Auto-updates enabled
### wp-media ###
image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1693
imagemagick_version: ImageMagick 6.9.13-21 Q16 x86_64 18557 https://legacy.imagemagick.org
imagick_version: 3.7.0
file_uploads: 1
post_max_size: 516M
upload_max_filesize: 512M
max_effective_size: 512 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 175 GB
imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
imagick::RESOURCETYPE_FILE: 12288
imagick::RESOURCETYPE_MAP: 48 MB
imagick::RESOURCETYPE_MEMORY: 48 MB
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 0
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, FLV, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HEIC, HEIF, 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, 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, AVIF, XPM
ghostscript_version: 9.54.0
### wp-server ###
server_architecture: Linux 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 x86_64
httpd_software: Apache
php_version: 8.1.31 64bit
php_sapi: litespeed
max_input_variables: 1000
time_limit: 60
memory_limit: 512M
max_input_time: 60
upload_max_filesize: 512M
php_post_max_size: 516M
curl_version: 7.76.1 OpenSSL/3.2.2
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true
current: 2025-01-22T14:24:24+00:00
utc-time: Wednesday, 22-Jan-25 14:24:24 UTC
server-time: 2025-01-22T14:24:23+00:00
### wp-database ###
extension: mysqli
server_version: 8.0.40-31
client_version: mysqlnd 8.1.31
max_allowed_packet: 268435456
max_connections: 150
### wp-constants ###
WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /home/user/public_html/website_961d300f/wp-content
WP_PLUGIN_DIR: /home/user/public_html/website_961d300f/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 512M
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: writable
fonts: not writable
mu-plugins: writable
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.