Components get "lost"

Hey there,
yesterday I started with a new site and designed a whole bunch of components. All was fine and worked very well.

However, when logging in today there was a 500 error on the homepage. One component was marked as “undefined” and in the list of components there is only one component left. Although I can still use all existing components (without the one that was marked as “undefined” and probably caused that 500 Error), in the List of Components there is only the one component left, so I cannot add any new components any more.

I know there were some problems with the latest updates regarding custom classes get lost when saving a template and so… The only thing I did on that site after creating the components (it worked perfectly fine back then) was editing the “single product” template and saved it a few times. So there might be a connection between those bugs?!

Cheers
Wolfgang

Hello @Wolfgang,

A 500 code error caused by that undefined component could potentially prevent you from retrieving the other Components. If they are still accessible, it means that they are not lost.

Would it be possible to send your debug log to support@cwicly.com so we can take a look at what could potentially be going wrong?

I don’t believe the external classes issue is related.

Thanks in advance.

Cheers,

Hey Louis,

thanks for your fast reply. But then there would still be an “undefined” component where there shouldn’t be one…because I’ve nothing changed on components in the meantime.

Also deleting that component from the page clears out that error, but if I reload the editor the components List is still not available.

I didn’t mean that it’s related to the external classes issue, I ment that it’s maybe related to the thing that deleted global classes when saving something in the website-editor… Cause that is the only thing I’ve done which affects anything that happens on a global base, but probably you’re right.

The debug.log is relatively empty since I’ve cleaned out that component so I can save that page again and cleaned out that error.

I can give you access to that site if you want to?

[16-Dec-2023 14:47:28 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/formatting.php:3507
Stack trace:
#0 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/class-wp-hook.php(324): convert_smilies()
#1 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1863): apply_filters()
#3 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(385): WP_REST_Posts_Controller->prepare_item_for_response()
#4 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(1193): WP_REST_Posts_Controller->get_items()
#5 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(1041): WP_REST_Server->respond_to_request()
#6 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(431): WP_REST_Server->dispatch()
#7 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/rest-api.php(424): WP_REST_Server->serve_request()
#8 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/class-wp-hook.php(324): rest_api_loaded()
#9 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/plugin.php(565): WP_Hook->do_action()
#11 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/class-wp.php(418): do_action_ref_array()
#12 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/class-wp.php(813): WP->parse_request()
#13 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/functions.php(1336): WP->main()
#14 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-blog-header.php(16): wp()
#15 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/index.php(17): require('/var/www/vhosts...')
#16 {main}
  thrown in /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/formatting.php on line 3507
[16-Dec-2023 14:47:29 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/formatting.php:3507
Stack trace:
#0 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/class-wp-hook.php(324): convert_smilies()
#1 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1863): apply_filters()
#3 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(385): WP_REST_Posts_Controller->prepare_item_for_response()
#4 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(1193): WP_REST_Posts_Controller->get_items()
#5 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(1041): WP_REST_Server->respond_to_request()
#6 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(431): WP_REST_Server->dispatch()
#7 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/rest-api.php(424): WP_REST_Server->serve_request()
#8 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/class-wp-hook.php(324): rest_api_loaded()
#9 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/plugin.php(565): WP_Hook->do_action()
#11 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/class-wp.php(418): do_action_ref_array()
#12 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/class-wp.php(813): WP->parse_request()
#13 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/functions.php(1336): WP->main()
#14 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-blog-header.php(16): wp()
#15 /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/index.php(17): require('/var/www/vhosts...')
#16 {main}
  thrown in /var/www/vhosts/my-domain-name.at/hufschuh.my-domain-name.at/httpdocs/wp-includes/formatting.php on line 3507

Note, that I’ve changed the domain name to “my-domain-name.at” here.

Cheers
Wolfgang

Hello @Wolfgang,

Sorry for not replying sooner.

Thanks for the details and debug.
The error does sound unusual… Would it be possible to have temporary access to the site?

Thanks in advance.

Cheers,