Needs work
Project:
Sentry server
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2011 at 14:07 UTC
Updated:
25 Jan 2012 at 09:16 UTC
Jump to comment: Most recent file
Comments
Comment #1
carsten müller commentedminor improvement to last patch
Comment #2
carsten müller commentedanother patch to fix two E_Notices
made by amatzies - http://drupal.org/user/1142832
Comment #3
carsten müller commentedanother patch for the admin settings of the included modules to display them as local tasks (tabs)
Comment #4
snufkin commentedI commited the patch in #2 and #3. I really appreciate the patches and want to help getting them into the module, but it would help my job tremendously if you could open a new issue for each main patch and not adding them as separate comments.
This is also relevant for the last patch for instance, I am very happy to fix coding style issues, but when they are coupled with bugfixes the patch is very hard to review.
Comment #5
snufkin commentedI am trying to commit the notice fixes one by one, but if you could explain the SEO and HTTP check fixes that would be helpful.
Comment #6
carsten müller commentedHi snufkin,
sorry, ok i will open new issues in the future. But in main, most of the patches just fix warnings and PHP E_Notice errors.
You can check set by changing your error_reporting to E_ALL. Default setting is E_ALL & ~E_Notice. So by default the notices are not displayed. The coding styles are fixes in my IDE. I just set up my notebook.
here some explanations of the top patch (#0)
sentry_server.module
line 258
This is a fix to catch warnings if the hostname is not set. Before the foreach it would be nice to check also if $enabled_plugins is not empty
line 597:
Before $count was just incremented. That causes an E-Notice because $count is not initialised. Same with $http[$record->code].
line 609:
same with $report['description'], $args and $class
sentry_performance.module
also some patches to fix E-Notices by initialising some variables
sentry_seo.module
some patches to fix E-Notices by initialising some variables
sentry_server_cron.module
initialising of $cron[$record->code] if empty
sentry_server_update.module
added check to just start the query if $project['title'] is really set
sentry_server_update_projectpage.inc
just initialised $output to fix E-Notice
Comment #7
carsten müller commentedPatch from #1
same as the first patch (#0), just added some initialisings of variables to fix further E_Notices
Comment #8
carsten müller commented#2 - fix_notices patch
sentry_server.module
changed check from
to
So it will also be checked if $available_plugins[$key]['handler'] is set to avoid an E_Notice
sentry_server_update.module
Added $project->project_id = $project_id to fixwriting of project_id which was missing in $project object
Comment #9
carsten müller commented#3 - admin link settings patch
sentry_server.module
no changes, my IDE made a wrong patch. There are no changes
sentry_server_cron.module and sentry_server_update.module
Just added 'type' => MENU_LOCAL_TASK, to the menu item. Then the Link is also dislayed as a tab on top of the settings. so it is easy to switch between the administration settings of sentry server sentry server cron and sentry server update. It is just a small improvement.
Comment #10
carsten müller commentedDuring my review i saw that there are many changes marked in he patch, which are no changes in deed. My IDE (Eclipse) made some mistakes. I will check that.