In pagepreview.module it uses:
140: $output = page_manager_node_view($node);
I think this should be:
$output = page_manager_node_view_page($node);
Because the previous function doesn't exist in Ctools' Page Manager module (ctools 7.x-1.0-beta1).
$ grep -r 'page_manager_node_view(' .
$
$ grep -r 'page_manager_node_view_page(' .
./sites/all/modules/contrib/ctools/page_manager/plugins/tasks/node_view.inc:function page_manager_node_view_page($node) {
./sites/all/modules/contrib/pagepreview/pagepreview.module: $output = page_manager_node_view_page($node);
Altering line 140 makes this module work for me, and it's great.
Thank you
Comments
Comment #1
designar commentedI can comfirm this – but renaming the function resulted in a WOD without any errors.
After commenting the page_manager out it worked for me and seems to render all pages as expected.
Comment #2
atlea commentedSeems there is no page_manager_node_view in CTools 7x, just a page_manager_node_view_page witch returns a rendered output. Supplied patch works for me.
Comment #3
atlea commentedForgot to set needs review. :)
Comment #4
atlea commentedFirst patch was a bit quick. page_manager_node_view_page was calling node_tag_new and trying to write to the history table, failing when there was no nid (unsaved content). New patch attached.
Comment #5
les limCommitted. Sorry for the delay on this. Thanks, @atlea!