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

Michelle’s picture

Project: Author Pane » Fasttoggle
Version: 7.x-2.x-dev » 7.x-1.x-dev
Category: bug » support

Which 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

Nigel Cunningham’s picture

Yes, 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.

Michelle’s picture

Yeah, 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

Nigel Cunningham’s picture

Title: Fasttoggle_link problem » Author Pane Integration needs updating / moving to Fasttoggle project
Issue summary: View changes
Nigel Cunningham’s picture

Status: Active » Fixed

I'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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

AaronMcHale’s picture

Version: 7.x-1.x-dev » 7.x-1.6
Status: Closed (fixed) » Active

Hi, re-opening this issue, ass the problem has come up again, exact same error.

AaronMcHale’s picture

In 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:

    $variables['fasttoggle_links'] = theme('links', array('links' => fasttoggle_link('user', $variables['account']), 'attributes' => array('class' => 'links inline')));

with

    //$variables['fasttoggle_links'] = theme('links', array('links' => fasttoggle_link('user', $variables['account']), 'attributes' => array('class' => 'links inline')));

Notice the only difference is the two forward-slashes at the start of the line.

DrCord’s picture

a better fix that allows fastoggle to still work if the fucntion is available is wrapping it in a check for the function existing:

if(function_exists('fasttoggle_link')){
      $variables['fasttoggle_links'] = theme('links', array('links' => fasttoggle_link('user', $variables['account']), 'attributes' => array('class' => 'links inline')));
    }
SchwebDesign’s picture

getting this error as well. Fasttoggle 7.x-1.6, Authorpane 7.x-2.0

SchwebDesign’s picture

#9 works well

Nigel Cunningham’s picture

Status: Active » Closed (won't fix)

Sorry 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.

Michelle’s picture

Project: Fasttoggle » Author Pane
Version: 7.x-1.6 » 7.x-2.x-dev
Status: Closed (won't fix) » Active

I'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.

Nigel Cunningham’s picture

I think you just need the test that's in the patches above.