Fatal error???
-
Hi,
I hope you can help me with Hotelier Plugin, otherwise my month of labor will be useless…..
I created a site for a marketplace, but it didn’t pass QA testing because they tried to open the archive of a child theme on TasteWP where they test all sites, and immediately saw a fatal error when trying to open the “Available Rooms” page:If the error is related to some plugin, you can disable all plugins in TasteWP.com dashboard.
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/class-htl-room-variation.php:120 Stack trace: #0 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/class-htl-room-variation.php(140): HTL_Room_Variation->get_price_type() #1 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/class-htl-room-variation.php(358): HTL_Room_Variation->has_seasonal_price() #2 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/class-htl-room.php(813): HTL_Room_Variation->get_price() #3 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/templates/room-list/content/price.php(18): HTL_Room->get_price_html() #4 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/htl-core-functions.php(192): include(‘/s2-kindfield/w…’) #5 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/htl-template-functions.php(923): htl_get_template() #6 /s2-kindfield/wordpress/wp-includes/class-wp-hook.php(324): hotelier_template_loop_room_price() #7 /s2-kindfield/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 /s2-kindfield/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() #9 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/templates/room-list/room-content.php(156): do_action() #10 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/htl-core-functions.php(192): include(‘/s2-kindfield/w…’) #11 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/htl-template-functions.php(780): htl_get_template() #12 /s2-kindfield/wordpress/wp-includes/class-wp-hook.php(324): hotelier_template_room_list_content() #13 /s2-kindfield/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #14 /s2-kindfield/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() #15 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/templates/room-list/form-room-list.php(96): do_action() #16 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/htl-core-functions.php(192): include(‘/s2-kindfield/w…’) #17 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/shortcodes/class-htl-shortcode-room-list.php(78): htl_get_template() #18 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/shortcodes/class-htl-shortcode-room-list.php(38): HTL_Shortcode_Room_List::room_list() #19 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/shortcodes/class-htl-shortcodes.php(73): HTL_Shortcode_Room_List::output() #20 /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/shortcodes/class-htl-shortcodes.php(165): HTL_Shortcodes::shortcode_wrapper() #21 /s2-kindfield/wordpress/wp-includes/shortcodes.php(433): HTL_Shortcodes::room_list() #22 [internal function]: do_shortcode_tag() #23 /s2-kindfield/wordpress/wp-includes/shortcodes.php(273): preg_replace_callback() #24 /s2-kindfield/wordpress/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3114): do_shortcode() #25 /s2-kindfield/wordpress/wp-includes/shortcodes.php(433): ET_Builder_Element->_render() #26 [internal function]: do_shortcode_tag() #27 /s2-kindfield/wordpress/wp-includes/shortcodes.php(273): preg_replace_callback() #28 /s2-kindfield/wordpress/wp-content/themes/Divi/includes/builder/main-structure-elements.php(3784): do_shortcode() #29 /s2-kindfield/wordpress/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3433): ET_Builder_Column->render() #30 /s2-kindfield/wordpress/wp-includes/shortcodes.php(433): ET_Builder_Element->_render() #31 [internal function]: do_shortcode_tag() #32 /s2-kindfield/wordpress/wp-includes/shortcodes.php(273): preg_replace_callback() #33 /s2-kindfield/wordpress/wp-content/themes/Divi/includes/builder/main-structure-elements.php(2274): do_shortcode() #34 /s2-kindfield/wordpress/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3433): ET_Builder_Row->render() #35 /s2-kindfield/wordpress/wp-includes/shortcodes.php(433): ET_Builder_Element->_render() #36 [internal function]: do_shortcode_tag() #37 /s2-kindfield/wordpress/wp-includes/shortcodes.php(273): preg_replace_callback() #38 /s2-kindfield/wordpress/wp-content/themes/Divi/includes/builder/main-structure-elements.php(1606): do_shortcode() #39 /s2-kindfield/wordpress/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3433): ET_Builder_Section->render() #40 /s2-kindfield/wordpress/wp-includes/shortcodes.php(433): ET_Builder_Element->_render() #41 [internal function]: do_shortcode_tag() #42 /s2-kindfield/wordpress/wp-includes/shortcodes.php(273): preg_replace_callback() #43 /s2-kindfield/wordpress/wp-includes/class-wp-hook.php(324): do_shortcode() #44 /s2-kindfield/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters() #45 /s2-kindfield/wordpress/wp-includes/post-template.php(256): apply_filters() #46 /s2-kindfield/wordpress/wp-content/themes/Divi/page.php(46): the_content() #47 /s2-kindfield/wordpress/wp-includes/template-loader.php(106): include(‘/s2-kindfield/w…’) #48 /s2-kindfield/wordpress/wp-blog-header.php(19): require_once(‘/s2-kindfield/w…’) #49 /s2-kindfield/wordpress/index.php(17): require(‘/s2-kindfield/w…’) #50 {main} thrown in /s2-kindfield/wordpress/wp-content/plugins/wp-hotelier/includes/class-htl-room-variation.php on line 120
Strange that everything is fine on my developer’s website if you try to open the “Available Rooms” page.Could you please recommend where to dig to solve this problem?
BTW:
You plugin is great!!!
I found it the best of the best and cannot understand why do they see the error if i do not see it!!
TIAThe page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.