Posts under Open Source

Bootstrap 3: Responsive image align center

advertisement

bootstrapIf you are using Bootstrap 3, you might come into a problem where you can use .text-center to align text to center but not image. There are many different work around to solve this issue including wrapping the image within a .text-center div or overriding the .img-responsive class. Although there are many different work around to align image to center in Bootstrap 3, i just found a very convenient way to solve this issue.

bootstrap-center-image

To align image to center in Bootstrap 3, you can try the code below:-

Continue reading Bootstrap 3: Responsive image align center »

Prestashop 1.6: “Unexpected token <” error when upload category thumbnail

advertisement

prestashopRecently i tried to upgrade a Prestashop system from version 1.5 to 1.6. The upgrade scripts shows no error, but when i go there are some hiccups at the backend. When i tried to upload thumbnail for my category, the upload failed. And it show the error message “Unexpected token <“. After some testing and debugging still the same, at the end i tried to reset the Category module and it magically solve the problem!

prestashop category thumbnail upload error, unexpected  token

To solve “Unexpected token <” error when upload category thumbnail in prestashop 1.6, follow the steps below:-

Continue reading Prestashop 1.6: “Unexpected token <” error when upload category thumbnail »

MySQL 5.5 PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password]

advertisement

mysql-poweredJust upgrade one of my MySQL from 5.0 to 5.5 using WHM MySQL Upgrade tools. The upgrade went smooth. Right after i think everything is ok, some of my website show error while performing db query “Warning: PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password]”. That website is being developed using an old symfony 1.4 framework. I can see many people are facing the same problem and there are various solution. And i found one that works for me and i’m going to show it here.

To solve: MySQL 5.5 – PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password], follow the steps below:-

Continue reading MySQL 5.5 PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password] »