WPML
الحالة
مفتوحة
وسوم الموضوع
Compatibility, Known issue

نظرة عامة على المشكلة

إذا حدّثت WordPress إلى الإصدار 6.7 الجديد، فربما تكون قد رأيت هذا الإشعار:

Function _load_textdomain_just_in_time was called

  • بدءاً من الإصدار WP 6.7، يجب تحميل الترجمات بعد خطّاف init في WP، ويمكنك القراءة عن هذه المشكلة هنا: https://wordpress.org/support/topic/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called-3/
  • تحمّل بعض الإضافات ملفات الترجمة في وقت مبكر، وهذا يسبب الخطأ السابق.
  • لاحظ أن الخطأ يشير إلى الإضافة التي تسببت في المشكلة:

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/customer/www/xxx.com/public_html/wp-includes/functions.php on line 6114

    في هذا المثال، لاحظ أن المشكلة تأتي من نطاق WooCommerce؛ ومن المرجح جداً أنها في إضافة WooCommerce.

حل بديل مؤقت

يجب عليك تحديث إضافتَي WPML & WooCommerce إلى إصداراتهما الأخيرة.

إذا كنت لا تزال تواجه هذه المشكلة، فمن المرجح أنها تتعلق بقالب أو إضافة أخرى؛

من المرجح أن يتضمن WordPress 6.7.1 إصلاحاً لهذه المشكلة (راجع هذا – https://core.trac.wordpress.org/ticket/62337)

جميع المشاكل المعروفة →