Wednesday, November 14, 2012

Magento specific problems

If you encounter lots of code on your website, a blank page, an install page, or a printer disabled error, try these methods:

Make sure that a file that is required is not accessed because it has no write permissions.

Your vhost file may be wrong and needs
<code>
<Directory "yourdir">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
</Directory>
</code>

If it's a problem where the page your website goes to is the install and not the site which you already have installed on a different machine. Go to the local file in app/etc/ and add

<code>

<install>
<date><![CDATA[yourinfo]]></date>
</install>
<crypt>
<key><![CDATA[yourinfo]]></key>
</crypt>

</code>

replacing yourinfo with the date or key.

In case you are testing for mobile and your links don't work, you can try and set the page view to default and mobile. Just use ctrl to select them both.

I recently had a problem with hiding links based on the current page. The thing was that the value got cached and even with the php check in place, the value did not update as planned. I took the function out of the footer and the rest of the footer as well, because the link of the page had to, by css, hide as the page changed. I put the code into the 1column.phtml and one-column file. A 'dirty' method I think, so any ideas of how else I can do it ?






No comments:

Post a Comment