• 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

    (@rozard)

    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?

    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.