Interesting date warning to keep in mind
Caused by Event.module:
2048 date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead
basically i think it's saying event.module does not follow date best practices
Date thing filed for future reference.
Here's what I'm actually trying to track down and my notes on it:
maybe:
tail -f /var/log/apache2/error.log
To just put it on the screen?
/etc/php5/apache2/php.iniCannot use a scalar value as an array in form.inc line
Type
php
Date
Friday, November 2, 2007 - 12:06
User
New Test
Location
http://dev.wsf2008.net/eng/node/add/action
Referrer
http://dev.wsf2008.net/eng/node/add/action
Message
Cannot use a scalar value as an array in /var/www/wsf2008/includes/form.inc on line 854.
Severity
error
Hostname
209.6.110.123drupal_set_message('' . print_r(debug_backtrace(), TRUE) . '');
don't wrap in var_dump with set_message
var_dump()
Here's what I'm playing with at the moment. The proper home for super-sensitive error reporting will be devel.module, eventually, but it and I need a little time apart.
function wsf_action_init() {
drupal_set_message('Initiate');
set_error_handler('wsf_action_backtrace_error_handler');
}
function wsf_action_backtrace_error_handler($errno, $message, $filename, $line) {
if ($errno != '8') {
drupal_set_message($errno . ' ' . $message);
// drupal_set_message('Who you gonna call? <pre>' . print_r(debug_backtrace(), TRUE) . '</pre>');
}
}
Check out what happens with errno 8 allowed!
# Initiate
# 8 Undefined index: imagefield
# 8 Undefined index: type
# 8 Trying to get property of non-object
# 8 Undefined variable: items
# 8 Undefined variable: items
# 8 Undefined variable: items
# 8 Object of class stdClass could not be converted to int
# 8 Object of class stdClass could not be converted to int
# 8 Undefined variable: output
# 8 Undefined index: needs_table_header
# 8 Trying to get property of non-object
# 8 Undefined index: args
# 8 Undefined index: args
# 8 Undefined index: args
# 8 Undefined index: fail
# 8 Undefined index: args
# 8 Undefined index: image_blok
# 8 Use of undefined constant length - assumed 'length'
# 8 Use of undefined constant length - assumed 'length'
# 8 Undefined index: level
# 8 Undefined variable: output
# 8 Undefined property: stdClass::$image_nid
# 8 Undefined variable: tags
# 8 Undefined index: image
# 8 Undefined variable: image_attributes
# 8 Undefined property: stdClass::$image_nid
# 8 Undefined variable: tags
# 8 Undefined index: image
# 8 Undefined variable: image_attributes
# 8 Undefined property: stdClass::$image_nid
# 8 Undefined variable: tags
# 8 Undefined index: image
# 8 Undefined variable: image_attributes
# 8 Undefined property: stdClass::$image_nid
# 8 Undefined index: image
# 8 Undefined variable: image_attributes
# 8 Undefined property: stdClass::$image_nid
# 8 Undefined index: image
# 8 Undefined variable: image_attributes
# 8 Undefined property: stdClass::$image_nid
# 8 Undefined variable: tags
# 8 Undefined index: image
# 8 Undefined variable: image_attributes
# 8 Undefined variable: feed
# 8 Undefined variable: feed
# 8 Undefined property: stdClass::$args
# 8 Undefined variable: title
# 8 Undefined variable: title
# 8 Undefined property: stdClass::$region
# 8 Undefined index: bottom
# 8 Undefined index: page
# 8 Undefined property: stdClass::$in_preview
# 8 Undefined property: stdClass::$in_preview
# 8 Trying to get property of non-object
# 8 Undefined index: page
# 8 Undefined variable: eid
# 8 Undefined index: left
# 8 Undefined index: page
# 8 Undefined property: stdClass::$in_preview
# 8 Undefined property: stdClass::$in_preview
# 8 Trying to get property of non-object
# 8 Undefined index: page
# 8 Undefined variable: eid
# 8 Undefined index: middle
# 8 Undefined index: page
# 8 Undefined property: stdClass::$in_preview
# 8 Undefined property: stdClass::$in_preview
# 8 Trying to get property of non-object
# 8 Undefined index: page
# 8 Undefined variable: eid
# 8 Undefined index: right
# 8 Undefined property: stdClass::$region
# 8 Undefined property: stdClass::$subject
# 8 Undefined index: top
# 8 Undefined index: value-type
# 8 Undefined variable: output
# 8 Undefined index: needs_table_header
# 8 Trying to get property of non-object
# 8 Undefined index: args
# 8 Undefined index: args
# 8 Undefined index: args
# 8 Undefined index: fail
# 8 Undefined index: args
# 8 Undefined index: actionmap
# 8 Undefined index: level
# 8 Undefined variable: output
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: module
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: module
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: module
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: module
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: module
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: module
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: module
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: handler
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: module
# 8 Undefined index: #id
# 8 Undefined index: #attributes
# 8 Undefined index: id
# 8 Undefined index: shapes
# 8 Undefined index: feed
# 8 Undefined variable: output
# 8 Undefined variable: feed
# 8 Undefined variable: feed
# 8 Undefined property: stdClass::$args
# 8 Undefined variable: title
# 8 Undefined variable: title
# 8 Undefined variable: output
# 8 Undefined index: value-type
# 8 Undefined variable: output
# 8 Undefined index: needs_table_header
# 8 Trying to get property of non-object
# 8 Undefined index: args
# 8 Undefined index: args
# 8 Undefined index: args
# 8 Undefined index: fail
# 8 Undefined index: args
# 8 Undefined index: actions
# 8 Undefined index: level
# 8 Undefined variable: output
# 8 Undefined index: visible
# 8 Undefined index: visible
# 8 Undefined index: visible
# 8 Undefined index: visible
# 8 Undefined index: visible
# 8 Undefined variable: feed
# 8 Undefined variable: feed
# 8 Undefined property: stdClass::$args
# 8 Undefined variable: title
# 8 Undefined variable: title
# 8 Undefined property: stdClass::$region
# 8 Undefined variable: output
# 8 Undefined index: needs_table_header
# 8 Trying to get property of non-object
# 8 Undefined index: args
# 8 Undefined index: args
# 8 Undefined index: args
# 8 Undefined index: fail
# 8 Undefined index: args
# 8 Undefined index: newsblocknpage
# 8 Undefined index: level
# 8 Undefined variable: output
# 8 Undefined index: visible
# 8 Undefined index: visible
# 8 Undefined variable: feed
# 8 Undefined variable: feed
# 8 Undefined property: stdClass::$args
# 8 Undefined variable: title
# 8 Undefined variable: title
# 8 Undefined property: stdClass::$region
# 8 Undefined variable: output
# 8 Undefined variable: output
# 8 Undefined variable: output
Comments
Post new comment