I just ran into a very difficult to debug bug, so I am posting here in case it helps someone else in the future.

I created a theme, and the page.tpl.php file was not being picked up. This was on Drupal 7, and all I was seeing when trying to access pages was the world 'Array'.

In the end I figured out this was the problem:

My theme name was ba_blog()
I had a module named ba
In the ba module, I had a function named ba_blog_page(), which generated my /blog page, containing a list of the blogs on my site.

The problem was that the system had decided that my function ba_blog_page() fit the pattern of THEMENAME_page(), so my function was overriding theme_page(), instead of using my page.tpl.php. This function returned an array, which is why I was seeing ARRAY on the screen, and no content.

This isn't a bug most people are likely to hit, as it was just a bad set of circumstances. The way to check if this issue is affecting you is to search your entire filesystem for:

function THEMENAME_page(

(where THEMENAME is the name of your theme)

Comments

dotpex’s picture

Thanks.