Depreciation Notice Error in Phpmyadmin With Ubuntu16.04

If you see the error notice properly you can understand what does it means. This error notice means some of your PHP has old constructors. So if you replace these old constructors with new constructor then the problem will be solved.

Depreciation Notice Error in Phpmyadmin With Ubuntu16.04

 

To do this, open streems.php file by this command.

sudo gedit /usr/share/php/php-gettext/streams.php

 StringReader Error: To find it go to line number 52 then

//Replace this line
function StringReader ($str='') {

//with
function __construct($str='') {

 

FileReader Error: To find it go to line number 90 then

//Change this
function FileReader ($str='') {

//To
function __construct($str='') {

 

CacheFileReader Error: To find it go to line number 146 then

//Change this
function CacheFileReader ($str='') {

//To
function __construct($str='') {

Then save & close the file. After that open gettext.php file by this command.

sudo gedit /usr/share/php/php-gettext/gettext.php

Go to line number 101 then

// Replace this line
function gettext_reader($Reader, $enable_cache = true) {

//With
function __construct($Reader, $enable_cache = true) {

Create NGINX Virtual Host with PHP 7.0

Here I have shared a script for creating NGINX virtual host with PHP 7.0. NGINX virtual host with  5.x and 7.0 is very similar but only different is php5-fpm.sock location. To create a NGINX virtual host open the configuration files by running this command.

sudo gedit /etc/nginx/sites-available/default

And then copy-pastes this code snippet and modify it by your configuration (information). Then restart your server. And you are ready to go.

See it for creating virtual host with PHP 5.x

How to solve Error: symbol ‘grub_term_highlight_color’ not found

A few days ago I was upgraded up operating system (ubuntu) 13.10 to 14.04 LTS version and when I booted my computer I got an error like that.

Error: symbol ‘grub_term_highlight_color’ not found

Entering rescue mode.

grub rescue >

How to solve Error: symbol 'grub_term_highlight_color' not found
How to solve Error: symbol ‘grub_term_highlight_color’ not found

 

After that, I have solved the error by doing some study on it. But badly the solution is too confusing and complex for newbie ubuntu user. So this post for newbie user how they can easily solve that problem.

You have to boot your computer from live CD/DVD or bootable pen drive and then choose ‘Try Ubuntu’ option once you got ”Try Ubuntu  and Install Ubuntu’ option. Then run this command in your terminal

Once this linux command is executed then a box will appear called Boot Repair. Here you have to select ‘Recommended repair’

 

Boot Repair
Boot Repair

It will take some time and finally you have to reboot  your machine. This is the easiest solution as I know.