Magento Forum

Directory index forbidden by Options directive: 
 
Boatmagic
Sr. Member
 
Avatar
Total Posts:  91
Joined:  2010-08-14
 

I spent over 10 hours today trying to track down the cause of this error.
I know what is causing it but cannot actually see the source when looking at code breakdown of my stores main page.

Maybe someone can look at this and answer these questions.  My store is http://shop.annistonmarine.com
If you right-click and look at the “view page info: and media on this page, you will see a reference to this
http://shop.annistonmarine.com/skin/frontend/mytheme/default/

This should be calling out to a image instead of calling to a directory, hence, giving me the error.

I narrowed it down to this.  If I rename the right_cal.phtm to right_col_old.phtm (so it doesn’t run) from /mytheme/default/template/callouts and the same from /app/design/frontend/base/default/template/callouts
the reference to that missing image gets removed.

I have replaced the right_col.phtml with a copy directly from 1.7.0.2 file system, but it does not change anything as long as this.

The source of the error is coming from this on the page source:

</div>
                <
div class="col-right sidebar"><div class="block block-list block-compare">
    <
div class="block-title">
        <
strong><span>Compare Products                    </span></strong>
    </
div>
    <
div class="block-content">
            <
class="empty">You have no items to compare.</p>
        </
div>
</
div>
<
div class="block block-banner">
    <
div class="block-content">
                    <
img src="http://shop.annistonmarine.com/skin/frontend/mytheme/default/" title="" alt="" />
         
    </
div>

It somehow seems to be related to the Compare Products code but I am not certain.

Any help would be awesome..12 hours at this already and I got really no where.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Boatmagic
Sr. Member
 
Avatar
Total Posts:  91
Joined:  2010-08-14
 

Finally this morning I found the problem.

In the right_col.phtml I had this part of the code commented out

<block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml">
        <
action method="setImgSrc">
          <!--<
src>images/media/col_right_callout.jpg</src>-->

That was the reason for the error. Even tho the image callout was commented out, the code still called for it and since it was commented out, I guess it defaulted to pointing to the /skin/frontend/mytheme/default/images/media.--- giving the initial error.

What really needs to be commentd out is this code in right_col.phtml

<!--<img src="<?php echo $this->getSkinUrl($this->getImgSrc()) ?>"<?php if(!$this->getLinkUrl()): ?> title="<?php echo $this->__($this->getImgAlt()) ?>"<?php endif; ?> alt="<?php echo $this->__($this->getImgAlt()) ?>" />-->
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top