Technical Blog

Zyxware default image4
| 2 min read
Many Drupal users have encountered a Duplicate entry error when adding a new node to their Drupal sites. The error message is as follows "# user warning: Duplicate entry '0' for key 2 query: INSERT INTO node (vid, type, language, title, uid, status, created, changed, comment, promote, moderate, sticky, tnid, translate) VALUES (0, 'page', 'es', 'eee', 1, 1, 1222437644, 1222437644, 2, 1, 0, 0, 0, 0) in /var/www/webapps/drupal6/includes/common.inc on line 3318. # user warning: Duplicate entry '0' for key 1 query: INSERT INTO node_comment_statistics (nid, last_comment_timestamp, last_comment_name, last_comment_uid, comment_count) VALUES (0, 1222437644, NULL, 1, 0) in /var/www/webapps/drupal6/modules/comment/comment.module on line 607." If you are encountering the same error in your Drupal site then read on to find out the fix.
Zyxware default image1
| 3 min read
Many Drupal users have encountered a Crashed Drupal Sessions table with the error mesage similar to "Table './dbname/sessions' is marked as crashed and should be repaired query: sess_write UPDATE sessions SET uid = 0, cache = 0, hostname = '67.195.112.119', session = 'localizer_contentlanguages|s:20:\"a:1:{s:3:\"eng\";i:1;}\";', timestamp = 1277138140 WHERE sid = '2cdf7dd30bd3ce06f5b9576d7da5a232' in /home/domain/public_html/includes/database.mysql.inc on line 174" If you are facing this error message in your Drupal site then read on to know how to fix it.
Zyxware default image2
| 2 min read
We had come across many situations while developing Drupal based websites where we had to create Javascript popups without using third party Javascript libraries. Third party libraries often lead to dependency issues or conflicts with existing Javascript functionalities. If you want to know how to create a simple Javscript popup in your Drupal website without using third party Javascript libraries then continue reading.
Zyxware default image3
| 3 min read
It is easy to show an image pop-up in Colorbox using Views in a Drupal website. You just have to change the image formatter in Views. However if you don't have a View and you still want to load the image in Colorbox, you can do it using jQuery. Read on to know how to load an image in Colorbox using jQuery in a Drupal 7 website.
Zyxware default image3
| 2 min read
We have been facing the error message "Fatal error: Class 'PDO' not found in includes/database/database.inc on line 184" in one of our Drupal sites. Googling up the error text had brought out a number of solutions which did not help to resolve the error in our case as there is no single cause of the error. However we managed to solve it using a different method. If you are facing the same scenario in your Drupal site and want to know how to solve fatal error with Class 'PDO' in Drupal sites the continue reading for the solution.
Zyxware default image4
| 2 min read
Today many websites use social media buttons(Facebook, Google plus, etc). One of the modules we use in our Drupal sites is Add This. However we have to copy the code to the block each time we want to alter the theme. Often we will not get the proper icon we are looking for. In such a scenario we can implement this functionality using the Drupal Widgets and Social Media module. If you are facing any problems with installing the Widgets and Social Media module and want to know how to install and configure the Widgets and Social Media module in Drupal 7 then follow the instructions given below.
Zyxware default image2
| 2 min read
Recently we had faced a problem in a Drupal site after installing Memcached on a server with CentOS and having csf as firewall. Memcache is a process which is always running in memory and the server is configured to send automated mails regarding this process. So we need to exclude this process from csf. If you are facing the same problem in your Drupal site and want to know how to whitelist a process in csf, then read on to get the solution