Your shopping cart is empty. Browse our Store

Magento

Open Source eCommerce Evolved

Magento Forum

   
Getting ‘Fatal Errors’ after importing my OSCommerce data into Magento.. 
 
Charles @ MJM
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-03-19
 

’Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /magento_home_directory/lib/Zend/Db/Statement/Pdo.php on line 284’

I get this error whenever i attempt to manage my categories or products.

and so on…

I have about ~11,000 categories and about ~2,500 items… Looking at the categories tables, it seems magento quadrupled the number of entries thus causing the error (i think.) im not too familiar with magento’s database structure yet.. any input will be appreciated greatly.

Please refer to:
http://www.mjmautohaus.com/images/1/OSC_db.jpg
http://www.mjmautohaus.com/images/1/magento_db.jpg

 
Magento Community Magento Community
Magento Community
Magento Community
 
United Media Associates
Member
 
Avatar
Total Posts:  47
Joined:  2008-03-27
 

I’ve seen the PHP processes get pretty big during my import, I think as much as 90Mb, but we’re using FastCGI so I’m not sure if that makes a difference on the error you are seeing and if that is more specific to running in the apache process using mod_php or not.

The way the data is stored in the Magneto tables is completely different then the method used in osCommerce. A really nice diagram of the tables is in the wiki here http://www.magentocommerce.com/wiki/magento_database_diagram put up about a week ago.

The counts you are seeing for catalog_category_entity_varchar look normal for the data coming from osCommerce it’s not duplicated, just represented a lot differently.

The catalog_category_entity table should give you a count of the categories in your Magento database. The on you were referencing was the associated table which contains all the varchar parameters associated with one of the category entities. Bascially instead of having one table with say 30 columns to describe all the information about a category in one record like osCommerce does the Magento database has several narrow tables that when combined make up all the information for a category, so instead one category might have 30 records amongst the 6 different category_entity tables, and another category may only have 10 records in 4 of the category_entity tables.

 Signature 

United Media Associates, LLC.
Professional Magento Consulting and Systems Integration
_________________________________________________________
http://umassociates.com - Magento Silver Partner

 
Magento Community Magento Community
Magento Community
Magento Community
 
Charles @ MJM
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-03-19
 

So that being said.. how can I resolve this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Charles @ MJM
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-03-19
 

I should note that this error does not occur during importing. It happens when I go into admin and try and manage my categories and/or products. Importing of categories gets to 99.6% and stops, products haults around 70%

 
Magento Community Magento Community
Magento Community
Magento Community
 
United Media Associates
Member
 
Avatar
Total Posts:  47
Joined:  2008-03-27
 
Charles @ MJM - 07 May 2008 08:21 PM

I have about ~11,000 categories and about ~2,500 items…

That is a lot of categories, and oddly enough more categories then items. I wonder if the problem isn’t necessarily with the import, but the fact that admin page doesn’t know what to do with 11,000 categories that it tries to display on the left hand side of the admin page, and it ends up using up a ton of RAM just trying to build the list of 11,000 categories.

 Signature 

United Media Associates, LLC.
Professional Magento Consulting and Systems Integration
_________________________________________________________
http://umassociates.com - Magento Silver Partner

 
Magento Community Magento Community
Magento Community
Magento Community
 
Charles @ MJM
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-03-19
 
United Media Associates - 08 May 2008 10:54 AM

Charles @ MJM - 07 May 2008 08:21 PM
I have about ~11,000 categories and about ~2,500 items…

That is a lot of categories, and oddly enough more categories then items. I wonder if the problem isn’t necessarily with the import, but the fact that admin page doesn’t know what to do with 11,000 categories that it tries to display on the left hand side of the admin page, and it ends up using up a ton of RAM just trying to build the list of 11,000 categories.

Well, It’s an automotive website. That being said, 1 part can go into ~150 different categories.

The category tree is essentially:

Make
--Model
----Generation
------Brakes/Engine/Exhaust/Interior/Etc..
--------Pads/Rotors/Hoses/Electrical/SteeringWheels/etc..

Do that for 50 or 60 different vehicles and apparently you end up with about 11,000 categories

 
Magento Community Magento Community
Magento Community
Magento Community
 
Charles @ MJM
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-03-19
 

still having this issue.. should I post in a different forum perhaps?

 
Magento Community Magento Community
Magento Community
Magento Community
 
piotrekkaminski
Magento Team
 
Avatar
Total Posts:  41
Joined:  2007-09-01
 
Charles @ MJM - 08 May 2008 06:51 AM

I should note that this error does not occur during importing. It happens when I go into admin and try and manage my categories and/or products. Importing of categories gets to 99.6% and stops, products haults around 70%

The problem you experience means low memory for PHP on the server. This is a configuration issue on your server and you have to resolve this with your hosting provider.

The second issue is the percentage of products imported. Please note that this percentage does not show exactly progress but number of products successfully imported. If it is not 100%, some of your products or categories were not imported due to for example missing information. Look for errors reported while running the import tool and at the summary that should show up after the tool finishes importing.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Charles @ MJM
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-03-19
 
piotrekkaminski - 17 May 2008 11:13 AM

Charles @ MJM - 08 May 2008 06:51 AM
I should note that this error does not occur during importing. It happens when I go into admin and try and manage my categories and/or products. Importing of categories gets to 99.6% and stops, products haults around 70%

The problem you experience means low memory for PHP on the server. This is a configuration issue on your server and you have to resolve this with your hosting provider.

The second issue is the percentage of products imported. Please note that this percentage does not show exactly progress but number of products successfully imported. If it is not 100%, some of your products or categories were not imported due to for example missing information. Look for errors reported while running the import tool and at the summary that should show up after the tool finishes importing.

As it turns out the memory setting for PHP is located in the .htaccess file in Magento’s root directory… So, that being said I got all that figured out but now it looks like I have 6 different stores and some other mess I have to clean up from importing

 
Magento Community Magento Community
Magento Community
Magento Community
 
Charles @ MJM
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-03-19
 

I finally found some time to reinstall magento and get rid of all those extra companies I was left with.

here is what I am still facing:;

* Starting profile execution, please wait…
* Warning: Please don’t close window during importing/exporting data

* Categories processed 99.6% 11073/11120 records

No errors, etc.. just sitting at 99.6% 11073/11120 for 45min so far

 
Magento Community Magento Community
Magento Community
Magento Community
 
piotrekkaminski
Magento Team
 
Avatar
Total Posts:  41
Joined:  2007-09-01
 

Hello

Which version are you using? Do you get any errors for your catalog data? The progress indicator will not reach 100% if there are products that cannot be imported.

Thank you
Magento Support Team

 
Magento Community Magento Community
Magento Community
Magento Community
 
Charles @ MJM
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-03-19
 

Hello,

I downloaded all latest versions today, could it be perhaps because there are some entries in categories that are not in categories_description?

I’m not sure if there would be 47 of them but i know there is at least a handful or so..

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International) to request a call-back.
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
32090 users|371 users currently online|71968 forum posts