Critical error in width.php

I was trying to update my themes and accidentally activated the twentytwentythree theme instead of updating it. Realizing what I had done I panicked and switched to Cornerstone for the theme in stead of my child X-Pro theme. To make matters worse, I think I updated Cornerstone and not X Pro. Now I am getting critical errors and can’t access WordPress admin for my site nor is the site serving up any content.

Here are the errors:

[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 72
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 74
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 98
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 117
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 72
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 74
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 98
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 117
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 72
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 74
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 98
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 117
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 72
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 74
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 98
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 117
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 182
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 193
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 182
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 193
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 182
[18-Dec-2023 18:22:21 UTC] PHP Warning:  A non-numeric value encountered in /home/mastevh1/public_html/wp-content/themes/x/framework/functions/global/admin/thumbnails/width.php on line 193
[18-Dec-2023 18:22:23 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /home/mastevh1/public_html/wp-includes/class-wp-hook.php on line 324

I fixed the problem. The issue was that the “X” theme was activated. I manually updated the option_vaules of the ‘template’ and ‘stylesheet’ option_names in the database to the twentytwentyfour theme and was able to login to wp-admin. Then I switched back to my pro-child theme again and it is all back.

Hey Jeff,

We’re glad that you’re able to figured it out.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.