Ho provato a fare un tema per drupal....

Solo che devo aver sbagliaro qualche cosaa... ora lo posto nella speranza che qualcuno possa dirmi dove ho sbagliato....

innanzitutto questo è il messaggio di errore

warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/dragossido/modules/system/system.module on line 876.
warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/dragossido/includes/theme.inc on line 485.
warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/dragossido/includes/theme.inc on line 490.
warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/dragossido/modules/system/system.module on line 876.

adesso riporto i varti file, magari possiamo capirte insieme dove ho sbagliato?

dragossido.info

name = dragossido
description = Dragossido è il tema principale del sito
screenshot" title="www.dragossido.com.
screenshot">www.dragossido.com.
screenshot
= images/screen.png
version = 1.0
core = 6.x
engine = phptemplate

regions[header] = Header
regions[topl] = Topl
regions[topr] = Topr
regions[left] = Left
regions[right] = Right
regions[content] = Content
regions[footer] = Footer

stylesheets[all] = style.css

template.php

<?php
function dragossido_regions() {
  return array(
   
'topl' => t('topl'),
   
'topr' => t('topr'),
   
'header' => t('header'),
   
'left' => t('left'),
   
'right' => t('right'),
   
'content' => t('content'),
   
'footer' => t('footer')
  );
}
?>

page.tpl.php
<?php // $Id: page.tpl.php,v 1.1.2.2.2.5 2009/03/18 17:12:06 njt1982 Exp $ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
  <head>
    <title><?php print $head_title ?></title>
    <?php print $head ?>
    <?php print $styles ?>
    <?php print $scripts ?>
    <script type="text/javascript"><?php print $stylesheets?></script>
  </head>
  <body>
    <div id="box">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td>
            <div id="top">
            <table border="0" width="100%" cellspacing="0" cellpadding="0" height="600">
              <tr>
                <td valign="top" background="<?php print $logo ?>">
                    <?php if ($site_name) { ?><div align="center"><h1><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1></font></div><?php } ?>
                    <br>
                    <?php if ($site_slogan) { ?><div id="des"><h2><marquee width=300 scrollAmount=3><?php print $site_slogan ?></h2></font></div><?php } ?>
                </td>
                <?php if ($topl) { ?>
                <td valign="top" width="33%">
                  <?php print $topl ?>
                </td>
                <?php } ?>
                <td valign="top" width="33%">
                  <?php print $topr ?>
                </td>
              </tr>
            </table>
            </div>
            <?php if ($header) { ?>  
            <div id="collegamenti">
              <?php print $topl ?>
            </div>
            <?php } ?>
            <div id="collegamenti">
              <center>
                <?php if (isset($primary_links)) { ?><?php print theme('links', $primary_links, array('class' =>'links', 'id' => 'navlist')) ?><?php } ?>
              </center>
            </div>
            <div id="boxblog">
            <table border="0" width="100%" cellspacing="0" cellpadding="0" id="content">
          <tr>
            <?php if ($left) { ?>
                <td valign="top" width="33%">
                  <?php print $left ?>
                </td>
                <?php } ?>
        <td valign="top">
          <div id="main">
            <?php if ($mission) { ?><?php print $mission ?><?php } ?>
            <?php if ($breadcrumb) { ?><?php print $breadcrumb ?><?php } ?>
                    <?php if ($title) { ?><div class="titolopost"><h3><?php print $title ?></h3></div><?php } ?>
                    <?php if ($tabs) { ?><?php print $tabs ?><?php } ?>
                    <?php if ($help) { ?><?php print $help ?><?php } ?>
                    <?php if ($messages) { ?><?php print $messages; endif; ?>
                    <?php if ($content) { ?><?php print $content ?><?php } ?>
                    <?php if ($feed_icons) { ?><?php print $feed_icons ?><?php } ?>
          </div>
        </td>
        <?php if ($right) { ?>
                <td valign="top" width="33%">
                  <?php print $right ?>
                </td>
                <?php } ?>
      </tr>
    </table>
    </div>
    <?php if ($footer || $footer_message) ?>
    <div id="collegamenti">
            <div id="footer">
            <!-- Footer Contents -->
            <?php print $footer . $footer_message ?>
            </div>
            </div>
            <?php endif; ?>
            <?php print $closure; ?>
          </td>
        </tr>
      </table>
    </div>
  </body>

</html>
?>

block.tpl.php

<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="block block-<?php print $block->module ?>">
<?php if ($block->subject): ?>
<div class="vocemenu"><h4><?php print $block->subject ?></h4></div>
<?php endif:?>
<?php if (($regions)=='topl') { print '<div id="altosx"><?php print $block->content ?></div>';
else if (($regions)=='topr') { print '<div id="altosx"><?php print $block->content ?></div>';}
else {//DEFAULT print '<div class="content"><?php print $block->content ?></div>';}
<?php endif:?></div>

node.tpl.php

<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; ?> clear-block">
<?php print $picture ?>
<?php if ($page == 0): ?>
  <div class="titolopost"><h3><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h3></div>
<?php endif; ?>

  <div class="meta">
  <?php if ($submitted): ?>
    <span class="submitted"><?php print $submitted ?></span>
  <?php endif; ?>

  <?php if ($terms): ?>
    <span class="terms"><?php print $terms ?></span>
  <?php endif;?>
  </div>

  <div class="content">
    <?php print $content ?>
  </div>

  <?php if ($links) { print $links; } ?>
</div>

comment.tpl.php

<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ($comment->status == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; ?> clear-block">
  <?php print $picture ?>

<?php if ($comment->new) : ?>
  <a id="new"></a>
  <span class="new"><?php print $new ?></span>
<?php endif; ?>

  <h3><?php print $title ?></h3>

  <div class="submitted">
    <?php print $submitted ?>
  </div>

  <div class="content">
    <?php print $content ?>
  </div>

  <?php print $links ?>
</div>

Secondo voi dove ho sbagliato?