Warning: call_user_func_array() expects parameter 1 - wordpress

Still getting this error message in debug mode despite trying the following: manually deleting and replacing the wp-includes and wp-admin directories. Renamed the plugins directory, Updating the class-http.php file as per https://github.com/WordPress/WordPress/blob/master/wp-includes/class-http.php, imported a backup of sql tables (a couple of years old) in MYSQL
Deprecated: File class-http.php is deprecated since version 5.9.0! Use wp-includes/class-wp-http.php instead. in /home2/dvinegrindz/public_html/wpr/wp-includes/functions.php on line 5569
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_enable_block_templates' not found or invalid function name in /home2/dvinegrindz/public_html/wpr/wp-includes/class-wp-hook.php on line 307
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_schedule_https_detection' not found or invalid function name in /home2/dvinegrindz/public_html/wpr/wp-includes/class-wp-hook.php on line 307
Fatal error: Uncaught Error: Call to undefined function get_allowed_block_template_part_areas() in /home2/dvinegrindz/public_html/wpr/wp-includes/blocks/template-part.php:168 Stack trace: #0 /home2/dvinegrindz/public_html/wpr/wp-includes/blocks/template-part.php(194): build_template_part_block_variations() #1 /home2/dvinegrindz/public_html/wpr/wp-includes/class-wp-hook.php(307): register_block_core_template_part('') #2 /home2/dvinegrindz/public_html/wpr/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #3 /home2/dvinegrindz/public_html/wpr/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #4 /home2/dvinegrindz/public_html/wpr/wp-settings.php(557): do_action('init') #5 /home2/dvinegrindz/public_html/wpr/wp-config.php(92): require_once('/home2/dvinegri...') #6 /home2/dvinegrindz/public_html/wpr/wp-load.php(50): require_once('/home2/dvinegri...') #7 /home2/dvinegrindz/public_html/wpr/wp-blog-header.php(13): require_once('/home2/dvinegri...') #8 /home2/dvinegrindz/public_html/index.php(17): require( in /home2/dvinegrindz/public_html/wpr/wp-includes/blocks/template-part.php on line 168

The message says that you point to class-http.php in your functions.php on line 5569.
class-http.php is deprecated so no longer supported and you have to replace it with wp-includes/class-wp-http.php
So look in your functions.php where you point to class-http.php (should be line 5569) and replace it ... point to the new file wp-includes/class-wp-http.php

Related

Uncaught Error: Call to undefined function cache_users()

Error on the site under cms wordpress.
The site just suddenly stopped working.
Uncaught Error: Call to undefined function cache_users() in /www/wwwroot/beavers-auto.com/wp-includes/class-wp-user-query.php:843 Stack trace:
#0 /www/wwwroot/beavers-auto.com/wp-includes/class-wp-user-query.php(79): WP_User_Query->query()
#1 /www/wwwroot/beavers-auto.com/wp-includes/user.php(763): WP_User_Query->__construct()
#2 /www/wwwroot/beavers-auto.com/wp-content/plugins/stm-post-type/stm-post-type.php(281): get_users()
#3 /www/wwwroot/beavers-auto.com/wp-settings.php(447): include_once('...')
#4 /www/wwwroot/beavers-auto.com/wp-config.php(84): require_once('...')
#5 /www/wwwroot/beavers-auto.com/wp-load.php(50): require_once('...')
#6 /www/wwwroot/beavers-auto.com/wp-blog-header.php(13): require_once('...')
#7 /www/wwwroot/beavers-auto.com/index.php(17): require('...')
#8 {main} thrown in /www/wwwroot/beavers-auto.com/wp-includes/class-wp-user-query.php on line 843
Nothing happens when changing the code.
Looks like a plugin conflict. You should uninstall plugins one by one to see which one is causing the problem and you should probably start with stm-post-type plugin.
Hope it helps
Update the stm-post-type plugin to 4.8.5, this is solved there.

Wordpress Fatal Error Call to Undefined Function Theme Hello-Elementor

I was doing some updates on my hosting when the loading of my website failed.
This is the error.
Fatal error: Uncaught Error: Call to undefined function cb_child_process_location() in /homepages/5/d848895393/htdocs/clickandbuilds/WordPress/Mywebsite/wp-content/themes/hello-elementor-child/header.php:23 Stack trace: #0 /homepages/5/d848895393/htdocs/clickandbuilds/WordPress/Mywebsite/wp-includes/template.php(770): require_once() #1 /homepages/5/d848895393/htdocs/clickandbuilds/WordPress/Mywebsite/wp-includes/template.php(716): load_template('/homepages/5/d8...', true, Array) #2 /homepages/5/d848895393/htdocs/clickandbuilds/WordPress/Mywebsite/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #3 /homepages/5/d848895393/htdocs/clickandbuilds/WordPress/Mywebsite/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(9): get_header() #4 /homepages/5/d848895393/htdocs/clickandbuilds/WordPress/Mywebsite/wp-includes/template-loader.php(106): include('/homepages/5/d8...') #5 /homepages/5/d848895393/htdocs/clickandbuilds/WordPress/Mywebsite/wp-blog-header.php(19): require_once('/homepages/5/d8...') # in /homepages/5/d848895393/htdocs/clickandbuilds/WordPress/Mywebsite/wp-content/themes/hello-elementor-child/header.php on line 23
If I switch the theme to the original (Hello-Elementor) the body loads successfully but it doesnt load the header, I dont know why.
Any clue of where is the issue or how can I fix the child theme?
Thanks in advice.

How can I enable REST API on my wordpress website?

I tried with this line, is it the right way?
https://nplus1bicycles.com/?rest_route=/
I got this error
Fatal error: Uncaught Error: Undefined class constant 'DOWNLOAD_JOBS' in /home/nplusbic/public_html/wp-content/plugins/wpml-translation-management/classes/ATE/REST/Download.php:27
Stack trace:
#0 /home/nplusbic/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/Adaptor.php(18): WPML\TM\ATE\REST\Download->get_routes()
#1 /home/nplusbic/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/Base.php(23): WPML\Rest\Adaptor->add_hooks()
#2 /home/nplusbic/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(151): WPML\Rest\Base->add_hooks()
#3 /home/nplusbic/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(121): WPML_Action_Filter_Loader->run_factory(Object(WPML\TM\REST\FactoryLoader))
#4 /home/nplusbic/public_html/wp-includes/class-wp-hook.php(288): WPML_Action_Filter_Loader->deferred_loader(Object(WP_REST_Server))
#5 /home/nplusbic/public_h in /home/nplusbic/public_html/wp-content/plugins/wpml-translation-management/classes/ATE/REST/Download.php on line 27
There has been a critical error on your website.
You don't have to enable it.
https://yoursite.com/wp-json/namespace/route
Here is a good resource on using it:
Rest API reference

Wordpress Notice: Constant FS_CHMOD_DIR already defined in Wp-Cofig

All of sudden after updating to Wordpress I am getting the following error:
Notice: Constant FS_CHMOD_DIR already defined in /home/mink7/public_html/sites/anandmenon.in/wp-config.php on line 101
Notice: Constant FS_CHMOD_FILE already defined in /home/mink7/public_html/sites/anandmenon.in/wp-config.php on line 101
http://anandmenon.in/

WordPress warning refers to WooCommerce at top single webpage only

I get the following displayed at the top of this web page...
http://hippiechickoriginals.com/product-category/manifesto-mania/
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'woocommerce_price_filter' not found or invalid function name in /home/hippiech/public_html/wp-includes/plugin.php on line 214
Warning: array_unique() expects parameter 1 to be array, null given in /home/hippiech/public_html/wp-content/plugins/woocommerce/includes/class-wc-query.php on line 370
Thank you again for your considerations.
Best regards,
Marc

Resources