I received an email from WordPress that there’s a critical error on my website. Kindly see the error below:
An error of type E_ERROR was caused in line 645 of the file
/home/364600.cloudwaysapps.com/dbzrfhvxkb/public_html/wp-content/plugins/bp-registration-options/includes/admin.php.
Error message: Uncaught Error: Call to undefined function
bp_registration_options_admin_footer() in
/home/364600.cloudwaysapps.com/dbzrfhvxkb/public_html/wp-content/plugins/bp-registration-options/includes/admin.php:645
Stack trace:
#0 /home/364600.cloudwaysapps.com/dbzrfhvxkb/public_html/wp-includes/class-wp-hook.php(308):
bp_registration_options_settings()
#1 /home/364600.cloudwaysapps.com/dbzrfhvxkb/public_html/wp-includes/class-wp-hook.php(332):
WP_Hook->apply_filters()
#2 /home/364600.cloudwaysapps.com/dbzrfhvxkb/public_html/wp-includes/plugin.php(517):
WP_Hook->do_action()
#3 /home/364600.cloudwaysapps.com/dbzrfhvxkb/public_html/wp-admin/admin.php(259):
do_action()
#4 {main}
? thrown
I looked for bp_registration_options_admin_footer()
function and I don’t see it so I added an empty function in /bp-registration-options/includes/admin.php
for now.
function bp_registration_options_admin_footer(){
}
Where do I get the missing function? Will you add this on your next update?
]]>the response is
<br />
<b>Fatal error</b>: Uncaught Error: Call to undefined method CoCart_Products_V2_Controller::add_meta_query() in /var/www/html/web/app/plugins/cart-rest-api-for-woocommerce/includes/api/cocart/v1/products/class-cocart-products-controller.php:592
Stack trace:
#0 /var/www/html/web/app/plugins/cart-rest-api-for-woocommerce/includes/api/cocart/v2/products/class-cocart-products-controller.php(94): CoCart_Products_Controller->prepare_objects_query(Object(WP_REST_Request))
#1 /var/www/html/web/wp/wp-includes/rest-api/class-wp-rest-server.php(1141): CoCart_Products_V2_Controller->get_items(Object(WP_REST_Request))
#2 /var/www/html/web/wp/wp-includes/rest-api/class-wp-rest-server.php(988): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/cocart/v2/prod...', Array, NULL)
#3 /var/www/html/web/wp/wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch(Object(WP_REST_Request))
#4 /var/www/html/web/wp/wp-includes/rest-api.php(386): WP_REST_Server->serve_request('/cocart/v2/prod...')
#5 /var/www/html/web/wp/wp- in <b>/var/www/html/web/app/plugins/cart-rest-api-for-woocommerce/includes/api/cocart/v1/products/class-cocart-products-controller.php</b> on line <b>592</b><br />
the add_meta_query
method is not present inside CoCart_Products_V2_Controller
, meaning that multiple meta queries should currently not work. further more wc_get_min_max_price_meta_query()
is depricated since wc 3.6
add_meta_query does not exist inside CoCart_Products_Controller nor WP_REST_Controller nor wordpress.
here is a solution for the depricated issue (not tested, but taken from wc-depricated-functions.php and modified with the variables from CoCart_Products_Controller):
if ( ! empty( $request['min_price'] ) || ! empty( $request['max_price'] ) ) {
$current_min_price = isset( $request['min_price'] ) ? floatval( $request['min_price'] ) : 0;
$current_max_price = isset( $request['max_price'] ) ? floatval( $request['max_price'] ) : PHP_INT_MAX;
$args['meta_query'] = $this->add_meta_query( $args, apply_filters(
'woocommerce_get_min_max_price_meta_query',
array(
'key' => '_price',
'value' => array( $current_min_price, $current_max_price ),
'compare' => 'BETWEEN',
'type' => 'DECIMAL(10,' . wc_get_price_decimals() . ')',
),
$args
));
}
]]>The plugin is causing the following fatal error.
Fatal error: Uncaught Error: Call to undefined method ParcelPerfectApiPayload::factorise()
]]>Is there a way to duplicate one of my exciting links I created already.
I miss this function inside this section.
edit.php?post_type=pretty-link
Error Details
=============
An error of type E_ERROR was caused in line 61 of the file /var/www/vhosts/domainname.com/httpdocs/wp-content/plugins/yith-woocommerce-ajax-search/plugin-fw/lib/yit-plugin-licence.php. Error message: Uncaught Error: Call to undefined function YITH_Plugin_Licence() in /var/www/vhosts/domainname.com/httpdocs/wp-content/plugins/yith-woocommerce-ajax-search/plugin-fw/lib/yit-plugin-licence.php:61
Stack trace:
#0 /var/www/vhosts/domainname.com/httpdocs/wp-content/plugins/yith-woocommerce-cart-messages-premium/class.yith-woocommerce-cart-messages-premium.php(441): YIT_Plugin_Licence->register(‘yith-woocommerc…’, ‘eqweqwe12423sdqwe…’, ‘yith-woocommerc…’)
#1 /var/www/vhosts/domainname.com/httpdocs/wp-includes/class-wp-hook.php(286): YWCM_Cart_Messages_Premium->register_plugin_for_activation(”)
#2 /var/www/vhosts/domainname.com/httpdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#3 /var/www/vhosts/domainname.com/httpdocs/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#4 /var/www/vhosts/domainname.com/httpdocs/wp-settings.php(546): do_action(‘wp_loaded’)
#5 /var/www/vhosts/domainname.com/httpdocs/wp-config.php(82): require_once(‘/var/www/vhosts…’)
#6 /var/ww
I just installed the latest version of the plugin (1.3.2.6) on WordPress 5.1.1 (at time of writing also the latest version).
After I installed the plugin, and switched on the “I’ve read and understood the use of this plugin” (or something like that), and pressed the “save” button, I got the error below. Sadly, I had to remove the plugin again to get the site to function again. From the error it seems a function is missing from the main plugin class (maybe a slight mistake during checking in the code on the SVN repository?.
Please give me a heads up after you’ve found the time to fix it, since the plugin is very helpful!
If you’d like me to investigate the issue any further feel free to let me know.
Fatal error: Uncaught Error: Call to undefined function WpAssetCleanUp\json_last_error() in USER_DIRECTORY/wp-content/plugins/wp-asset-clean-up/classes/Settings.php:262
Stack trace:
#0 USER_DIRECTORY/wp-content/plugins/wp-asset-clean-up/classes/Main.php(237): WpAssetCleanUp\Settings->getAll()
#1 USER_DIRECTORY/wp-includes/class-wp-hook.php(286): WpAssetCleanUp\Main->triggersAfterInit('')
#2 USER_DIRECTORY/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#3 USER_DIRECTORY/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#4 USER_DIRECTORY/wp-settings.php(505): do_action('init')
#5 USER_DIRECTORY/wp-config.php(92): require_once('/home/cizapeo34...')
#6 /home/cizapeo342/domains/fortranbigirimana in USER_DIRECTORY/wp-content/plugins/wp-asset-clean-up/classes/Settings.php on line 262
]]>Notice: Undefined index: submit in /www/wp-content/plugins/srizon-facebook-album/admin/srizon-fb-common-back.php on line 22
Apparently there’s an isset missing for the $_POST[‘submit’] variable, under the ‘Common Options’ Page.
Tiny stuff, but, in case you missed, I wanted you to know.
Greetings. Thanks for the plugin
]]>