Project:Auto Tagging
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

Related to #679990: Error log entries failing and causing more errors on creation of new nodes, I get

Notice: Use of undefined constant WATCHDOG_SEVERE - assumed 'WATCHDOG_SEVERE' in autotagging_calais_autotagging_api_node_insert() (line 51 of /work/drupal-contrib/autotagging/modules/autotagging_calais/autotagging_calais.module).
PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'WATCHDOG_SEVERE' for column 'severity' at row 1: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => autotagging_calais [:db_insert_placeholder_2] => Received response code 414 from OpenCalais [:db_insert_placeholder_3] => N; [:db_insert_placeholder_4] => WATCHDOG_SEVERE [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://7x:8888/node/add/article?render=overlay&render=overlay [:db_insert_placeholder_7] => http://7x:8888/node/add/article?render=overlay [:db_insert_placeholder_8] => 127.0.0.1 [:db_insert_placeholder_9] => 1310001063 ) in dblog_watchdog() (line 157 of /work/drupal-contrib/clean-7x/modules/dblog/dblog.module).

Attached patch fixes.

AttachmentSize
watchdog-error.patch6.92 KB

Comments

#1

D'oh. Not that patch!!!

THIS one.

AttachmentSize
watchdog-1211390-1.patch 805 bytes

#2

Status:active» reviewed & tested by the community

Yup. I ran into that same problem. Applied the patch (in #1) and it worked great.

nobody click here