تخطي الملاحة

تم حل هذا الموضوع. هنا وصف للمشكلة والحل.

Problem:
.In the appearance section, the widgets show an error. This problem occurred after installing the WPML plugin

Solution:
The issue was fixed after disabling the following plugins:
1- Jetpack
2- Google Listings and Ads

هنا منتدى الدعم الفني لـ WPML - ملحق WordPress متعدد اللغات.

يمكن للجميع قراءة المواضيع، ولكن عملاء WPML فقط هم من يمكنهم النشر هنا. يقوم فريق WPML بالرد على موضوعات المنتدى على مدار 6 أيام في الأسبوع، 22 ساعة في اليوم.

لا يوجد مقدمو دعم متاحون للعمل اليوم على منتدى Arabic. تفضل بإنشاء طلبات الدعم ويسعدنا أن نعالجها بمجرد أن نصبح في ساعات العمل. شكرًا لك على تفهّمك.

يحتوي هذا الموضوع رد واحد ، لديه 2أصوات.

آخر تحديث بواسطة Mohamed Sayed قبل 1 سنة، 10 شهور.

يساعده: Mohamed Sayed.

مؤلف المقالات
يونيو 21, 2022في 9:56 ص #11507209

صالح التميمي

in the appearance section. widgets show an error. This problem occurred after installing the wpml plugin. And when I disable the wpml extension. This error disappears. What is the problem. Note that I still haven't finished translating the
products. and some pages

I also extend my thanks to your team. For this beautiful addition

6E6DED9C-D9E8-4B67-A06C-701AC46FB076.jpeg
10A385D3-40E9-4E0A-86B6-E580D638EDFB.png
F007ADAB-2101-49F2-B0D9-56726EDD8238.png
يونيو 21, 2022في 10:43 ص #11508001

Mohamed Sayed

Hi Saleh,
Thanks for contacting WPML support, and also thanks for your kind words.

1) To ensure the quickest and most accurate support, please provide your debug information so that I can get a look at some of your configurations. You can find it in WPML > Support > click on “Debug information” link. Please check this link for more info: http://wpml.org/faq/provide-debug-information-faster-support/

2) Please go to WPML > Support > Troubleshooting page, then click the following:

- Clear the Cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Fix WPML table collation
- Set language information
- Fix post type assignment for translations

❌ Please make sure that you have a full database and website backup before trying the above ❌

3) If that didn't help, please check if you see any errors in the browser console, also provide me with the WordPress debug.log, this will allow us to see if any PHP errors are being produced. More Info: https://wordpress.org/support/article/debugging-in-wordpress/

To enable it, open your wp-config.php file and look for:

define('WP_DEBUG', false);

And change it to:

define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

Then try to reproduce the issue and check if any errors were saved to the debug.log log file inside the /wp-content/ directory
If you can paste your debug.log to https://pastebin.com/ and provide me that link, it would be great!

Regards,
Mohamed

يونيو 21, 2022في 1:41 م #11509531

صالح التميمي

مازالت المشكلة في الودجات تظهر خطا..
وايضآ اسارسل لك في الاسفل تقرير السي بنل ملف wp-content / debug.log
---------------------------------------------------------------------

[21-Jun-2022 13:13:12 UTC] PHP Notice: the_widget تمّ استدعائه بشكل غير صحيح. الودجات تحتاج إلى أن تكون مسجلة باستخدام

register_widget()

، قبل أن يتم عرضها. من فضلك اطلع على <a href="https://wordpress.org/support/article/debugging-in-wordpress/">تنقيح الأخطاء في ووردبريس</a> لمزيد من المعلومات. (هذه الرسالة تمّت إضافتها في النسخة 4.9.0.) in /home/sewakalarak/public_html/wp-includes/functions.php on line 5831
[21-Jun-2022 13:13:12 UTC] PHP Notice: the_widget تمّ استدعائه بشكل غير صحيح. الودجات تحتاج إلى أن تكون مسجلة باستخدام

register_widget()

، قبل أن يتم عرضها. من فضلك اطلع على <a href="https://wordpress.org/support/article/debugging-in-wordpress/">تنقيح الأخطاء في ووردبريس</a> لمزيد من المعلومات. (هذه الرسالة تمّت إضافتها في النسخة 4.9.0.) in /home/sewakalarak/public_html/wp-includes/functions.php on line 5831
[21-Jun-2022 13:28:31 UTC] PHP Notice: wp_enqueue_script() تمّ استدعائه بشكل غير صحيح. "wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). من فضلك اطلع على <a href="https://wordpress.org/support/article/debugging-in-wordpress/">تنقيح الأخطاء في ووردبريس</a> لمزيد من المعلومات. (هذه الرسالة تمّت إضافتها في النسخة 5.8.0.) in /home/sewakalarak/public_html/wp-includes/functions.php on line 5831

11507209-6E6DED9C_D9E8_4B67_A06C_701AC46FB076.jpeg
يونيو 21, 2022في 2:36 م #11511399

Mohamed Sayed

1) من خلال قراءة معلومات التصحيح الخاصة بك، يجب زيادة حد WP-Memory. ذاكرة PHP جيدة لكن WordPress يستخدم 40 ميجابايت كإعداد افتراضي. الحد الأدنى لمتطلبات WPML هو 128 ميجا بايت. (من فضلك تحقق من الصفحة التالية https://wpml.org/home/minimum-requirements)

يمكنك زيادته عن طريق اضافة الكود التالى الى ملف wp-config.php قبل هذا السطر مباشرة /* That’s all, stop editing! Happy publishing. */

define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

2) من فضلك التحقق مما إذا كانت المشكلة لا تزال قائمة في الحد الأدنى من الاضافات باتباع الخطوات التالية:

- قم بإلغاء تنشيط جميع الاضافات غير المرتبطة بـ WPML.
- قم بتفعيل قالب من قوالب WordPress الافتراضية مثل Twenty Twenty-one.
- إذا اختفت المشكلة ، فقم بتنشيط الاضافات واحدًا تلو الآخر حتى تستطيع تكرارها لمعرفة الاضافة الذي تسبب مشكلة تعارض.
❌ يرجى الاحتفاظ بنسخة احتياطية من قاعدة البيانات والموقع الإلكتروني قبل إجراء هذا الاختبار ❌

يونيو 21, 2022في 5:51 م #11512943

صالح التميمي

شكرأ لك اخ محمد انا اضفت هذة الكودين في ملف wp-config.php

define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
----------------------------------------------------------
ولم تنحل المشكلة واتبعت الخطوات الى اخبرتني بها ونجحت معاي شكرآ لك انتهت المشكلة
لاكن هذا الاضافتين المتعارضة مع WPML واحده منها تبع ووردبريس والثانية اعلانات المنتج في جوجل وهي كتالي:
1- Jetpack
2- Google Listings and Ads
انا عطلتها وحذفتها شكر لك استاذ محمد اتعبتك معاي

يونيو 21, 2022في 6:15 م #11513121

Mohamed Sayed

مرحبا أخ صالح،

أنا سعيد بأن المشكلة تم حلها ، برجاء التواصل معنا فى حالة مواجهة أى مشكلات أخرى خاصة بالاضافة. سنكون سعداء دوما بتقديم المساعدة.

تحياتى،
محمد

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.