Title: Conditional Display PHP Errors
Last modified: January 27, 2025

---

# Conditional Display PHP Errors

 *  Resolved [rprentice84](https://wordpress.org/support/users/rprentice84/)
 * (@rprentice84)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/conditional-display-php-errors/)
 * Using conditional display within the plugin but constantly seeing php errors 
   that end up causing the site not to load for specific customers who run into 
   these errors:
   Uncaught Exception: DateTimeZone::__construct(): Unknown or bad
   timezone () in XXXXXXXX/public_html/wp-content/plugins/premium-addons-for-elementor/
   includes/helper-functions.php:826We have confirmed our timezones on the server
   are properly set in the OS and PHP, and tracing the error back it appears to 
   be related to how the plugin uses cookie variable and/or IP to try and determine
   the users local timezone.Anyone else run into this? Feels like if the plugin 
   cannot determine local timezone there should be a fall back and not an uncaught
   exception.
    -  This topic was modified 1 year, 5 months ago by [rprentice84](https://wordpress.org/support/users/rprentice84/).

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

 *  [leap13support](https://wordpress.org/support/users/leap13support/)
 * (@leap13support)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/conditional-display-php-errors/#post-18271765)
 * Hi there,
 * Thank you for contacting Leap13 Support,
 * Please download and install [this version](https://share.zight.com/eDub5z5R) 
   on your site, we’ll add the fix to our next release once you confirm that everything
   works properly from your end.
 * Thanks,
 *  Thread Starter [rprentice84](https://wordpress.org/support/users/rprentice84/)
 * (@rprentice84)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/conditional-display-php-errors/#post-18271847)
 * The patch version caused a fatal error:
   **Line** 33
 * **Message** Uncaught Error: Class “PremiumAddons\Includes\Premium_Template_Tags”
   not found in /XXXXX/public_html/wp-content/plugins/premium-addons-for-elementor/
   includes/pa-display-conditions/conditions/post-type.php:33 Stack trace: #0
 * **File** /XXXXX/public_html/wp-content/plugins/premium-addons-for-elementor/includes/
   pa-display-conditions/conditions/post-type.php
 *  Plugin Author [Leap13](https://wordpress.org/support/users/leap13/)
 * (@leap13)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/conditional-display-php-errors/#post-18272234)
 * We have just released v4.10.80 that contains a fix for the issue you are facing.

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

The topic ‘Conditional Display PHP Errors’ is closed to new replies.

 * ![](https://ps.w.org/premium-addons-for-elementor/assets/icon-128x128.gif?rev
   =3495451)
 * [Premium Addons for Elementor - Powerful Elementor Templates & Widgets](https://wordpress.org/plugins/premium-addons-for-elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/premium-addons-for-elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/premium-addons-for-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/premium-addons-for-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/premium-addons-for-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/premium-addons-for-elementor/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Leap13](https://wordpress.org/support/users/leap13/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/conditional-display-php-errors/#post-18272234)
 * Status: resolved