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.
Hi,
i have installed this modul, fasttoggle and advanced forum.
But the problem is, when i sho forum content, the site return a 500 server error.
In my log found this:
PHP Fatal error: Call to undefined function fasttoggle_link() in /.../modules/author_pane/modules/fasttoggle.author-pane.inc on line 18
Then i comment this out, the content is show.
Comments
Comment #1
MichelleWhich version of Fasttoggle are you using? I just guessed to fill the dropdown.
I'm bumping this over here to see if that function call has been changed. If it has, please bump it back to Author Pane as the integration code will need to be changed.
FWIW, this is why I tried so hard to get the other modules to host their own integration code. :(
Michelle
Comment #2
Nigel CunninghamYes, there has been a big rework of Fasttoggle. Now that I know you have some integration code, I'll happily import it to Fasttoggle as soon as I can find the time to work on this.
Comment #3
MichelleYeah, I wrote it back in Drupal 6. Someone else ported it to Drupal 7 and maintains it. I haven't been involved much in Drupal in quite a while but I watch the queues and jump in when there's something I can answer. :) That would be awesome if you could pull the integration code into Fasttoggle but it can be a bit tricky with coordinating releases so you don't end up with duplicate function names.
Michelle
Comment #4
Nigel CunninghamComment #5
Nigel CunninghamI've just committed changes to 7.x-1.x that recreate fasttoggle_link, so it should now work again. That said, I didn't see any links. The template file looks for a variable (fasttoggle_block_author) that I don't see being set anywhere.
Comment #7
AaronMcHaleHi, re-opening this issue, ass the problem has come up again, exact same error.
Comment #8
AaronMcHaleIn the meantime, as a temporary fix, edit the file modules/author_pane/modules/fasttoggle.author-pane.inc, and comment out line 18.
In other words, for those that aren't sure exactly how to do that, replace this line:
with
Notice the only difference is the two forward-slashes at the start of the line.
Comment #9
DrCord CreditAttribution: DrCord commenteda better fix that allows fastoggle to still work if the fucntion is available is wrapping it in a check for the function existing:
Comment #10
SchwebDesign CreditAttribution: SchwebDesign commentedgetting this error as well. Fasttoggle 7.x-1.6, Authorpane 7.x-2.0
Comment #11
SchwebDesign CreditAttribution: SchwebDesign commented#9 works well
Comment #12
Nigel CunninghamSorry for the delay in getting back to you on this.
Since this code is still in Author Pane, there's nothing I can do to fix it.
Comment #13
MichelleI'll move it back to AP. I honestly have no idea when I'll be able to look at this but will see what I can do.
Comment #14
Nigel CunninghamI think you just need the test that's in the patches above.