English 中文(简体)
Magento Configure Products + Simple Products
原标题:

Current Magento setup:
Configure Products + Simple Products

Problem:
Configurable product from 2000 simple products is causing an issue as Magento stops responding if i make configurable products from more than 500 simple products

Error Message: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 2186999 bytes) in /homepages/3/d347795961/htdocs/magento/lib/Zend/Db/Statement/Pdo.php on line 228

product name = test
Type= configurable

Associated products = 696 simple products

Error Message: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 311296 bytes) in /homepages/3/d347795961/htdocs/magento/app/design/frontend/default/flp/template/catalog/product/price.phtml on line 290

Operating System: 1&1 Dual Core – L Dedicated Server
CPU: Opteron1216
Clock Rate: 2 x 2.4 GHz
Ram: 2GB (RAID 1 Software)
Memory: 40m

Comments:
I have been told by my developer that if i obtain a server with 312m memory or more – he recommended a company called www.bluehost.com – this should solve the problem?
I have 3 products with numerous size variants in each – adding up to 2000 possibilities between the 3 different products. I also have 2 more products with approx 1500 size variants or possible combinations, which we have not even attempted to load yet due to the aforementioned.

My developer is now offering “Simple products with custom option” as a solution http://s347795977.websitehome.co.uk/magento/index.php/test-product-4158.html - this will however doing it this way will apparently not allow me to check stock – which will have direct bearing of trying to integrate Magento into the Sage Accounting package.......I am also not sure of what other problems or restrictions it will raise i.e changing pricing easily

Questions:
- Is it possible to have numerous variations (size combinations) on a specific product using Configure Products + Simple Products Setup
- This being the case, if i swop to another server package offering 312m or more – will this solve the problem – and more importantly allow me to lead the additional 1500 products on over and above the 2000 i am currently having a problem with. Any advice or assistance regarding this matter would greatly be appreciated.

问题回答
  1. Yes, theoretically it s entirely possible to have large combinations of simple products for a configurable product. In practice, performance problems (such as the one you are experiencing) will limit you.
  2. Maybe? Increasing the limit will allow you to bump your PHP memory limit higher (something which you may be able to do even now), but the essential problem of loading that many products is still present.

The first thing to try is to bump PHP s memory limit. 40M is pretty low, and upping it may resolve your problem.

Otherwise, would it be possible to make slightly different permutations for the products? e.g. if the current configurable attributes are foo, bar and baz, make a product for each value of baz to limit the number of configurations?

Hope that helps!

Thanks, Joe

You should raise memory_limit a bit. You can do it in php.ini with vps or dedicated server, also in server allows php.ini custom. Or you can change value in .htaccess

For example:

php_value memory_limit 128M




相关问题
hosting administration system?

i m looking for an opensource system to manage a list of web hosting clients. Services ordered payment notifications ticket support system That kind of stuff Is there anything like that? Thanks

Django, is possible to run two different versions?

I have a server on which I have two sites built with Django and Python, one site is major site is build with an older version of django, the other with the newer release, I have upgraded to the new ...

Ruby (off the Rails) Hosting

Many people have asked about Rails hosting on this site, but I m not familiar enough with the back end of things to know if there s a difference. I want to host some Ruby CGI webservices , basically ...

mobile network friendly host

i am developing an app for iphone, it is a client side application. and i found the 3g network is very slow, should I change the server host to a mobile network friendly host? any suggestions?

Strategies for Hosting 2 .NET Languages in Same Web App

I have 2 web sites (in Visual Studio - separate solutions) - one in VB.NET, one in C#. Ideally, I d like to make them both web application projects, compile each codebase into to a DLL, drop both ...

Deploying a python CGI app

I have developed a python CGI application which works just fine on my development box. My hosting provider however gives me little control of its server: I use a lot of custom stuff in my python ...

热门标签