Gabor,
using D6.x (which prints all PHP E_ALL notices), some unwanted warnings are displayed:
* Fieldset without '#attributes' predefined. Its fixed by replacing the line 1515 on includes/form.inc
return '<fieldset'. (!empty($element['#attributes']) ? drupal_attributes($element['#attributes']) : '') .'>'. ($element['#title'] ? '<legend>'. $element['#title'] .'</legend>' : '') . (isset($element['#description']) && $element['#description'] ? '<div class="description">'. $element['#description'] .'</div>' : '') . (!empty($element['#children']) ? $element['#children'] : '') . (isset($element['#value']) ? $element['#value'] : '') ."</fieldset>\n";
* Taxonomy terms, when created/edited, call taxonomy_term_path() and was supposed to give an OBJECT $term, but sometimes its just the term ID.
Its fixed by replacing the line 100 on modules/taxonomy.module (well... it fixes the taxonomy_term_path() function instead fixing the calling)
if (is_object($term)) {
$vocabulary = taxonomy_vocabulary_load($term->vid);
if ($vocabulary->module != 'taxonomy' && $path = module_invoke($vocabulary->module, 'term_path', $term)) {
return $path;
}
return 'taxonomy/term/'. $term->tid;
}
return 'taxonomy/term/'. $term;
Sorry for not providing the patch file.
regards,
massa
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | remove-xmlrpc-notices-318218-13-D6.patch | 1.05 KB | Jorrit |
| #11 | remove-xmlrpc-notices-318218-11-D6.patch | 920 bytes | Jorrit |
| #7 | 318218-notices.patch | 920 bytes | Jorrit |
Comments
Comment #1
brmassa commentedComment #2
Anonymous (not verified) commentedThere is no patch.
Comment #3
brmassa commentedGabor,
another place where E_ALL warning pop up. This patch will fix. See
includes/xmlrpc.inc, line 70regards,
massa
Comment #4
dpearcefl commentedIs this still an issue using current Drupal 6?
Comment #5
Jorrit commentedThe xmlrpc issue is still present, and the fix proposed by brmassa is still valid.
Comment #6
Anonymous (not verified) commentedNo file has been attached to this issue to review so there is nothing to review.
Comment #7
Jorrit commentedDone
Comment #8
Anonymous (not verified) commentedNeeds work because the name of your file doesn't followed the prescribed method.
http://drupal.org/node/1319154
http://drupal.org/node/707484
http://drupal.org/patch/submit
Comment #9
Jorrit commentedI will do this soon.
However, I notice that your first link says: "git diff > [description]-[issue-number]-[comment-number].patch" while the second one says: "git diff > [project_name]-[short-description]-[issue-number]-[comment-number].patch"
What format do you want?
Secondly, should I add -D6 or not? This bug already seems to be fixed in D7, although in a slightly different way. The patch therefore does not need backporting. I will update the patch file to use that method to keep the code the same, just in case there is some future update to both files.
Comment #10
Anonymous (not verified) commented"git diff > [description]-[issue-number]-[comment-number].patch" for core patches
"git diff > [project_name]-[short-description]-[issue-number]-[comment-number].patch" for contrib module patches.
Unless the patch is for the most recent HEAD version which is current D8 then you should always add -D# where # represent the Drupal version the patch is for. It is main to help out the testbot. In this case it should end in -D6.
Comment #11
Jorrit commentedThanks for the clarification.
I have read the pages and http://drupal.org/node/1054616 says:
So I wonder whether the test bot picks up this patch. We'll see.
And:
Comment #13
Jorrit commentedRerolled.