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

designar’s picture

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

atlea’s picture

StatusFileSize
new1.2 KB

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

atlea’s picture

Status: Active » Needs review

Forgot to set needs review. :)

atlea’s picture

StatusFileSize
new1.72 KB

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

les lim’s picture

Status: Needs review » Fixed

Committed. Sorry for the delay on this. Thanks, @atlea!

Status: Fixed » Closed (fixed)

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