Critical Error when attempting to edit pages

Description:

I am attempting to edit a photos page and am getting the following error as indicated by the below stack trace:

[07-Feb-2023 20:39:50 UTC] PHP Fatal error:  Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /var/www/html/wp-includes/class-wp-query.php:3590

Stack trace:
#0 /var/www/html/wp-includes/class-wp-query.php(3590): array_filter(NULL, 'is_numeric')
#1 /var/www/html/wp-includes/query.php(1004): WP_Query->the_post()
#2 /var/www/html/wp-content/plugins/cwicly/core/includes/dynamic/cc-content.php(57): the_post()
#3 /var/www/html/wp-content/plugins/cwicly/core/includes/dynamic/render.php(310): cc_content_maker(Object(WP_Block))
#4 /var/www/html/wp-content/plugins/cwicly/core/includes/dynamic/render.php(276): cc_get_dyn('postcontent', Array, Array, Object(WP_Block))
#5 [internal function]: {closure}(Array)
#6 /var/www/html/wp-content/plugins/cwicly/core/includes/dynamic/render.php(280): preg_replace_callback('/(?!{}){(?!"|&q...', Object(Closure), '\n<div id="conte...')
#7 /var/www/html/wp-content/plugins/cwicly/core/includes/dynamic/render.php(259): cc_parser('\n<div id="conte...', Array, Object(WP_Block))
#8 /var/www/html/wp-content/plugins/cwicly/core/includes/dynamic-blocks/content/content.php(24): cc_render('\n<div id="conte...', Array, Object(WP_Block))
#9 /var/www/html/wp-includes/class-wp-block.php(256): cc_content_render_callback(Array, '\n<div id="conte...', Object(WP_Block))
#10 /var/www/html/wp-includes/blocks.php(1051): WP_Block->render()
#11 /var/www/html/wp-includes/blocks.php(1089): render_block(Array)
#12 /var/www/html/wp-includes/class-wp-hook.php(308): do_blocks('<!-- wp:cwicly/...')
#13 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters('<!-- wp:cwicly/...', Array)
#14 /var/www/html/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php(607): apply_filters('the_content', '<!-- wp:cwicly/...')
#15 /var/www/html/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php(416): WP_REST_Revisions_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request))
#16 /var/www/html/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php(308): WP_REST_Autosaves_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request))
#17 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1171): WP_REST_Autosaves_Controller->get_items(Object(WP_REST_Request))
#18 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wp/v2/pages/(?...', Array, NULL)
#19 /var/www/html/wp-includes/rest-api.php(535): WP_REST_Server->dispatch(Object(WP_REST_Request))
#20 /var/www/html/wp-includes/rest-api.php(2884): rest_do_request(Object(WP_REST_Request))
#21 [internal function]: rest_preload_api_request(Array, '/wp/v2/pages/10...')
#22 /var/www/html/wp-includes/block-editor.php(638): array_reduce(Array, 'rest_preload_ap...', Array)
#23 /var/www/html/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context))
#24 /var/www/html/wp-admin/post.php(187): require('/var/www/html/w...')
#25 {main}
  thrown in /var/www/html/wp-includes/class-wp-query.php on line 3590
50.113.28.58 - - [07/Feb/2023:10:39:50 -1000] "GET /wp-admin/post.php?post=100&action=edit HTTP/1.1" 500 3188 "https://www.[redacteddomain].com/photos/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"

Step-by-step reproduction instructions:

Login to website, go to photos page click edit page in the Wordpress navigation bar at the top of the page and be taken to a Wordpress page that states

There has been a critical error on this website. Please check your site admin email inbox for instructions.

Attempt to edit the page from the pages list within the admin area of the Wordpress site and receive the same error.

Environment info

  • WordPress version: 5.9.3
  • Gutenberg Plugin version: -
  • Cwicly Plugin version: 1.2.9.4.6
  • Cwicly Theme version: 1.0.3

Hello @rrbailey89,

Apologies for the trouble you’re experiencing on your installation.

To further debug and get this fixed as soon as possible, can you possibly send temporary login info to support@cwicly.com.

Thanks in advance.

Okay, I sent you the email.

@Louis @Araminta i have the same issue. and i needed to launch the website today. how did you fixed this?

Hi,

Would you be so kind as to contact support@cwicly.com with temporary access details and a copy of the debug log.

Best regards,
Johnny