Closed (fixed)
Project:
Dice Roller
Version:
7.x-1.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Apr 2012 at 13:14 UTC
Updated:
15 Nov 2013 at 14:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Salias commentedTracked this down to being an issue specifically with using dice rolls in comments. Module works perfectly otherwise.
Comment #2
chintan.vyas commentedHi Salias,
Attaching the patch for this issue. Can you please review this issue after applying attached patch?
Regards,
Chintan Vyas.
Comment #3
Salias commentedThe patch definitely appears to have resolved the issues
Thank you!
Comment #4
chintan.vyas commentedClosing this issue as patch resolved the issue. Let me know if you find any bug later.
Regards,
Chintan Vyas.
Comment #5
chintan.vyas commentedComment #6
chintan.vyas commented@Bastlynn Can you apply patch to the module? Use this patch its containing author info.
Thanks.
Comment #7
chintan.vyas commentedForgot to attach patch :P
Comment #9
spouilly commentedHi there,
The bug is still present in the latest version (1.7) of dice_roller ... because the patch #7 has not been applied although the previous status of the bug was "closed".
I am reopenning the issue so that the maintener can fix the latest tree (note: fix is super simple and can be applied manually easily).
Cheers,
S.
Comment #9.0
spouilly commentedI've heard the version of Drupal may help...!
Comment #10
Bastlynn commentedA couple of things with this patch to look at.
First, you generall want to put the include inside of the function, so the extra code is only included when it's called for. This gives you a small boost to performance since it reduces the code footprint.
Second, by the time the basic module is being invoked for these features (calling the form) the dice roller include is already be included by the core roller.
This is the function that calls the forum_submit hook you were looking at in basic:
Comment #11
Bastlynn commentedI've just not been able to replicate the behavior you're seeing. 1.7 is in active use on one of my own websites and we're just not seeing the issue there. I would suggest reinstalling if you're seeing it on your end, making sure you've got the latest version.
Comment #12
Bastlynn commentedAH! I think I see how this is getitng pulled. One moment. The place to put the call is under function dice_roller_comment_update($comment) {} to reflect the node's include. I have no idea why I'm not seeing it on my end where you're seeing it on yours - perhaps forum handles node comments differently than the non-forum code I've been looking at.
Fixed under:
[7.x-1.x 55baad7] Issue #1524340 by Bastlynn: Fatal error: Call to undefined function _dice_roller_parse_roll() (Forum specific)
Patch now in dev.