Views block in custom region rendered outside of page.tpl I have custom regions rendered inside of the node.tpl.php file which work as expected, but results in a php error when blocks created by the views module is placed in them.

 [:error] [pid 2563] [client 127.0.0.1:35606] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /filepath/sites/all/modules/devel_themer/devel_themer.module on line 333


Other blocks all work fine the regions and the views blocks work fine in all regions called by page.tpl.php. The error only occurs when the two are put together. There are no other log messages and the page just returns a blank screen so I'm not quite sure what the problem is or how to go about fixing it. I'm using the code below in template.php to make the region available outside of page.tpl.php

function smark_design_theme_preprocess(&amp;$variables) {
  if (block_get_blocks_by_region('region_name')) {
    $variables['region_name'] = block_get_blocks_by_region('region_name');
  } else { $variables['region_name'] = FALSE; }      
}


And this to call the region in node.tpl.php

&lt;?php if ($page): ?&gt;
  &lt;?php if ($region_name): ?&gt;   
    &lt;div id="region-name"&gt;
      &lt;?php print render($region_name); ?&gt;
    &lt;/div&gt;
  &lt;?php endif; ?&gt;
&lt;?php endif; ?&gt;
Searh your php.ini and change the value of max_execution_time to:

max_execution_time = 300


By default php.ini have 30 seconds and PHP needs more time to process it, in this case you have 300 seconds.

EDIT: As you say in your comment that your problem persist, you can use the following solution, but you need know that your site can take a lot of time to process your request.

Edit the file YOUR_SITE/sites/default/settings.php and add this in the second line and save the file:

set_time_limit(0);


Read more about this function at php.net