Closed (fixed)
Project:
Feedback
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2006 at 02:08 UTC
Updated:
16 Feb 2007 at 01:30 UTC
Jump to comment: Most recent file
I had problems making this module work on the latest cvs. The attached patch fixes the bugs I found.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | feedback.module_5.patch | 4.63 KB | stefano73 |
| #4 | feedback-5.0.patch | 9.87 KB | wrunt |
| #2 | feedback.info | 176 bytes | filiptc |
| feedback.patch.txt | 5.62 KB | stefano73 |
Comments
Comment #1
kbahey commentedThank you for this patch.
I will wait for a while, since it is a bit to early to branch for 5.0.
Comment #2
filiptc commentedFirst of all, here is the needed .info file.
Patch does definitely not work for me (drupal 5 RC1). I get a blank page after activating the module (however it never seems to activate so drupal keeps on working fine). I get the error:
PHP Fatal error: Call to undefined function _feedback_add_page() in feedback.install on line 26, referer: http://localhost/admin/build/modulesI did what I could to figure out what's going on although I'm not into php so I did not get far...
Porting this module to v.5 urges as RC1 is out.
Phil
Comment #3
kbahey commentedPatch does not apply cleanly.
Please roll a new patch.
Setting priority to normal.
Comment #4
wrunt commentedHere's a re-rolled version of stefano73's patch against the current cvs.
Comment #5
kbahey commentedThanks
I committed this to HEAD, so the dev package for feedback should be created soon.
When someone tests that and confirms it is working, I will tag the module for 5.0, then we will have an official version.
Comment #6
wnoronha commentedThe issue with the _feedback_add_page failing during a new install.
The fix: add require_once 'feedback.module';
Changes to the menu to make it more standard.
/**
* Implementation of hook_menu().
*/
function feedback_menu($may_cache) {
$items = array ();
if ($may_cache) {
$items[] = array (
'path' => 'feedback',
'title' => t('Feedback'),
'callback' => 'feedback_mail_page',
'access' => user_access('can send feedback'),
'type' => MENU_NORMAL_ITEM,
);
$items[] = array (
'path' => 'admin/settings/feedback',
'title' => t('Feedback'),
'description' => t('Configure the feedback page'),
'callback' => 'feedback_settings_page',
'access' => user_access('administer feedback'),
'type' => MENU_NORMAL_ITEM,
);
}
return $items;
}
Comment #7
kbahey commentedWarren,
I included your changes for the menu. Committed to HEAD.
About the require_once(), I see your point. Do you think this should be a permanent part of the .install file?
If so, please make a patch.
Comment #8
kbahey commentedAdded fix for require_once.
Comment #9
stefano73 commentedSome code cleanup.
Comment #10
kbahey commentedCommitted to HEAD and 5.x
Comment #11
(not verified) commented