I am new to theming in drupal and php as well, generally a front end developer with html/css. I installed my base theme using an edited stark framework, and recieved these notices when I applied the theme:
Notice: Undefined index: sidebar_first in include() (line 138 of /home3/missxjay/public_html/sites/all/themes/Monarch/page.tpl.php).
Notice: Undefined index: sidebar_second in include() (line 144 of /home3/missxjay/public_html/sites/all/themes/Monarch/page.tpl.php).
Here is the code that those notices are referring to:
<?php if ($page['sidebar_first']): ?>
<div id="sidebar-first" class="column sidebar"><div class="section">
<?php print render($page['sidebar_first']); ?>
</div></div> <!-- /.section, /#sidebar-first -->
<?php endif; ?>
<?php if ($page['sidebar_second']): ?>
<div id="sidebar-second" class="column sidebar"><div class="section">
<?php print render($page['sidebar_second']); ?>
</div></div> <!-- /.section, /#sidebar-second -->
<?php endif; ?>
I would appreciate any info at all for help, really hoping to figure this out. Thanks!
Comments
What does your .info file
What does your .info file look like?
Quick check
Step 1: Go to info file.
Step 2: Check for regions in info file.
Step 3: Include java script and css dependencies if any.
Step 4: Cross check the blocks.
Might help...