Unpublish problem

BoozyMondango - May 15, 2008 - 13:25
Project:Views Actions Links
Version:5.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I am unable to get the action view links to work properly with unpublish. After figuring out I needed to set permissions I can see the link to unpublish in my view but it causes an error:

Fatal error: Call to undefined function () in /nfs/c02/h02/mnt/20716/domains/xxxxxxx/html/sites/all/modules/actions/actions.inc on line 103

The link that it creates is similar to:
/views_actions_links/action/%252F3?destination=admin_view

Any help is appreciated.

Thanks

#1

Riggs333 - June 11, 2008 - 15:33

I had the same error.

I changed line 99 in views_action_links.module from:

return l($action['description'], 'views_actions_links/action/' . $action['function'] . '/' . $nid, array(), drupal_get_destination());

to

return l($action['description'], 'views_actions_links/action/' . $action['callback'] . '/' . $nid, array(), drupal_get_destination());

And that works for me.

#2

traviss359 - June 13, 2008 - 22:40

I was getting a blank page when trying the unpublish action link. I changed the provided line of code and now I get a system message saying "Action performed" as well as a log message stating that the node has been unpublished. However the node is still published afterwards.

The unpublish action is a simple action and does not require any configuration, so I am at a loss as to what the issue is. Were you able to successfully unpublish a node using this module?

 
 

Drupal is a registered trademark of Dries Buytaert.