Uncaught TypeError: str_replace(): Argument #2 ($replace) must be of type array|string

Hello,

we get the error

Deprecated: Creation of dynamic property Mfn_Importer::$page is deprecated in ....httpdocs/wp-content/themes/betheme/functions/importer/class-mfn-importer.php 

How we can find the error source?

Fatal error: Uncaught TypeError: str_replace(): Argument #2 ($replace) must be of type array|string, WP_Error given in /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/modules/class-mfn-dynamic-data.php:35 Stack trace: #0 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/modules/class-mfn-dynamic-data.php(35): str_replace('{permalink:24:t...', Object(WP_Error), '{permalink:24:t...') #1 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/theme-functions.php(16): MfnDynamicData->render('{permalink:24:t...', false) #2 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/theme-shortcodes.php(7370): be_dynamic_data('{permalink:24:t...') #3 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/builder/class-mfn-builder-items.php(670): sc_icon_box_2(Array, 'Hardware') #4 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/builder/class-mfn-builder-front.php(2339): Mfn_Builder_Items::item_icon_box_2(Array, false) #5 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/builder/class-mfn-builder-front.php(2136): Mfn_Builder_Front->show_items(Array, 3, false, false) #6 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/builder/class-mfn-builder-front.php(1270): Mfn_Builder_Front->show_wraps(Array, 0, false) #7 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/builder/class-mfn-builder-front.php(285): Mfn_Builder_Front->show_sections(Array, false) #8 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/modules/class-mfn-megamenu.php(44): Mfn_Builder_Front->show() #9 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/visual-builder/classes/header-template-items-class.php(259): MfnMegaMenu->render() #10 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-includes/class-wp-walker.php(147): Mfn_Vb_Header_Tmpl->start_el('<li id="menu-it...', Object(WP_Post), 0, Object(stdClass)) #11 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-includes/class-wp-walker.php(247): Walker->display_element(Object(WP_Post), Array, 0, 0, Array, '<li id="menu-it...') #12 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-includes/nav-menu-template.php(616): Walker->walk(Array, 0, Object(stdClass)) #13 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-includes/nav-menu-template.php(236): walk_nav_menu_tree(Array, 0, Object(stdClass)) #14 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/theme-shortcodes.php(402): wp_nav_menu(Object(stdClass)) #15 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/builder/class-mfn-builder-items.php(71): sc_header_menu(Array) #16 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/builder/class-mfn-builder-front.php(2339): Mfn_Builder_Items::item_header_menu(Array, false) #17 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/builder/class-mfn-builder-front.php(2136): Mfn_Builder_Front->show_items(Array, 0, false, false) #18 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/builder/class-mfn-builder-front.php(1270): Mfn_Builder_Front->show_wraps(Array, 1, false) #19 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/builder/class-mfn-builder-front.php(285): Mfn_Builder_Front->show_sections(Array, false) #20 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/includes/header-template.php(80): Mfn_Builder_Front->show(false, false) #21 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-includes/template.php(787): require('/var/www/vhosts...') #22 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-includes/template.php(720): load_template('/var/www/vhosts...', false, Array) #23 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #24 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/header.php(81): get_template_part('includes/header', 'template', Array) #25 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-includes/template.php(785): require_once('/var/www/vhosts...') #26 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-includes/template.php(720): load_template('/var/www/vhosts...', true, Array) #27 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #28 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/page.php(10): get_header() #29 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-includes/template-loader.php(106): include('/var/www/vhosts...') #30 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-blog-header.php(19): require_once('/var/www/vhosts...') #31 /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/index.php(17): require('/var/www/vhosts...') #32 {main} thrown in /var/www/vhosts/hosting122488.a2fc1.netcup.net/flow7-com/httpdocs/wp-content/themes/betheme/functions/modules/class-mfn-dynamic-data.php on line 35

www.flow7.com

Thank you

Comments

Sign In or Register to comment.