When page manager pages are rendered with their page_callback page_manager_page_execute() the results are a renderable array that is simply output as the string 'Array'. This happens because $content['content'] is another array, not a string.

For a work around, I used render($content) and it seems to work fine on views and page manager pages. I tested $content that was a string, $content that was an array with a string index of 'content', and $content that was an array with a renderable array as index 'content'.

Also when creating creating the content of the Solr document, strip_tags() leaves lots of whitespace. I replaced it with a call to apachesolr_clean_text() which is the same function that the Apachesolr module uses to clean the display of a node.

Comments

mattsqd’s picture

mattsqd’s picture

Status: Active » Needs review

  • lliss committed c33670b on 7.x-1.x
    Fixes #2481653 - Page manager pages content not created properly
    
lliss’s picture

Status: Needs review » Closed (fixed)