-
Hi,
Getting the below fatal error ONLY when Pitstop theme is active. I’ve tested on 2025 and not getting the error. Screens attached. Any ideas? This is a local site so ca not provide log in credentials.
Fatal error: Uncaught Error: Call to a member function get_id() on string in C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-content\plugins\woocommerce\includes\wc-template-functions.php:2145 Stack trace: #0 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-content\plugins\woocommerce\includes\class-wc-shortcodes.php(735): woocommerce_related_products(Array) #1 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-includes\shortcodes.php(434): WC_Shortcodes::related_products(Array, ”, ‘related_product…’) #2 [internal function]: do_shortcode_tag(Array) #3 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-includes\shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(maxmeg…’, ‘do_shortcode_ta…’, ‘<!– vcwb/dynam…’) #4 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-content\plugins\visualcomposer\visualcomposer\Modules\FrontView\FrontViewController.php(57): do_shortcode(‘<!– vcwb/dynam…’) #5 [internal function]: VisualComposer\Modules\FrontView\FrontViewController->VisualComposer\Modules\FrontView\{closure}(Array) #6 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-content\plugins\visualcomposer\visualcomposer\Modules\FrontView\FrontViewController.php(50): preg_replace_callback(‘/<!–vcv no for…’, Object(Closure), ‘<!–vcv no form…’) #7 [internal function]: VisualComposer\Modules\FrontView\FrontViewController->encode(‘<!–vcv no form…’, ‘the_content’) #8 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-content\plugins\visualcomposer\visualcomposer\Framework\Container.php(63): ReflectionMethod->invokeArgs(Object(VisualComposer\Modules\FrontView\FrontViewController), Array) #9 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-content\plugins\visualcomposer\visualcomposer\Helpers\Traits\WpFiltersActions.php(23): VisualComposer\Framework\Container->call(‘encode’, Array) #10 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-includes\class-wp-hook.php(324): VisualComposer\Modules\FrontView\FrontViewController->VisualComposer\Helpers\Traits\{closure}(‘<!–vcv no form…’) #11 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-includes\plugin.php(205): WP_Hook->apply_filters(‘<!–vcv no form…’, Array) #12 C:\Users\david.kranz\Local Sites\bendixfinal\app\public\wp-content\uploads\visualcomposer-assets\addons\themeBuilder\themeBuilder\Pages\LayoutPostTypeController.php(535): apply_filters(‘the_content’, ‘<!–vcv no form…’) #13 C:\Users\david.kranz\Local Sites\bendixfinal\app\public\wp-content\uploads\visualcomposer-assets\addons\themeBuilder\themeBuilder\Pages\LayoutPostTypeController.php(454): themeBuilder\themeBuilder\pages\LayoutPostTypeController->printLayout(true) #14 [internal function]: themeBuilder\themeBuilder\pages\LayoutPostTypeController->renderLayouts(Object(VisualComposer\Helpers\Request), Object(VisualComposer\Helpers\Frontend), ”, ‘template_redire…’) #15 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-content\plugins\visualcomposer\visualcomposer\Framework\Container.php(63): ReflectionMethod->invokeArgs(Object(themeBuilder\themeBuilder\pages\LayoutPostTypeController), Array) #16 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-content\plugins\visualcomposer\visualcomposer\Helpers\Traits\WpFiltersActions.php(46): VisualComposer\Framework\Container->call(‘renderLayouts’, Array) #17 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-includes\class-wp-hook.php(324): themeBuilder\themeBuilder\pages\LayoutPostTypeController->VisualComposer\Helpers\Traits\{closure}(”) #18 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #19 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #20 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-includes\template-loader.php(13): do_action(‘template_redire…’) #21 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-blog-header.php(19): require_once(‘C:\\Users\\david….’) #22 C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\index.php(17): require(‘C:\\Users\\david….’) #23 {main} thrown in C:\Users\david.kranz\Local Sites\bendixdata-test\app\public\wp-content\plugins\woocommerce\includes\wc-template-functions.php on line 2145
Attachments:
You must be logged in to view attached files.
You must be logged in to reply to this topic.