Version: 40183080d9
When trying to change any logo, I get the following error:
undefined method `calculate_dominant_color!' for #
In a support thread titled āCan not change logo on latest build,ā MarcP reports an error when uploading logos: undefined method calculate_dominant_color!'`. Falco suggests it may relate to recent placeholder changes, and david asks for more details, noting the error shouldnāt occur in a standard install and suspects a partial update or conflicting plugin. MarcP confirms the steps taken and notes unrelated hotlinked image errors in logs. david advises updating to the latest version or sharing plugin list. Eventually, MarcP reports the issue resolved after performing a rebuild, implying the prior update wasnāt fully applied via UI.
Version: 40183080d9
When trying to change any logo, I get the following error:
undefined method `calculate_dominant_color!' for #
Seems related to the placeholder changes @david
@MarcP Iām not able to reproduce this error on my site. Can you confirm exactly which buttons youāre pressing in the admin UI? Also, can you share the entire error message, plus the content of the ābacktraceā tab.
Settings > Search: āLogoā > Drag or upload a logo to any logo type (tried multiple) > popup with the error above.
For this error, somehow there is nothing in backtrace.
However, I see some errors, related to hotlinked images in posts but unrelated to the actions I did when uploading:
Most recent log is AM time, while Iām in PM time now.
The error message is very strange - I canāt see how that would happen in a regular Discourse installation. The version hash you quoted is from before the calculate_dominant_color! feature was introduced.
I suspect you either have a partially-applied update, or there is some third-party plugin installed which is modifying the code.
Could you try updating to the latest version? And if that doesnāt work, could you share a list of your plugins here?
After doing a rebuild (I did the previous update last night with UI) - it seems to be working as it should again.