Call-back icon  Sales: Call 800.374.8146 (N America)|757.278.0920 (International)

Magento

Open Source eCommerce Evolved

Magento Forum

   
Undefined index error
 
jmayer
Jr. Member
 
Total Posts:  21
Joined:  2007-09-03
 

Hello,

Getting error when trying to use latest version of Magento 1.019870 when upgrading basic installation of ver. 1.0.19700. Copied files from existing . Using MAMP BTW. I only have tried to upgrade since I cannot press “continue on the first tab of the checkout in the login box “ for version 1.0.19700

Notice: Undefined index:  0 in /Applications/MAMP/htdocs/thesite/app/code/core/Mage/Core/Model/Mysql4/Config.php on line 107
Trace:
#0 /Applications/MAMP/htdocs/thesite/app/code/core/Mage/Core/Model/Mysql4/Config.php(107): mageCoreErrorHandler(8, ‘Undefined index...’, ‘/Applications/M...’, 107, Array)
#1 /Applications/MAMP/htdocs/thesite/app/code/core/Mage/Core/Model/Config.php(200): Mage_Core_Model_Mysql4_Config->loadToXml(Object(Mage_Core_Model_Config))
#2 /Applications/MAMP/htdocs/thesite/app/code/core/Mage/Core/Model/App.php(208): Mage_Core_Model_Config->init(Array)
#3 /Applications/MAMP/htdocs/thesite/app/Mage.php(404): Mage_Core_Model_App->init(’’, ‘store’, Array)
#4 /Applications/MAMP/htdocs/thesite/app/Mage.php(423): Mage::app(’’, ‘store’, Array)
#5 /Applications/MAMP/htdocs/thesite/index.php(40): Mage::run()
#6 {main}

Any ideas would be appreciated.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dusty Eskelson
Jr. Member
 
Total Posts:  5
Joined:  2008-04-23
 

I am getting the same error.

I’ve just tried to publish my Magento site onto a MediaTemple server.

It runs fine on my local machine with MAMP.

 
Magento Community Magento Community
Magento Community
Magento Community
 
darki777
Jr. Member
 
Total Posts:  23
Joined:  2008-04-08
 

I have this error too (on XAMPP) :( and also another errors when i update my magento with the “Magento Downloader”, the new version is a little bit buggy :/

 
Magento Community Magento Community
Magento Community
Magento Community
 
jeanlucb
Member
 
Total Posts:  60
Joined:  2008-02-10
 

same problem, please help !

 
Magento Community Magento Community
Magento Community
Magento Community
 
kthull
Jr. Member
 
Total Posts:  3
Joined:  2008-04-29
 

Add me to the list. Have any of you been able to get back into your admin panel? I had given up on trying to get multiple websites/stores running and upon deleting one, I got the above error. I can’t tell you how frustrating my Magento experience has been and how fragile this system seems to be. Unfortunately, I think it’s time for me to look elsewhere as I have several development projects waiting for a solution.

 
Magento Community Magento Community
Magento Community
Magento Community
 
mediagang
Jr. Member
 
Total Posts:  5
Joined:  2008-01-17
Leeds UK
 

I also get this error!  Just posted the following as a bug to the magento team:

I have built my store using Magento ver. 1.0.19870 on windows xampp.  I’m now trying to move the site to the live server which is on a shared hosting account.  I’m able to install the latest version of 1.0.19870.4 on the live server using the following steps:

I then drop the tables and import my exsisting database ensuring the database name and privalliges match the live server. 
(I had to change the name of the database, as the db name magento was not available on the live server, as someone else had taken this name.  Changed the name of the db using phpmyadmin.)

1) Fresh install on live server
2) changed base url in both old site to {{baseurl}}
3) ran this code new db:
SET SQL_MODE=’’;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE=’NO_AUTO_VALUE_ON_ZERO’;

http://www.magentocommerce.com/boards/viewthread/8302/

4) exported old db using phpmyadmin
settings: extened inserts (off)
5) used BigDump to import due to file size
6) upload template files and media files
7) Clear the session and cache folders. 

I then see all the products, catergories and attributes.  However the correct templates to not display.  When i go to change settings in the configuration, i get the following error:

Notice: Undefined index:  0 in C:\xampp\htdocs\YCS\app\code\core\Mage\Core\Model\Mysql4\Config.php on line 107
Trace:
#0 C:\xampp\htdocs\YCS\app\code\core\Mage\Core\Model\Mysql4\Config.php(107): mageCoreErrorHandler(8, ‘Undefined index...’, ‘C:\xampp\htdocs...’, 107, Array)
#1 C:\xampp\htdocs\YCS\app\code\core\Mage\Core\Model\Config.php(200): Mage_Core_Model_Mysql4_Config->loadToXml(Object(Mage_Core_Model_Config))
#2 C:\xampp\htdocs\YCS\app\code\core\Mage\Core\Model\App.php(208): Mage_Core_Model_Config->init(Array)
#3 C:\xampp\htdocs\YCS\app\Mage.php(404): Mage_Core_Model_App->init(’’, ‘store’, Array)
#4 C:\xampp\htdocs\YCS\app\Mage.php(423): Mage::app(’’, ‘store’, Array)
#5 C:\xampp\htdocs\YCS\index.php(40): Mage::run()
#6 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
 
mediagang
Jr. Member
 
Total Posts:  5
Joined:  2008-01-17
Leeds UK
 

After many days of searching and testing i have found a solution to this smile

I checked to see what values the default admin store had in the following tables:

core_store
core_store_group
core_website

The values should be 0.  In my case it was 2.  This is probably a cause from an auto-increment whilst exporting/importing using tools like myphpadmin (as i have done).

Anyhow, i hope this helps you all…

 
Magento Community Magento Community
Magento Community
Magento Community
 
Bowen
Jr. Member
 
Avatar
Total Posts:  20
Joined:  2008-04-09
 

wow, that worked for me and don’t $*%^ about databases.  thank you!!!

 Signature 

_______________________________________________________
http://www.bowenimagery.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
TemplatesMaster
Jr. Member
 
Total Posts:  22
Joined:  2008-04-01
 

This happens when you import database and have auto_value_for_zero = on on your mysql server.
You can always add this string to your sql dump
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

 Signature 

Templates Master :: Magento Templates Home at templates-master.com

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 800.374.8146 (North America) 757.278.0920 (International)
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
33432 users|290 users currently online|74325 forum posts