בעיה מרכזית ברכיבי ערכת נושא לאחר עדכון

I just updated to this : Commits · discourse/discourse · GitHub 2f398db9b66f19220b5a7f56721a68f41dcdeeec

Two different theme components now completely break my site. They are the “Modern Category + Group Boxes” from Air Theme and Avatar Size and Shape

They render the site unusable (looping?). Happens on both Firefox and Chrome (desktop)

I have tried them with no plugins and in isolation on different themes (ie safe mode with no plugins and on an isolated theme), so I don’t think it’s specific to my instance.

Console reports lines like this:

Uncaught TypeError: Cannot read properties of null (reading ‘syscall’)

Uncaught (in promise) TypeError: Invalid value used as weak map key

message-bus.js:118 MESSAGE BUS FAIL: callback /latest caused exception TypeError: Cannot read properties of null (reading ‘syscall’)

As a temporary solution, I have forced my users onto a generic theme until it’s figured out. Please let me know if you can replicate this error.

4 לייקים

מצטער, איני מצליח לשחזר זאת עד כה

2 לייקים

I’m experiencing the same issue on my site. For example, when I log out, the page turns completely white with the same error. Some users also reported that they can’t log in because the page is just blank. It seems to happen randomly.

The main problem is that there’s no clear error message to indicate what’s causing it. I tried to track it down by checking my theme components. I’ve already updated most of them to gjs, but here’s the interesting part: when I deactivate and then reactivate a specific component, the site starts working again without errors. I still don’t know what’s causing this issue though… It seems that the problem only occurs on pages where a (custom) theme component is present. So at least this gives me a clue that the issue must be coming from one of the components.

לייק 1

This might help track it down:

Check the helpers!

אתה יכול לשתף דף/אתר שבו זה קורה @Don @piffy?

לייק 1

Here is a simple theme I set up that only has the avatar component: Elite Fourum - E4 - efour

https://www.elitefourum.com/latest?safe_mode=no_plugins&preview_theme_id=39

I can repo the issue at this link on firefox and chrome (desktop)


Modern Category + Group Boxes : Elite Fourum - E4 - efour

https://www.elitefourum.com/?safe_mode=no_plugins&preview_theme_id=58

this one seems harder to repo. It causes issues when I’m logged into my admin account (chrome and firefox) but not when I try on a dummy account. The bugs seem similar though between both theme component so maybe fixing one will solve the other.

Hope it helps!

לייק 1

the closest thing I could get to an iterpretable error message is

client-error-handler.js:125 [THEME 39 ‘Test’] Error: Could not find module admin/components/color-input imported from (require)

the customize-edit-category-general.js is coming from the Air Theme:

in core:

This looks like the same issue: Forum navbar is repeating

לייק 1

This will fix the color-input error from the air theme. But this issue is not new, so I think it’s unlikely to be the cause of these rendering errors

2 לייקים

@piffy האם תוכל בבקשה לנסות לעדכן לגרסה העדכנית ביותר של tests-passed, למקרה שתיקון ה-color-input יעזור בכל דרך שהיא.

בהנחה שהדברים עדיין שבורים לאחר בנייה מחדש, האם תוכל לנסות זאת:

./launcher enter app
rails c
Discourse.clear_all_theme_cache!

אותו הדבר לגביך @don, אם יש לך זמן.

אם זה פותר את הבעיה, אז זה מצביע על כך שיש לנו בעיה עם ביטול תוקף מטמון הנושא (theme cache invalidation) שאמור היה לקרות כאשר העלנו את גרסת Ember בשבוע שעבר.

2 לייקים

Thanks David, it seems this do the trick for me.

לייק 1

וגם מאשר שהעדכון לא עזר אבל איפוס מטמון הנושא עבד.

2 לייקים

אוקיי נהדר, תודה על האישור! ננסה לפתור את הבעיה הזו במערכת המטמון של הנושאים, כך שלא יידרש פעולה ידנית.

אבל בינתיים, לכל מי שנתקל בבעיות אלו:

Uncaught TypeError: Cannot read properties of null (reading ‘syscall’)
Uncaught (in promise) TypeError: Invalid value used as weak map key

אנא בצע את הצעדים הבאים בקונסול:

./launcher enter app
rails c
Discourse.clear_all_theme_cache!
4 לייקים

@piffy @Don אתם מריצים התקנת סטנדרט של קונטיינר יחיד?

לייק 1

Yes, I’m on a single-container standard install.

לייק 1

I’m running Ubuntu 20.04.6 LTS (I see it’s no longer officially supported) on DigitalOcean, single container.

Notable deviations from standard install:

לייק 1

עוד שאלה. כשזה קרה לראשונה, האם הרצת עדכון ממשק משתמש או בנייה מחדש של שורת הפקודה?

CLI

הוספת מילים נוספות כדי לעבור את מגבלת הפוסט של 20 תווים

לייק 1

כן, גם אני. עשיתי את עדכון ממשק המשתמש קודם.

לייק 1

I haven’t been able to reproduce the problem, but I did find one possible problem which is specific to the way UI-based upgrades work. This should take care of it:

It also forces a recompilation, so sites that have already been affected by this bug will be sorted after their next update.

5 לייקים