Your Site is Experiencing a Technical Issue (after automatic update)
-
Hi,
i updated all the plugins and the theme to the latest version but i received the following email
Howdy!
WordPress has a built-in feature that detects when a plugin or theme
causes a fatal error on your site, and notifies you with this
automated email.In this case, WordPress caught an error with one of your plugins, WooCommerce.
First, visit your website (https://www.cripta747.it/) and check for
any visible issues. Next, visit the page where the error was caught
(https://www.cripta747.it/wp-admin/update.php?action=update-selected&plugins=jetpack%2Fjetpack.php%2Claytheme-carousel%2Flaytheme-carousel.php%2Creally-simple-ssl%2Frlrsssl-really-simple-ssl.php%2Cside-cart-woocommerce%2Fxoo-wsc-main.php%2Csimply-schedule-appointments%2Fsimply-schedule-appointments.php%2Cwoocommerce%2Fwoocommerce.php%2Cwoocommerce-payments%2Fwoocommerce-payments.php%2Cwp-mail-smtp%2Fwp_mail_smtp.php&_wpnonce=ce5b53230c)
and check for any visible issues.Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can't access your dashboard
normally, WordPress now has a special "recovery mode". This lets you
safely login to your dashboard and investigate further.To keep your site safe, this link will expire in 1 day. Don't worry
about that, though: a new link will be emailed to you if the error
occurs again after it expires.When seeking help with this issue, you may be asked for some of the
following information:
WordPress version 6.7.2
Active theme: Lay Theme (version 8.1.6)
Current plugin: WooCommerce (version 9.7.1)
PHP version 8.0.30Error Details
An error of type E_ERROR was caused in line 1078 of the file
/customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php.
Error message: Uncaught Error: Class
"Automattic\WooCommerce\Enums\ProductType" not found in
/customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1078
Stack trace:
#0 /customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/src/Admin/API/Products.php(42):
WC_REST_Products_Controller->get_item_schema()
#1 /customers/6/1/0/cripta747.it/httpd.www/wp-includes/rest-api/endpoints/class-wp-rest-controller.php(388):
Automattic\WooCommerce\Admin\API\Products->get_item_schema()
#2 /customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(569):
WP_REST_Controller->get_context_param()
#3 /customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(2314):
WC_REST_CRUD_Controller->get_collection_params()
#4 /customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php(1681):
WC_REST_Products_V2_Controller->get_collection_params()
#5 /customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/src/Admin/API/Products.php(74):
WC_REST_Products_Controller->get_collection_params()
#6 /customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(72):
Automattic\WooCommerce\Admin\API\Products->get_collection_params()
#7 /customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php(62):
WC_REST_Products_V2_Controller->register_routes()
#8 /customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/src/Admin/API/Init.php(169):
WC_REST_Products_Controller->register_routes()
#9 /customers/6/1/0/cripta747.it/httpd.www/wp-includes/class-wp-hook.php(324):
Automattic\WooCommerce\Admin\API\Init->rest_api_init(Object(WP_REST_Server))
#10 /customers/6/1/0/cripta747.it/httpd.www/wp-includes/class-wp-hook.php(348):
WP_Hook->apply_filters(NULL, Array)
#11 /customers/6/1/0/cripta747.it/httpd.www/wp-includes/plugin.php(517):
WP_Hook->do_action(Array)
#12 /customers/6/1/0/cripta747.it/httpd.www/wp-includes/rest-api.php(618):
do_action('rest_api_init', Object(WP_REST_Server))
#13 /customers/6/1/0/cripta747.it/httpd.www/wp-includes/rest-api.php(576):
rest_get_server()
#14 /customers/6/1/0/cripta747.it/httpd.www/wp-includes/rest-api.php(2957):
rest_do_request(Object(WP_REST_Request))
#15 [internal function]: rest_preload_api_request(Array, '/wc-analytics/r...')
#16 /customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php(144):
array_reduce(Array, 'rest_preload_ap...')
#17 /customers/6/1/0/cripta747.it/httpd.www/wp-includes/class-wp-hook.php(324):
Automattic\WooCommerce\Internal\Admin\Settings->add_component_settings(Array)
#18 /customers/6/1/0/cripta747.it/httpd.www/wp-includes/plugin.php(205):
WP_Hook->apply_filters(Array, Array)
#19 /customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminSharedSettings.php(66):
apply_filters('woocommerce_adm...', Array)
#20 /customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/src/Blocks/Assets/AssetDataRegistry.php(272):
Automattic\WooCommerce\Internal\Admin\WCAdminSharedSettings->Automattic\WooCommerce\Internal\Admin{closure}()
#21 /customers/6/1/0/cripta747.it/httpd.www/wp-content/plugins/woocommerce/src/Blocks/Assets/AssetDataRegistry.php(388):
Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->execute_lazy_data()
#22 /customers/6/1/0/cripta747.it/httpd.www/wp-includes/class-wp-hook.php(324):
Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->enqueue_asset_data('')
#23 /customers/6/1/0/cripta747.it/httpd.www/wp-includes/class-wp-hook.php(348):
WP_Hook->apply_filters('', Array)
#24 /customers/6/1/0/cripta747.it/httpd.www/wp-includes/plugin.php(517):
WP_Hook->do_action(Array)
#25 /customers/6/1/0/cripta747.it/httpd.www/wp-admin/includes/template.php(2229):
do_action('admin_print_foo...')
#26 /customers/6/1/0/cripta747.it/httpd.www/wp-admin/update.php(53):
iframe_footer()
#27 {main}
thrownI just noticed that on some page (at the top part of the mobile version of this page https://www.cripta747.it/cripta747/) appear the following error
Here the text
Warning: Undefined array key 24 in /customers/6/1/0/cripta747.it/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php on line 698 Warning: Undefined array key 24 in /customers/6/1/0/cripta747.it/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php on line 699 Warning: Undefined array key 24 in /customers/6/1/0/cripta747.it/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php on line 711Please, any help with this?
Thank you in advance!
Alexadnro -
hey i dont see the error on your page anymore:
https://www.cripta747.it/cripta747/do you still have an issue with this?
-
Hi Armin
I am also having this problem. I noticed the site was broken the other day, I believe wordpress may have updated automatically so I tried downgrading to an earlier version but this didn't fix it. I have tried disabling plugins/css but it doesn't help. Here's the info:
Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with your theme, Lay Theme.
First, visit your website (https://dossierindustries.co/) and check for any visible issues. Next, visit the page where the error was caught (https://dossierindustries.co/wp-admin/edit.php?post_type=page) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.
To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.8.1
Active theme: Lay Theme (version 9.0.9)
Current plugin: (version )
PHP version 8.1.32Error Details
An error of type E_ERROR was caused in line 297 of the file /home/userdossier/public_html/wp-content/themes/lay/setup/setup.php. Error message: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, string given in /home/userdossier/public_html/wp-content/themes/lay/setup/setup.php:297
Stack trace:
#0 /home/userdossier/public_html/wp-includes/class-wp-hook.php(324): Setup->add_to_page_and_post_title_in_admin_overview()
#1 /home/userdossier/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /home/userdossier/public_html/wp-admin/includes/template.php(2350): apply_filters()
#3 /home/userdossier/public_html/wp-admin/includes/template.php(2251): get_post_states()
#4 /home/userdossier/public_html/wp-admin/includes/class-wp-posts-list-table.php(1156): _post_states()
#5 /home/userdossier/public_html/wp-admin/includes/class-wp-posts-list-table.php(1077): WP_Posts_List_Table->column_title()
#6 /home/userdossier/public_html/wp-admin/includes/class-wp-list-table.php(1793): WP_Posts_List_Table->_column_title()
#7 /home/userdossier/public_html/wp-admin/includes/class-wp-posts-list-table.php(1444): WP_List_Table->single_row_columns()
#8 /home/userdossier/public_html/wp-admin/includes/class-wp-posts-list-table.php(941): WP_Posts_List_Table->single_row()
#9 /home/userdossier/public_html/wp-admin/includes/class-wp-posts-list-table.php(813): WP_Posts_List_Table->_display_rows_hierarchical()
#10 /home/userdossier/public_html/wp-admin/includes/class-wp-list-table.php(1712): WP_Posts_List_Table->display_rows()
#11 /home/userdossier/public_html/wp-admin/includes/class-wp-list-table.php(1639): WP_List_Table->display_rows_or_placeholder()
#12 /home/userdossier/public_html/wp-admin/edit.php(503): WP_List_Table->display()
#13 {main}
thrownHope you can help, many thanks for your great work with this theme!
-
It says that 'the theme is broken'. I have tried reinstalling Laytheme with a fresh copy but this did not help either
-
Hey Armin I have fixed this. I deleted the page with the project list mentioned in the error details :)
-
oh! i can see from the error report that i need to insert a check if a certain variable is an array. i did so now. with the next update this error shouldnt happen anymore, sorry about this!
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
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