Klaviyo Site Banner | Q2 2025

Product Icon

Lottery for WooCommerce

Lottery for WooCommerce is a full-featured lottery plugin for creating and managing online lotteries in your WooCommerce Shop.

issue with elementor. Line 722, code breaks site.

Got this error: “The preview could not be loaded”.

Uncaught Error: Call to a member function get_lottery_ticket_count() on null in /public_html/wp-content/plugins/lottery-for-woocommerce/inc/frontend/class-lty-shortcodes.php:722.

When i delete: “return absint( $lottery_product->get_lottery_ticket_count() );” – it works, but only when deleted. However it then does not show the sold ticket count.

Please fix, i am unable to edit the page.

Author

N.A

Current Status

Open

Last updated: October 20, 2023

0 comments

Log in to comment on this feature request.