Using 6.x-2.8 I am seeing log errors due to D7 constants that are not defined in D6:

[10-Aug-2009 15:15:21] PHP Notice:  Use of undefined constant ERROR_REPORTING_DISPLAY_ALL - assumed 'ERROR_REPORTING_DISPLAY_ALL' in /sites/all/modules/simpletest/simpletest.function.inc on line 181
[10-Aug-2009 15:15:21] PHP Notice:  Use of undefined constant ERROR_REPORTING_DISPLAY_ALL - assumed 'ERROR_REPORTING_DISPLAY_ALL' in /sites/all/modules/simpletest/simpletest.function.inc on line 182
[10-Aug-2009 15:15:21] PHP Notice:  Use of undefined constant ERROR_REPORTING_DISPLAY_SOME - assumed 'ERROR_REPORTING_DISPLAY_SOME' in /sites/all/modules/simpletest/simpletest.function.inc on line 182

Comments

pwolanin’s picture

possibly you can just remove it like so:

Index: simpletest.function.inc
===================================================================
--- simpletest.function.inc	(revision 7671)
+++ simpletest.function.inc	(working copy)
@@ -176,13 +176,8 @@
     }
   }
   else {
-    // Display the message if the current error reporting level allows this type
-    // of message to be displayed, and unconditionnaly in update.php.
-    $error_level = variable_get('error_level', ERROR_REPORTING_DISPLAY_ALL);
-    $display_error = $error_level == ERROR_REPORTING_DISPLAY_ALL || ($error_level == ERROR_REPORTING_DISPLAY_SOME && $error['%type'] != 'Notice');
-    if ($display_error || (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'update')) {
-      drupal_set_message(t('%type: %message in %function (line %line of %file).', $error), 'error');
-    }
+    // Display the error message.
+    drupal_set_message(t('%type: %message in %function (line %line of %file).', $error), 'error');
 
     if ($fatal) {
       drupal_set_title(t('Error'));
pwolanin’s picture

Title: missing D7 constants cause fatal error in 6.x » missing D7 constants cause notices in 6.x
boombatower’s picture

Title: missing D7 constants cause notices in 6.x » Missing D7 constants
Assigned: Unassigned » boombatower
Status: Active » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.