<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mike D&#039;s SharpBlog &#187; site migration</title>
	<atom:link href="http://www.sharpdotinc.com/mdost/tag/site-migration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sharpdotinc.com/mdost</link>
	<description>Just another Sharpdot weblog</description>
	<lastBuildDate>Tue, 31 Aug 2010 01:37:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Magento: error message &#8211; Notice: Undefined index:  0 app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92</title>
		<link>http://www.sharpdotinc.com/mdost/2009/03/17/magento-error-message-notice-undefined-index-0-appcodecoremagecoremodelmysql4configphp-on-line-92/</link>
		<comments>http://www.sharpdotinc.com/mdost/2009/03/17/magento-error-message-notice-undefined-index-0-appcodecoremagecoremodelmysql4configphp-on-line-92/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 21:43:58 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
						<category domain="http://www.sharpdotinc.com/mdost/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/tag/errors/"><![CDATA[errors]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/tag/site-migration/"><![CDATA[site migration]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=86</guid>
		<description><![CDATA[The Quick resolution to this problem it to move the database command line, and not use phpmyadmin. If you just need to fix your database keep reading.
I was moving a installation to a production server and was getting this error message: Notice: Undefined index: 0 in app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92. It took alot of searching to [...]]]></description>
			<content:encoded><![CDATA[<p>The Quick resolution to this problem it to move the database command line, and not use phpmyadmin. If you just need to fix your database keep reading.</p>
<p>I was moving a installation to a production server and was getting this error message: <span style="color: #0000bb">Notice</span>: Undefined index: 0 in app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92. It took alot of searching to figure out the problem, but here is what I found. When Magento installs it sets store and website ids in the database. When transferring the database the new database did not like having an id of 0 for the admin part of the site, so it made it have an id of 2. This is what my problem was. To fix it I went into the <strong>core_store</strong> and <strong>core_website</strong> Tables and gave the admin site an id of 0. It looks like this may only affect certain versions of magento(Earlier versions). Hope this helps someone else.</p>
<p><strong>P.S.</strong> I also got foreign_key_constraint errors when importing my database. To solve this disable foreign key check when you export your database. Then when you need to change the core_store and core_website id&#8217;s you will probably need to surround your sql with the following code:</p>
<p>set foreign_key_checks=0;<br />
//SQL to update ids<br />
SET FOREIGN_KEY_CHECKS=1;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharpdotinc.com/mdost/2009/03/17/magento-error-message-notice-undefined-index-0-appcodecoremagecoremodelmysql4configphp-on-line-92/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
	</channel>
</rss>
