Hi,
Aegir freshly upgraded from 1.4 to 1.6. Prior to the upgrade none of these undefined properties existed. As part of the upgrade I upgraded from Drush 4.4 to 4.5. This is on RHEL 6 with PHP 5.3.3.
The following are output at the end of the log when cloning a site.
Undefined index: aliases hosting_clone.drush.inc:48
Undefined index: redirection hosting_clone.drush.inc:49
Undefined property: stdClass::$ssl_key hosting_ssl.nodeapi.inc:186
Undefined property: stdClass::$ip_addresses hosting.ip.inc:43
Undefined property: stdClass::$last_cron hosting_site.nodeapi.inc:151
Undefined property: stdClass::$old_vid hosting_site.nodeapi.inc:152
Undefined property: stdClass::$executed hosting_task.module:546
Undefined property: stdClass::$delta hosting_task.module:546
Undefined property: stdClass::$ssl_enabled hosting_ssl.nodeapi.inc:192
Undefined property: stdClass::$ssl_key hosting_ssl.nodeapi.inc:192
Undefined property: stdClass::$ssl_enabled hosting_ssl.nodeapi.inc:192
I suspect this has to do with the upgraded to Drush 4.5 as I also am now receiving the very annoying Function ereg() is deprecated file.inc:962 alert a kazillion times.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | hostmaster-1358768-notices.patch | 4.81 KB | steven jones |
| #1 | 1120848_drush_error_handler_2.patch | 1.35 KB | themusician |
Comments
Comment #1
themusician commentedAll of these errors went away after patching drush/includes/environment.inc
I first tried using the following patch, http://drupal.org/files/issues/1120848_drush_error_handler_1.patch, but the patch balked at me. Perhaps a few lines of code have been added to 4.5 since the patch was made.
However, I remade the patch and have uploaded it here. Applying the patch solved the problem for me. No errors output to the log, and the Undefined property notices also dissappear.
Comment #2
steven jones commentedThanks for the patch but ignoring the notices is plainly the wrong way to go :)
I'll fix them instead.
Comment #3
steven jones commentedFixed all those notices in http://drupalcode.org/project/hostmaster.git/commit/d0a40c2
Comment #4
themusician commentedThanks for the proper fix.
Comment #5
omega8cc commentedThis fix needs to be ported to 6.x-2.x:
Comment #6
omega8cc commentedOr is it a separate issue?
Comment #7
omega8cc commentedThis giant patch is missing in 6.x-2.x
Comment #8
omega8cc commentedNote however that it introduces bug #1498102: Dates and times are incorrect on freshly created tasks
Comment #9
themusician commentedI concur that 1.7 introduces the bug referenced by omega8cc.
A test backup task after the upgrade claims it was executed on Wed, 12/31/1969 - 17:00.
Comment #10
omega8cc commentedMoving this to the correct queue.
Comment #11
omega8cc commentedI tested this patch with my forked copy, but it didn't help for 6.x-2.x, so there must be something 6.x-2.x unique, maybe because Provision 6.x-2.x is different?
Comment #12
omega8cc commentedAlso, in the future, please separate whitespace cleaning as it makes the patch hard to read.
Comment #13
steven jones commentedHere's the patch I'm about to apply to hostmaster 6.x-2.x.
Comment #14
steven jones commentedCommitted.
Comment #15
omega8cc commentedOh, no.
This patch introduces a known bug:
Plus, it doesn't resolve 6.x-2.x issues, as explained above.
Comment #16
steven jones commentedNo, I've fixed those further issues with the same follow up commits too.
This issue is about notices originally in 6.x-1.x, please raise a new issue for new notices in 6.x-2.x.
Comment #17
omega8cc commentedJust to confirm - all those "Undefined property" notices *are* fixed also in 6.x-2.x. Thanks!