Title: Error when using shortcode
Last modified: February 16, 2024

---

# Error when using shortcode

 *  Resolved [an040702](https://wordpress.org/support/users/an040702/)
 * (@an040702)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-6/)
 * Hi,
   When I implement shortcode ‘evercompare_button’, it show error that **Fatal
   error**: Uncaught Error: Call to a member function get_id() on null in \xampp\
   htdocs\wordpress\wp-content\plugins\woolentor-addons\includes\modules\compare\
   includes\classes\Frontend\Shortcode.php:78 Stack trace: #0 \xampp\htdocs\wordpress\
   wp-includes\shortcodes.php(433): EverCompare\Frontend\Shortcode->button_shortcode(
   Array, ”, ‘evercompare_but…’)  
 * How can I implement it correctly?

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

 *  [Tarek Aziz](https://wordpress.org/support/users/tarekht/)
 * (@tarekht)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-6/#post-17433763)
 * Hi [@an040702](https://wordpress.org/support/users/an040702/),
 * Thank you very much for reaching out to us.
 * I am sorry to hear about the inconvenience you have experienced.
 * The error seems quite uncommon. It is very unlikely for the plugin to cause such
   an issue.
 * Don’t worry; could you please open a ticker in our support center?
 * _**[https://woolentor.com/contact/](https://woolentor.com/contact/)**_
 * This will help us identify the root cause of the issue and come up with an effective
   solution to this.
 * Best regards,
    Tarek Aziz
 *  Thread Starter [an040702](https://wordpress.org/support/users/an040702/)
 * (@an040702)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-6/#post-17433766)
 * Hi,
   I have created ticket,Thank you
 *  [Tarek Aziz](https://wordpress.org/support/users/tarekht/)
 * (@tarekht)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-6/#post-17435073)
 * Hi [@an040702](https://wordpress.org/support/users/an040702/),
 * Good morning from here 🙂
 * Thanks a lot. One of our support representatives will get back to you soon and
   help you resolve the issue you encountered.
 * Have a wonderful day ahead!

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

The topic ‘Error when using shortcode’ is closed to new replies.

 * ![](https://ps.w.org/woolentor-addons/assets/icon-256x256.png?rev=3011160)
 * [ShopLentor – All-in-One WooCommerce Growth & Store Enhancement Plugin](https://wordpress.org/plugins/woolentor-addons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woolentor-addons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woolentor-addons/)
 * [Active Topics](https://wordpress.org/support/plugin/woolentor-addons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woolentor-addons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woolentor-addons/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tarek Aziz](https://wordpress.org/support/users/tarekht/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-6/#post-17435073)
 * Status: resolved