Here’s a formal and detailed issue report you can send to the theme or plugin developers (such as Astra, Popup Builder, WooCommerce addons, etc.):
⸻
📄 Bug Report: Translation Loading and Deprecated Code Issues in WordPress
Date: May 14, 2025
Website: https://www.srilankaoutlet.com
Server: Apache/2.4.58 (Ubuntu)
WordPress Version: Likely 6.7 or newer
PHP Version: Please confirm if it’s PHP 8.1 or newer (common source of some issues)
⸻
🐛 Issue Summary:
Upon accessing the website, several warning and notice messages are displayed on the frontend. These are primarily related to:
• Incorrect use of load_textdomain_just_in_time()
• Deprecated dynamic property usage
• Translation domains loading too early
• Poor plugin/theme compatibility with recent WordPress updates
⸻
⚠️ Displayed Errors Include:
Notice: Function _load_textdomain_just_in_time was called incorrectly.
Translation loading for the following domains was triggered too early:
• astra-sites
• popup-builder
• woo-category-slider-grid
• wp-carousel-free
• woocommerce
• updraftplus
• xstore
Each error points to:
/var/www/html/wp-includes/functions.php on line 6121
Deprecated: Creation of dynamic property OMAP\Elementor_Widget::$base is deprecated
in:
/wp-content/plugins/optinmonster/OMAPI/Elementor/Widget.php on line 41
⸻
📸 Screenshot Attached:
The issue is clearly visible in the attached screenshot, where multiple PHP notices and deprecated warnings are flooding the page output.
⸻
🔧 Technical Insight:
These issues typically arise when:
• Translations or code are being loaded before the init hook.
• PHP 8.x+ is used, and older code still uses dynamic properties without declaring them.
• Theme/plugin code does not follow latest WordPress coding standards.
• Debugging is enabled in wp-config.php, which makes notices visible.
⸻
✅ Requested Action from Developers:
1. Review Translation Loading:
• Ensure all translation files are loaded at or after the init action hook.
• Avoid early loading in the main plugin file or constructor.
2. Fix Deprecated Property Usage:
• Declare class properties properly instead of dynamically assigning them (PHP 8.2+).
3. Update Compatibility:
• Ensure the plugin/theme follows best practices for WordPress 6.7+ and PHP 8.2+.
4. Release Patches:
• Kindly provide a patch or timeline for updates that address these issues.
⸻
Please confirm once the issues have been acknowledged and a fix is planned. This is a live production website and these warnings are affecting user perception and backend stability.
Thank you for your assistance.
⸻
Let me know if you’d like to convert this into an email format or attach more technical details (like server PHP version or WordPress debug logs).