help: critical error on website after tweaking font size
-
Hey there,
I've encountered a "critical error" on my website (allcitiesarebeautiful.com) after tweaking font sizes. The front end of the website is still intact and reachable but I can only log in to Wordpress using the recovery mode. When doing so, it says "One or more themes failed to load properly." Lay Theme is being reported as "broken" and if I try to resume the theme it remains paused because it is triggering a fatal error.
WP provided me with an error code:
WordPress version 6.3.1
Active theme: Lay Theme (version 6.1.4)
Current plugin: (version )
PHP version 8.0.30Error Details
An error of type E_ERROR was caused in line 231 of the file /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/formatsmanager/formatsmanager.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/formatsmanager/formatsmanager.php:231
Stack trace:
#0 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/formatsmanager/formatsmanager.php(224): FormatsManager::format_of_name_in_array()
#1 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/formatsmanager/formatsmanager.php(196): FormatsManager::maybeAddRequiredFormats()
#2 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/formatsmanager/formatsmanager.php(52): FormatsManager::getDefaultFormatsJson()
#3 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/formatsmanager/formatsmanager.php(838): FormatsManager::init()
#4 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/functions.php(27): require('...')
#5 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-settings.php(600): include('...')
#6 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-config.php(77): require_once('...')
#7 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-load.php(50): require_once('...')
#8 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-admin/admin.php(34): require_once('...')
#9 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-admin/index.php(10): require_once('...')
#10 {main}
thrownThanks for any help in advance!
Cheers
-
i see mmh
i will release an update later today that should fix the issue
i will need to include a test to see if the variable that is trying to be accessed is an arrayif it doesnt fix the issue after you update today in an hour or two:
can you send your website address, /wp-admin/ username and password and a link to this topic to info@laytheme.com?
-
@arminunruh Thanks a lot for the quick reply and the very quick update! So, unfortunately I can not update Lay Theme from within WordPress recovery mode. Would you mind sending me the theme files (v. 6.1.5) via email? I'll update everything manually via ftp (this wouldn't cause any issues, right?) This email is also the one I registered Lay Theme with.
Thanks a lot for your help!
-
sure i sent it to you
i hope that fixes it, if send an email to info@laytheme.com
-
@arminunruh Thank you for providing the files. Updating didn't fix the issue tho. I also tried updaten Wordpress but that didn't work as well.
The error still persists with following Error Code. I'm not sure if it's the same…
WordPress version 6.3.1
Active theme: Lay Theme (version 6.1.6)
Current plugin: (version )
PHP version 8.0.30Error Details
An error of type E_ERROR was caused in line 225 of the file /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/formatsmanager/formatsmanager.php. Error message: Uncaught TypeError: array_unshift(): Argument #1 ($array) must be of type array, null given in /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/formatsmanager/formatsmanager.php:225
Stack trace:
#0 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/formatsmanager/formatsmanager.php(225): array_unshift()
#1 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/formatsmanager/formatsmanager.php(196): FormatsManager::maybeAddRequiredFormats()
#2 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/formatsmanager/formatsmanager.php(52): FormatsManager::getDefaultFormatsJson()
#3 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/formatsmanager/formatsmanager.php(840): FormatsManager::init()
#4 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-content/themes/lay/functions.php(27): require('...')
#5 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-settings.php(600): include('...')
#6 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-config.php(77): require_once('...')
#7 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-load.php(50): require_once('...')
#8 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-admin/admin.php(34): require_once('...')
#9 /mnt/web307/d3/29/58646529/htdocs/WordPress_SecureMode_02/wp-admin/themes.php(10): require_once('...')
#10 {main}
thrown -
hey this error indicates that the json of all of your textformats is missing
i have never seen that error beforecan you send your webhost control panel login to info@laytheme.com
i will probably need to add something to the database and then login to your /wp-admin/ to see why this error happened in the first place
-
@arminunruh I've just sent you the log in credentials. Unfortunately the Wordpress recovery mode log in link is only active for 24 hours. After that you'd need a new one. Thanks so much in advance for your time and help with this! It's much appreciated.
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it