Tag: Drupal

How to fix: Drupal “user warning: Unknown column…” error

Exact error message: … user warning: Unknown column ‘page’ in ‘where clause’ query: [function_name] /* [username] : [function_name] */ SELECT n.nid FROM node n WHERE n.type = page AND n.status = 1 ORDER BY n.created DESC LIMIT 0, 5 in /home/user/public_html/path/to.module on line 294. … Th query in question: $result = db_query(‘SELECT n.nid FROM {node} n WHERE n.type = %s…

Read More »

How to disable Drupal comment block timestamp?

Drupal is a free software package that allows an individual or a community of users to easily publish, manage and organize a wide variety of content on a website. Official website: http://drupal.org We will disable the comment block timestamp, something like this: # Lorem ipsum… 1 weeks 1 day ago # Lorem ipsum… 1 day ago After hack: # Lorem…

Read More »