Page editor crashes on any page
-
In admin when I click any page to edit it I get an error. Everything else in admin and on the site works fine. I have turned off Litespeed cache plugin and cleared cookies and browser cache. I overwrote the files named as problems in the error log. All plugins, theme and WP are up to date.
From the error log:
[10-Oct-2025 17:12:17 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “new_loop_shop_per_page” not found or invalid function name in /home/kahobgyd/thesunmaker.com/wp-includes/class-wp-hook.php:324
Stack trace: 0 /home/kahobgyd/thesunmaker.com/wp-includes/plugin.php(205): WP_Hook->apply_filters() 1 /home/kahobgyd/thesunmaker.com/wp-content/plugins/woocommerce/includes/class-wc-query.php(534): apply_filters() 2 /home/kahobgyd/thesunmaker.com/wp-content/plugins/woocommerce/includes/class-wc-query.php(420): WC_Query->product_query() 3 /home/kahobgyd/thesunmaker.com/wp-includes/class-wp-hook.php(324): WC_Query->pre_get_posts() 4 /home/kahobgyd/thesunmaker.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 5 /home/kahobgyd/thesunmaker.com/wp-includes/plugin.php(565): WP_Hook->do_action() 6 /home/kahobgyd/thesunmaker.com/wp-includes/class-wp-query.php(1910): do_action_ref_array() 7 /home/kahobgyd/thesunmaker.com/wp-includes/class-wp-query.php(3949): WP_Query->get_posts() 8 /home/kahobgyd/thesunmaker.com/wp-includes/class-wp.php(701): WP_Query->query() 9 /home/kahobgyd/thesunmaker.com/wp-includes/class-wp.php(821): WP->query_posts() 10 /home/kahobgyd/thesunmaker.com/wp-includes/functions.php(1342): WP->main() 11 /home/kahobgyd/thesunmaker.com/wp-blog-header.php(16): wp() 12 /home/kahobgyd/thesunmaker.com/index.php(17): require(‘/home/kahobgyd/…’) 13 {main}thrown in /home/kahobgyd/thesunmaker.com/wp-includes/class-wp-hook.php on line 324
You must be logged in to reply to this topic.