Redirect from restricted page not working
-
Hi, with the free version of pie-register, I’ve set up a private page https://www.metaverse-cms.com/testing/ with the following:
Visibility: show to logged in users
Restriction type: Redirect
Redirect page: login
visiting the page, it leads to a fatal error.
After enabling the WordPress Logs I’ve seen this error:[31-May-2023 07:16:57 UTC] PHP Fatal error: Uncaught Error: Call to undefined function is_shop() in /home/metcmsadm/metaverse-cms.com/wp-content/plugins/pie-register/pie-register.php:1659
Stack trace: 0 /home/metcmsadm/metaverse-cms.com/wp-includes/class-wp-hook.php(310): PieRegister->piereg_template_restrict(Object(WP_Post)) 1 /home/metcmsadm/metaverse-cms.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) 2 /home/metcmsadm/metaverse-cms.com/wp-includes/plugin.php(565): WP_Hook->do_action(Array) 3 /home/metcmsadm/metaverse-cms.com/wp-includes/class-wp-query.php(4690): do_action_ref_array('the_post', Array) 4 /home/metcmsadm/metaverse-cms.com/wp-includes/class-wp-query.php(3652): WP_Query->setup_postdata(Object(WP_Post)) 5 /home/metcmsadm/metaverse-cms.com/wp-includes/query.php(1005): WP_Query->the_post() 6 /home/metcmsadm/metaverse-cms.com/wp-content/themes/astra/inc/class-astra-loop.php(194): the_post() 7 /home/metcmsadm/metaverse-cms.com/wp-content/themes/astra/inc/class-astra-loop.php(174): Astra_Loop->loop_markup(true) 8 /home/metcmsadm/metaverse-cms.com/wp-includes/class-wp-hook.php(308): Astra_Loop->loop_markup_page('') 9 /home/metcmsadm/metaverse-cms.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) 10 /home/metcmsadm/metaverse-cms.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 11 /home/metcmsadm/metaverse-cms.com/wp-content/themes/astra/inc/core/theme-hooks.php(267): do_action('astra_content_p…') 12 /home/metcmsadm/metaverse-cms.com/wp-content/themes/astra/page.php(32): astra_content_page_loop() 13 /home/metcmsadm/metaverse-cms.com/wp-includes/template-loader.php(106): include('/home/metcmsadm…') 14 /home/metcmsadm/metaverse-cms.com/wp-blog-header.php(19): require_once('/home/metcmsadm…') 15 /home/metcmsadm/metaverse-cms.com/index.php(17): require('/home/metcmsadm…') 16 {main} thrown in /home/metcmsadm/metaverse-cms.com/wp-content/plugins/pie-register/pie-register.php on line 1659The problem is: I don’t have WooCommerce installed, so why it is searching for the
is_shop()
function?
Thank you for your supportThe page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Redirect from restricted page not working’ is closed to new replies.