Shortcode error “Uncaught Error: Call to undefined function”
-
Hi,
I’m trying to add “<?php echo do_shortcode(‘[xoo_el_action type=”register” change_to=”myaccount”]’); ?>” in my theme header, however I’m getting following error. Do you know why? Thanks for your help!
Your PHP code changes were rolled back due to an error on line 164 of file wp-content/plugins/easy-login-woocommerce/includes/class-xoo-el-frontend.php. Please fix and try saving again.
Uncaught Error: Call to undefined function wc_get_page_permalink() in wp-content/plugins/easy-login-woocommerce/includes/class-xoo-el-frontend.php:164
Stack trace:
#0 wp-includes/shortcodes.php(325): Xoo_El_Frontend->markup_shortcode(Array, ”, ‘xoo_el_action’)
#1 [internal function]: do_shortcode_tag(Array)
#2 wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(xoo_el…’, ‘do_shortcode_ta…’, ‘[xoo_el_action …’)
#3 wp-content/themes/newspress-lite/header.php(43): do_shortcode(‘[xoo_el_action …’)
#4 wp-includes/template.php(722): require_once(‘/home/a40kb1xmx…’)
#5 wp-includes/template.php(671): load_template(‘/home/a40kb1xmx…’, true)
#6 wp-includes/general-template.php(41): locate_template(Array, true)
#7 wp-content/themes/newspress-lite/fr
- The topic ‘Shortcode error “Uncaught Error: Call to undefined function”’ is closed to new replies.