Posts

Showing posts with the label workaround

Fix slack's icon tray missing in Ubuntu 17.04

After upgrading my computer to Ubuntu 17.04, the Slack's icon try gone missing. Here is a quick fix: 1. Edit /usr/share/applications/slack.desktop, and change the following line: Exec=/usr/binslack --disable-gpu %U to Exec=env XDG_CURRENT_DESKTOP=Unity /usr/bin/slack --disable-gpu %U 2. Restart slack to see the icon tray appears

LDAP authentication error in Tiki Wiki 16.2

Image
I just deployed a Tiki Wiki  16.2 instance on a Ubuntu 14.04 server. And then I was trying to add the LDAP authentication to it but the user got redirected to a blank page or error one saying that it could not be handled. It turns out that there is a bug in the PEAR module. Luckily, I could fix the bug by editing vendor_extra/pear/PEAR.php , renamed the following functions: function __construct($error_class = null) -> function PEAR($error_class = null) function __construct($message = 'unknown error', $code = null, -> function PEAR_Error($message = 'unknown error', $code = null, Remember, this is just a workaround. The fix was added in the daily build.

Ubuntu 14.04 php5-fpm throws unknown instance on service restart

After upgrading my Ubuntu server from 12.04 to 14.04 this morning, I tried to restart php5-fpm and got this error: Unknown job: php5-fpm It is a Ubuntu's bug:  https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1272788/ One workaround that works for me is: Create /etc/init/php5-fpm.override file with the single line "reload signal USR2" in it. Reference:   http://stackoverflow.com/questions/19998526/ubuntu-php5-fpm-throws-unknown-instance-on-reload