Fix the error: symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0 in Archlinux

I just did a fresh install of ArchLinux and after concluding, when trying to enter Xfce My entire screen would go black, the background would start to flicker and nothing would load.

Looking in the logs I found that it threw me this error:

symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:...

So I started researching until I found the solution.

Where was the problem? When I finished installing I updated the system and it seemed to me that everything was normal, however, it was not. It didn't actually update the base system packages for me. Why? Because there was a file in /etc/profile.d/ called locale.sh which was getting into conflict and not letting update packages.

This file contained the following:

export LANG=en_US.UTF-8

When in fact, it should contain other things. Anyway, what I did was delete said file:

rm /etc/profile.d/locale.sh

and update the system again:

$ sudo pacman -Syu

I rebooted and everything was back to normal.