Warning: mysqli_query(): MySQL server has gone away in /var/www/html/purabtech.in/wp-includes/wp-db.php on line 2169

Warning: mysqli_query(): Error reading result set's header in /var/www/html/purabtech.in/wp-includes/wp-db.php on line 2169
PHP – purabtech.in

Cakephp Invalid key for decrypt(), key must be at least 256 bits (32 bytes) long: Solved

In cakephp 3 I tried to set cookie in my controller using write cookie method. Error got invalid key for decrypt(), key must be at least 256 bits (32 bytes) long – used following line of code. $this->Cookie->write(‘username’, ‘test’, true, ‘1 year’); I got following error after execting page. Invalid key for decrypt(), key must …

cakephp 3 getOriginalSubject undefined index issue fixed

I am using cakephp 3.1 for development one of my portal. While configuring email Igot undefined index getOriginalSubject in DebugkitTransport.php. I searched for some time on net for solution but I did not find any solution. This function tries to get subject from email obejct. I think this is bug in cakephp 3.1. My solution …

Get base url or development URL in cakephp 3 and use in view ctp file

Getting baseurl in any framework is easy. But development URL in cakephp 3 in view file…took time…For adding css or js or other purpose we need base path cakephp. While doing development my path was http://localhost/cakephp3/. I wanted to fetch that in my site. Their are many ways we can get the path. You can …

Solved : Channel pear is already initialized

I faced channel pear installation issue many times on many linux OS. I installed the pear package first then I removed pear package from linux box. Then when I again tried to install the pear package on box I got the following error. I solved the channel pear issue using following commands. Solved : Channel …

Cakephp installation and blog tutorial step by step

CakePHP is one of the best PHP MVC framework which is purely inspired by Ruby on Rails. I worked on ROR for many years. So I know CakePHP has very similar ROR standards. Here In this article I will show you about CakePHP installation on linux box in very detailed information. I created the very …

install php mysql apache on centos 7

In this tutorial we are going to tell you how to install php mysql apache on centos 7 with very easy and simple steps and guide. LAMP is becoming more popular these day. Many people are using LAMP for server solutions. Add EPEL-7 to your linux os with latest phpMyadmin. rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm Now install …