Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I disabled extra voting forms module and any of the category pages (including front page) shows blank. If I enable the extra voting forms everything work as expected. I knew a few versions ago there was no dependency between two modules. I am wondering if this was inadvertantly introduced and you should check of this dependency.
Comments
Comment #1
Brigadier CreditAttribution: Brigadier commentedExtra Voting Forms is mentioned at http://www.drigg-code.org/pages/download_and_install - there may well be a dependency. I'm using the Drupal 6 dev version and I have a similar behaviour if the Extra Voting Forms is disabled. At the moment, even with it enabled, so far, all I get is a voting form where I should see my drigg_home page.
Comment #2
philbar CreditAttribution: philbar commentedThis should be another simple fix.
Simply add the following line to drigg.info:
dependencies[] = extra_voting_forms
Comment #3
mercmobily CreditAttribution: mercmobily commentedHi,
I am not keen on adding a dependency, because Drig itself doesn't depend on it. It's "default theme" does.
YOu can use other module widgets -- and people do. Drigg is totally voting-widget-agnostic. And there is no way to make a theme dependent of a module.
So, I think this is about writing in the documentation that the default theme depends on Extra Voting Forms. Drigg doesn't...
Merc,
Comment #4
ajayg CreditAttribution: ajayg commentedA few versions before 1.36 even the default theme did not depend on extra voting forms. So somthing perhaps got introduced in default theme that shouldn't have?
Comment #5
mercmobily CreditAttribution: mercmobily commentedHi,
Drigg's theme has always depended on extra_voting_forms from day 1.
Maybe what we are missing, in the theme file, is a check to see if the module extra_voting_form is actually installed before calling the module-specific code?
Plus, maybe we could add a warning in the default template if EVF is not installed, so that people are aware?
Merc.
Comment #6
philbar CreditAttribution: philbar commentedRelated for D7: #474684: Allow themes to declare dependencies on modules
Comment #7
mercmobily CreditAttribution: mercmobily commentedHi,
This is a duplicate of #339918: Unnecessary Dependency for Embedded Objects Module which will hopefully be closed soon....
Bye,
Merc,
Comment #8
philbar CreditAttribution: philbar commentedKeeping these issues separate to ensure other voting forms can take the place of Extra Voting Forms to ensure there is actually no dependency. I also want to do more testing focused on the fix for the default theme.
Proposed Default Theme Fix...
Change:
print extra_voting_forms_show_form($node,'n',3);
To This:
This isn't really a bug since Extra Voting Form is the support module for Drigg. We can expand to other voting module. Marking as a task.
Comment #9
mercmobily CreditAttribution: mercmobily commentedHi,
Philbar, I think it would be better to apply this change (I think it's the only one) to the theme, and then maybe open a new task about investigating using other voting widgets.
Bye,
Merc.
Comment #10
philbar CreditAttribution: philbar commentedI'm working on adding the fix. I haven't ever experienced the problem, so it will take a bit more time to get caught up to speed on this issue.
I want to make sure...
...is the only code requiring extra voting forms. You fix will probably do it, but I need some time to test it.
Also, I don't want to flood the issue queue anymore than I already have, so I'm going to keep the testing voting modules in here for now.
Comment #11
mercmobily CreditAttribution: mercmobily commentedHi,
That is the only spot:
root@merc-laptop:/home/www/drupal/current_6/sites/all/modules/MAINTAINED_BY_MERC/do/drigg/stock_themes# grep -i extra_voting `find .`
./4plus/node-drigg.tpl.php:
print extra_voting_forms_show_form($node,'n',3);
./drigg_theme/node-drigg.tpl.php:
print extra_voting_forms_show_form($node,'n',3);
root@merc-laptop:/home/www/drupal/current_6/sites/all/modules/MAINTAINED_BY_MERC/do/drigg/stock_themes#
But, there is ANOTHER spot, and that's in ./drigg_users/drigg_users.module: the default values for the voting form is extra_voting_forms.
The last dependency is here: ./drigg_approval_queue/drigg_approval_queue.module Now that's a bit of a bugger, and it's evidence that using ugly hacks always brings you problems later. But, I guess this is not a big deal really, meaning that we can live with it until we find a better way of avoiding the hack.
I would honestly comit the if() in #8 and open a new task to get rid of the dependency, where you list the two extra semi-dependency I wrote here.
Merc.
Comment #12
Chrys CreditAttribution: Chrys commented