WPML
الحالة
مفتوحة
أُبلغ عنها لـ
WPML Multilingual CMS 4.5.9
وسوم الموضوع
Bug

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

يواجه المستخدمون غير المديرين، مثل المحررين أو الأدوار المخصصة، خطأ 403 Forbidden في وحدة تحكم المتصفح عند الوصول إلى وظائف معينة في WPML تتعلق بمزامنة مهام محرر الترجمة المتقدم (ATE). يتضح هذا الخطأ عند فحص علامة تبويب وحدة التحكم في أدوات مطوري المتصفح.

ضع في اعتبارك أن هذه المشكلة لن تؤثر على موقعك أو ترجماته، ويمكنك الاستمرار في استخدام WPML وترجمة موقعك.

حل بديل مؤقت

يُرجى التأكد من أخذ نسخة احتياطية كاملة لموقعك قبل المتابعة.


  • افتح ملف …/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Loader.php.

  • استبدل:
    			Hooks::onAction( 'wp_loaded' )
    			     ->then( [ self::class, 'getData' ] )
    			     ->then( $maybeLoadStatusBarAndATEConsole )
    			     ->then( Resources::enqueueApp( 'ate-jobs-sync' ) )
    			     ->then( Fns::always( make( \WPML_TM_Scripts_Factory::class ) ) )
    			     ->then( invoke( 'localize_script' )->with( 'wpml-ate-jobs-sync-ui' ) );


  • بـ:
    		if (current_user_can('translate') || current_user_can('manage_options') || current_user_can('manage_translations')) {
    			Hooks::onAction( 'wp_loaded' )
    			     ->then( [ self::class, 'getData' ] )
    			     ->then( $maybeLoadStatusBarAndATEConsole )
    			     ->then( Resources::enqueueApp( 'ate-jobs-sync' ) )
    			     ->then( Fns::always( make( \WPML_TM_Scripts_Factory::class ) ) )
    			     ->then( invoke( 'localize_script' )->with( 'wpml-ate-jobs-sync-ui' ) );
    		}

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