• Resolved alexandrudodin

    (@alexandrudodin)


    Hi, while using [woo_myedit_account] shortcode (default free version), in the actual form in the First Name, Last Name, Display name and email address, it displays such following wargnings:

    <br /><b>Warning</b>: Undefined variable $user in public_html/wp-content/plugins/woo-shortcodes-kit/mytemplates/freeform-edit-account.php</b> on line <b>28</b><br /><br /><b>Warning</b>: Attempt to read property

    error printscreen

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author disespubli

    (@disespubli)

    Hi Alexandrudodin,

    First of all thanks for using Woo Shortcodes Kit!

    About the issue, are you using the shortcode in a page selected as the WooCommerce account page?

    If the page with the edit account shortcode is selected as the WooCommerce account page… do you have removed from this page the WooCommerce account shortcode by default?

    Regards!

    Thread Starter alexandrudodin

    (@alexandrudodin)

    Hello,

    Yes, the shortcodes are used on a page set as Woocommerce account page and the page does not contain the default Woocommerce account shortcode, just the woo shortcodes kit ones.

    https://www.linkpicture.com/q/Screenshot-2022-04-06-at-18.56.36.png

    Plugin Author disespubli

    (@disespubli)

    Hi Alexandrudodin,

    Maybe i can check your site?

    You can contact with me using the website contact form and send credentials for access and check you account page.

    Regards!

    inside display box <br /><b>Warning</b>: Undefined variable $user in <b>/home/shoplyco/public_html/wp-content/plugins/woo-shortcodes-kit/mytemplates/freeform-edit-account.php</b> on line <b>38</b><br /><br /><b>Warning</b>: Attempt to read property

    Plugin Author disespubli

    (@disespubli)

    Hi ruposishop,

    Im trying to recreate the same issue, but for me is working perfectly, the shortcode use the same WooCommerce template and its should read the user correctly.

    Please if is possible let me check your website, contact me using the website contact form and i will check the issue.

    Regards!

    Plugin Author disespubli

    (@disespubli)

    Hi Alexandrudodin and Ruposishop,

    Even without getting a response from you, I decided to continue studying your case and the only possibility that occurs to me is that you are using an outdated version of WooCommerce, from which the $current_user variable is being used instead of $user as it is used from latest versions.

    My recommendation is that if this is your case, update to the latest version of WooCommerce.

    Even so, if for some reason you don’t want to update WooCommerce, in version 2.0.2 of Woo Shortcodes Kit you will find an alternative solution, since I have updated the template to solve this problem.

    I hope this can help you, I close the topic as resolved.

    All the best!`

    Thread Starter alexandrudodin

    (@alexandrudodin)

    Hi,

    Same behaviour after Woocommerce update. When is your plugin v2.0.2 coming out?

    Plugin Author disespubli

    (@disespubli)

    Hi Alexandrudodin,

    Finally Woo Shortcodes Kit v.2.0.2 will be available the next monday, but if you want you can download the “fixed” version from here and replace your current installed version to test if it solved your problem.

    Please let me know if it solved your problem.

    Regards!

    Thread Starter alexandrudodin

    (@alexandrudodin)

    aweosome! v.2.02 fixed it, thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘edit account warning messages for fields instead of actual values’ is closed to new replies.