Translation Loading and Deprecated Code Issues in WordPress

This topic has 2 replies, 2 voices, and was last updated 2 weeks, 3 days ago ago by Andrew Mitchell

  • Avatar: Ravindu Senevirathna
    Ravindu Senevirathna
    Participant
    May 14, 2025 at 18:18

    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).

    Files is visible for topic creator and
    support staff only.
    1 Answer
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    May 15, 2025 at 13:53

    Hello, Ravindu Senevirathna,

    Could you please specify the version of the theme you are currently using?

    We would also like to kindly point out that a significant number of the errors you are encountering are not related to our product. These include notices such as:

    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 – this is the only one related to our product

    As you can see, the majority of these issues are caused by third-party plugins, such as “OptinMonster”, and not by our theme.

    We kindly ask you to update your theme to the latest version. If the notice regarding _load_textdomain_just_in_time related to XStore still appears after the update, please provide us with WordPress admin and FTP access to your website so we can investigate further.

    For all other errors, we recommend reaching out to the respective plugin developers for assistance.

    Best regards,
    8Theme Team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.