Closed (fixed)
Project:
Coder
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
27 Oct 2009 at 12:03 UTC
Updated:
12 Jan 2010 at 02:30 UTC
Jump to comment: Most recent file
Code review doesn't display results table because of api changes in hook_theme, see #600974: theme() fails for theme functions taking one argument in renderable arrays
Thos are the messages i got:
* Notice: Undefined index: render element in theme() (line 803 of /home/sauditor/workspace/nowblogging/includes/theme.inc).
* Notice: Undefined index: form in theme_coder_review_table_cols() (line 534 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Warning: Invalid argument supplied for foreach() in theme_coder_review_table_cols() (line 537 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Warning: Invalid argument supplied for foreach() in theme_coder_review_table_cols() (line 546 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Notice: Undefined index: render element in theme() (line 803 of /home/sauditor/workspace/nowblogging/includes/theme.inc).
* Notice: Undefined index: form in theme_coder_review_table_cols() (line 534 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Warning: Invalid argument supplied for foreach() in theme_coder_review_table_cols() (line 537 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Warning: Invalid argument supplied for foreach() in theme_coder_review_table_cols() (line 546 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Notice: Undefined index: render element in theme() (line 803 of /home/sauditor/workspace/nowblogging/includes/theme.inc).
* Notice: Undefined index: name in theme_coder_review() (line 1950 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Notice: Undefined index: filename in theme_coder_review() (line 1951 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Notice: Undefined index: results in theme_coder_review() (line 1952 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Notice: Undefined index: render element in theme() (line 803 of /home/sauditor/workspace/nowblogging/includes/theme.inc).
* Notice: Undefined index: name in theme_coder_review() (line 1950 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Notice: Undefined index: filename in theme_coder_review() (line 1951 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Notice: Undefined index: results in theme_coder_review() (line 1952 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Notice: Undefined index: render element in theme() (line 803 of /home/sauditor/workspace/nowblogging/includes/theme.inc).
* Notice: Undefined index: name in theme_coder_review() (line 1950 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Notice: Undefined index: filename in theme_coder_review() (line 1951 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
* Notice: Undefined index: results in theme_coder_review() (line 1952 of /home/sauditor/workspace/coder/coder_review/coder_review.module).
Attached is a patch that fixes the issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | coder-review-hook_theme-03.patch | 1.88 KB | cedarm |
| #4 | coder-review-hook_theme-02.patch | 1.24 KB | ilo |
| coder-review-hook_theme-01.patch | 1.51 KB | sanduhrs |
Comments
Comment #1
sanduhrsThe Select specific modules and Select specific themes fieldsets aren't populated aswell.
Comment #2
deviantintegral commentedThis patch works for me at first blush - remember to clear your caches.
Comment #3
ilo commentedI also tested and no errors in theme.
Comment #4
ilo commentedActually, it fixes the errors from theme, but make form hidden for render function. This is an updated patch.
Comment #5
pwolanin commentedpatch seems to work for me
Comment #6
JacobSingh commentedWorks for me to.
Comment #7
ilo commentedperhaps coder_upgrade should be included in this patch, it is not updated, and shows some warnings.
Comment #8
cedarm commentedI think these coder_upgrade warnings will only show up if you have no modules enabled which implement hook_upgrades(). $upgrades_sort just needs to be initialized to an empty array(). Tacked this onto the end of the patch.
Comment #9
solotandem commentedRegarding #7 and #8, Coder upgrade has been fixed. The warnings related to the reversal of the registry changes which again requires manual inclusion of code files.
Comment #10
dave reidComment #11
dave reidConfirmed the patch makes coder review work with current D7 HEAD.
Comment #12
dave reidSide note, if any of the current maintainers would approve of me being added as a co-maintainer for these types of HEAD-chasing issues, I'd love to help be able to commit these types of changes. I'm already assisting with admin_menu and devel with this same work.
Comment #13
solotandem commentedFixed in the next dev release.
cedarm, thanks for the patch.