Title: Shortcode error &#8220;Uncaught Error: Call to undefined function&#8221;
Last modified: January 14, 2020

---

# Shortcode error “Uncaught Error: Call to undefined function”

 *  [rozard](https://wordpress.org/support/users/rozard/)
 * (@rozard)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/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

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [rozard](https://wordpress.org/support/users/rozard/)
 * (@rozard)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/shortcode-error-uncaught-error-call-to-undefined-function/#post-12334967)
 * I tried to enter shortcode in top menue. [xoo_el_action type=”login” change_to
   =”logout”] is working fine, but [xoo_el_action type=”register” change_to=”myaccount”]
   is not working. I tried both separately. I get an error “There has been a critical
   error on your website” whenever entered Register/Account code. Any idea what’s
   going on?
 *  [Mehmet Kocali](https://wordpress.org/support/users/membus/)
 * (@membus)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/shortcode-error-uncaught-error-call-to-undefined-function/#post-12594374)
 * Hi,
 * I’m having a similar issue, using the pro version of the plugin.
 * Any news?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Shortcode error “Uncaught Error: Call to undefined function”’ is closed
to new replies.

 * ![](https://ps.w.org/easy-login-woocommerce/assets/icon-128x128.png?rev=1970613)
 * [Login & Register Customizer – Popup | Slider | Inline | WooCommerce](https://wordpress.org/plugins/easy-login-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-login-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-login-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-login-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-login-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-login-woocommerce/reviews/)

## Tags

 * [account](https://wordpress.org/support/topic-tag/account/)
 * [login](https://wordpress.org/support/topic-tag/login/)
 * [Logout](https://wordpress.org/support/topic-tag/logout/)
 * [register](https://wordpress.org/support/topic-tag/register/)
 * [signup](https://wordpress.org/support/topic-tag/signup/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mehmet Kocali](https://wordpress.org/support/users/membus/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/shortcode-error-uncaught-error-call-to-undefined-function/#post-12594374)
 * Status: not resolved