Month: April 2015

Solving Drupal error: PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

The problem After downloading a Drupal project I am working on, and importing its database I got this kind of message related with a PDO Exception: Additional uncaught exception thrown while handling exception. PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT s.lid, t.translation, s.version FROM {locales_source} s LEFT JOIN {locales_target} t ON s.lid = t.lid […]

Read More

How to use Plugin jsencode in IBM WCM 8.5

The problem JSON is the current format by excellence for sending messages and getting information via web services. But we usually have a big problem because of special characters like double quotes, let’s go back for a moment to remember how a well-formatted JSON looks: { “field” : “value” } As you know, previous is a […]

Read More

How to use Plugin ifNotEmpty in IBM WCM 8 and 8.5

The challenge Imagine you want to know if there is a non-empty value in any element of a Authoring Template, because if there is no value, then a set of HTML tags should not be generated; well, maybe you could solve this problem by using a small JavaScript code, but, let’s face it, most of our […]

Read More