Conversation
supportAfter I upgraded to Search Regex v3.3.0: Avada Child (Version 1.0.0), Search Regex (Version 3.3.0), PHP-Version 8.4.15: An E_ERROR error occurred on line 82 of the file /data/wordpress/htdocs/wp-content/plugins/search-regex/search-regex.php. Error message: Uncaught Error: Failed opening required ‘/data/wordpress/htdocs/wp-content/plugins/search-regex/includes/search-regex-admin.php’ (include_path=‘.:/usr/share/php’) in /data/wordpress/htdocs/wp-content/plugins/search-regex/search-regex.php:82 The page I need help with: [ log in to see the link]
The file search-regex.php does not have 82 lines, and search-regex-admin.php is not part of the plugin or loaded by the plugin. Did the plugin update correctly?
Strange. You’re right, the file does not have 82 lines. The installation seems to be ok, I can disable and enable the plugin without any errors. The log files show no error as well. I’ve no idea why I got this mail from my server. The functionality of the website is 100% ok. Perhaps you can see anything in the stack trace I got as well? #0 /data/wordpress/htdocs/wordpress/wp-includes/class-wp-hook.php(341): searchregex_start_rest(Object(WP_REST_Server)) #1 /data/wordpress/htdocs/wordpress/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #2 /data/wordpress/htdocs/wordpress/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #3 /data/wordpress/htdocs/wordpress/wp-includes/rest-api.php(636): do_action('rest_api_init', Object(WP_REST_Server)) #4 /data/wordpress/htdocs/wordpress/wp-includes/rest-api.php(594): rest_get_server() #5 /data/wordpress/htdocs/wordpress/wp-includes/rest-api.php(2981): rest_do_request(Object(WP_REST_Request)) #6 [internal function]: rest_preload_api_request(Array, '/jetpack/v4/con...') #7 /data/wordpress/htdocs/wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php(148): array_reduce(Array, 'rest_preload_ap...') #8 /data/wordpress/htdocs/wordpress/wp-includes/class-wp-hook.php(341): Automattic\WooCommerce\Internal\Admin\Settings->add_component_settings(Array) #9 /data/wordpress/htdocs/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #10 /data/wordpress/htdocs/wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminSharedSettings.php(73): apply_filters('woocommerce_adm...', Array) #11 /data/wordpress/htdocs/wp-content/plugins/woocommerce/src/Blocks/Assets/AssetDataRegistry.php(274): Automattic\WooCommerce\Internal\Admin\WCAdminSharedSettings->{closure:Automattic\WooCommerce\Internal\Admin\WCAdminSharedSettings::on_woocommerce_blocks_loaded():67}() #12 /data/wordpress/htdocs/wp-content/plugins/woocommerce/src/Blocks/Assets/AssetDataRegistry.php(390): Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->execute_lazy_data() #13 /data/wordpress/htdocs/wordpress/wp-includes/class-wp-hook.php(341): Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->enqueue_asset_data('') #14 /data/wordpress/htdocs/wordpress/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #15 /data/wordpress/htdocs/wordpress/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #16 /data/wordpress/htdocs/wordpress/wp-admin/includes/template.php(2226): do_action('admin_print_foo...') #17 /data/wordpress/htdocs/wordpress/wp-admin/update.php(53): iframe_footer() #18 {main} thrown
The error is what I might expect from a previous version of the plugin, if the files didn’t exist. Is your site cached in anyway? Maybe something needed clearing.
I’ve released version 3.3.1 which may help prevent this kind of thing, which I think is related to caching.
Thank you!
The file search-regex.php does not have 82 lines, and search-regex-admin.php is not part of the plugin or loaded by the plugin. Did the plugin update correctly?
Strange. You’re right, the file does not have 82 lines. The installation seems to be ok, I can disable and enable the plugin without any errors. The log files show no error as well. I’ve no idea why I got this mail from my server. The functionality of the website is 100% ok. Perhaps you can see anything in the stack trace I got as well? #0 /data/wordpress/htdocs/wordpress/wp-includes/class-wp-hook.php(341): searchregex_start_rest(Object(WP_REST_Server)) #1 /data/wordpress/htdocs/wordpress/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #2 /data/wordpress/htdocs/wordpress/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #3 /data/wordpress/htdocs/wordpress/wp-includes/rest-api.php(636): do_action('rest_api_init', Object(WP_REST_Server)) #4 /data/wordpress/htdocs/wordpress/wp-includes/rest-api.php(594): rest_get_server() #5 /data/wordpress/htdocs/wordpress/wp-includes/rest-api.php(2981): rest_do_request(Object(WP_REST_Request)) #6 [internal function]: rest_preload_api_request(Array, '/jetpack/v4/con...') #7 /data/wordpress/htdocs/wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php(148): array_reduce(Array, 'rest_preload_ap...') #8 /data/wordpress/htdocs/wordpress/wp-includes/class-wp-hook.php(341): Automattic\WooCommerce\Internal\Admin\Settings->add_component_settings(Array) #9 /data/wordpress/htdocs/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #10 /data/wordpress/htdocs/wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminSharedSettings.php(73): apply_filters('woocommerce_adm...', Array) #11 /data/wordpress/htdocs/wp-content/plugins/woocommerce/src/Blocks/Assets/AssetDataRegistry.php(274): Automattic\WooCommerce\Internal\Admin\WCAdminSharedSettings->{closure:Automattic\WooCommerce\Internal\Admin\WCAdminSharedSettings::on_woocommerce_blocks_loaded():67}() #12 /data/wordpress/htdocs/wp-content/plugins/woocommerce/src/Blocks/Assets/AssetDataRegistry.php(390): Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->execute_lazy_data() #13 /data/wordpress/htdocs/wordpress/wp-includes/class-wp-hook.php(341): Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->enqueue_asset_data('') #14 /data/wordpress/htdocs/wordpress/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #15 /data/wordpress/htdocs/wordpress/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #16 /data/wordpress/htdocs/wordpress/wp-admin/includes/template.php(2226): do_action('admin_print_foo...') #17 /data/wordpress/htdocs/wordpress/wp-admin/update.php(53): iframe_footer() #18 {main} thrown
The error is what I might expect from a previous version of the plugin, if the files didn’t exist. Is your site cached in anyway? Maybe something needed clearing.
I’ve released version 3.3.1 which may help prevent this kind of thing, which I think is related to caching.
Thank you!