Friday, December 9, 2016

Ubuntu Boot Error - Fixing Recursive Fault Issue


Solution :

sudo nano /etc/default/grub
Change the line
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash” 
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=off"
And then update grub
sudo update-grub

Monday, November 14, 2016

PHP Parse error: syntax error, unexpected '$value' (T_VARIABLE)

PHP Parse error:  syntax error, unexpected '$value' (T_VARIABLE)

If you are getting this error for specific php keywords used in code like yield, you need to upgrade your php version. May be you have php 5.4 or lower version, upgrade it to php 5.5 or php 5.6 or higher.

PHP Fatal error: Call to undefined function mb_strpos()


Solution :

php-mbstring package is not installed on your Linux distribution.

Install it.

If you are using Debian or Ubuntu
sudo apt-get install libapache2-mod-php5
If you are using Fedora or CentOS
yum install php-mbstring

Restart apache and try again.