Monday, February 25, 2013

Some Magento related errors

If you get a resource or sql error, make sure that your local.xml contains all the required things, with the typed in fields, like:

<config>
    <global>
        <install>
            <date><![CDATA[Mon, 19 Sep 2011 10:12:08 +0000]]></date>
        </install>
        <crypt>
            <key><![CDATA[key(use your own)]]></key>
        </crypt>
        <disable_local_modules>false</disable_local_modules>
        <resources>
            <db>
                <table_prefix><![CDATA[]]></table_prefix>
            </db>
            <default_setup>
                <connection>
                    <host><![CDATA[host address]]></host>
                    <username><![CDATA[name]]></username>
                    <password><![CDATA[password]]></password>
                    <dbname><![CDATA[db]]></dbname>
                    <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
                    <model><![CDATA[mysql4]]></model>
                    <type><![CDATA[pdo_mysql]]></type>
                    <pdoType><![CDATA[]]></pdoType>
                    <active>1</active>
                </connection>
            </default_setup>
        </resources>
        <session_save><![CDATA[files]]></session_save>
    </global>

No comments:

Post a Comment