$content is only showing array text I have a theme, and for the life of me can't figure out why $content is rendering "array". I have switched to two other themes (framework and seven, and my new theme is based off of the framework theme that is working).

Here is an example of the theme code:

    &lt;div &lt;?php if ($left): ?&gt;id="maincolright" &lt;?php elseif ($right): ?&gt;id="maincolleft" &lt;?php else: ?&gt;id="main" &lt;?php endif; ?&gt;class="nobg node-&lt;?php print $node-&gt;nid; ?&gt;"&gt;

    &lt;?php if ($tabs): print '&lt;div id="tabs-wrapper" class="clear-block"&gt;&lt;ul class="tabs primary"&gt;'. $tabs .'&lt;/ul&gt;'; endif; ?&gt;
    &lt;?php if ($tabs2): print '&lt;ul class="tabs secondary"&gt;'. $tabs2 .'&lt;/ul&gt;'; endif; ?&gt;
    &lt;?php if ($tabs): print '&lt;span class="clear"&gt;&lt;/span&gt;&lt;/div&gt;'; endif; ?&gt;
    &lt;?php if ($show_messages &amp;&amp; $messages): print $messages; endif; ?&gt;
    &lt;?php print $help; ?&gt;
    &lt;?php print $content; ?&gt;

&lt;/div&gt;


So $content is there, and it should be fine, but on any pages I view, for instance, the page render, the edit page, or even my devel page, show only 'array'. See the screenshot:



Has anyone come across this?
print() is a command that doesn't work with arrays. print_r() will print out arrays for debugging but what you want is print render($content). Drupal uses large render arrays to output content, and they cannot be printed directly.