Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Problemas com o redimencionamento de imagens na Locaweb
 
Awa_Solucoes
Sr. Member
 
Avatar
Total Posts:  215
Joined:  2009-04-18
Londrina, PR - Brazil
 

Boa Tarde pessoal, estou com um problema, provavelmente na biblioteca GD da locaweb ou no sistema de redimencionamento do magento. Quando vc acessa a categoria aparelhos do site, ele mostra todos os produtos do site, na forma de grid, como no modelo padrão. Mas se vc modificar o exibir os produtos, e colacar em tudo, ele trava, e exibe um erro. Se vc colocar uma quantidade menor, ele tambem trava, exibe o mesmo erro.

Noticegetimagesize() [function.getimagesize]Read error!  in /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Catalog/Model/Product/Image.php on line 188
Trace
:
#0 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Catalog/Model/Product/Image.php(188): mageCoreErrorHandler(8, 'getimagesize() ...', '/home/storage/c...', 188, Array)
#1 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Catalog/Model/Product/Image.php(152): Mage_Catalog_Model_Product_Image->_getNeedMemoryForFile('/home/storage/c...')
#2 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Catalog/Model/Product/Image.php(241): Mage_Catalog_Model_Product_Image->_checkMemory('/home/storage/c...')
#3 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Catalog/Helper/Image.php(75): Mage_Catalog_Model_Product_Image->setBaseFile('/home/storage/c...')
#4 /home/storage/c/a2/cf/gelaskin/public_html/app/design/frontend/default/default/template/catalog/product/list.phtml(100): Mage_Catalog_Helper_Image->init('/d/i/digital2_l...')
#5 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Template.php(144): include('/home/storage/c...')
#6 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView(Object(Mage_Catalog_Model_Product), 'small_image')
#7 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView('frontend/defaul...')
#8 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#9 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#10 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml()
#11 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Catalog/Block/Category/View.php(81): Mage_Core_Block_Abstract->getChildHtml('product_list', true)
#12 /home/storage/c/a2/cf/gelaskin/public_html/app/design/frontend/default/default/template/catalog/category/view.phtml(93): Mage_Catalog_Block_Category_View->getProductListHtml('product_list')
#13 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Template.php(144): include('/home/storage/c...')
#14 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView()
#15 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView('frontend/defaul...')
#16 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#17 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#18 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Text_List->_toHtml()
#19 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#20 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml()
#21 /home/storage/c/a2/cf/gelaskin/public_html/app/design/frontend/default/default/template/page/1column.phtml(54): Mage_Core_Block_Abstract->getChildHtml('content', true)
#22 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Template.php(144): include('/home/storage/c...')
#23 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView('content')
#24 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView('frontend/defaul...')
#25 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#26 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Model/Layout.php(526): Mage_Core_Block_Abstract->toHtml()
#27 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(347): Mage_Core_Model_Layout->getOutput()
#28 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Catalog/controllers/CategoryController.php(115): Mage_Core_Controller_Varien_Action->renderLayout()
#29 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(376): Mage_Catalog_CategoryController->viewAction()
#30 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action->dispatch()
#31 /home/storage/c/a2/cf/gelaskin/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match('view')
#32 /home/storage/c/a2/cf/gelaskin/public_html/app/Mage.php(459): Mage_Core_Controller_Varien_Front->dispatch(Object(Mage_Core_Controller_Request_Http))
#33 /home/storage/c/a2/cf/gelaskin/public_html/index.php(65): Mage::run()
#34 {main}
 
Magento Community Magento Community
Magento Community
Magento Community
 
Awa_Solucoes
Sr. Member
 
Avatar
Total Posts:  215
Joined:  2009-04-18
Londrina, PR - Brazil
 

E ainda tem os logs de erro da locaweb,:

[Mon Jan 11 09:06:23 2010] [error] [client 189.127.232.2] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 83 bytes) in /home/storage/c/a2/cf/gelaskin/public_html/lib/Varien/Object.php on line 206, referer: http://www.gelaskin.com.br/index.php/aparelhos.html?p=

[Mon Jan 11 09:06:29 2010] [error] [client 201.52.145.63] mod_mime_magic: invalid type 0 in mconvert().

[Mon Jan 11 09:12:54 2010] [error] [client 201.52.145.63] PHP:  Error parsing /home/storage/c/a2/cf/gelaskin/php-cgi.ini on line 188

Ai quero saber, alguem sabe uma solução para isso??Pq isso esta me dando uma dor de cabeça, parece ser um problema que estora o limite do memory limit, mais como não sou nenhum expert em servidores, peço ajuda da comunidade.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mario SAM
Sr. Member
 
Total Posts:  163
Joined:  2008-11-12
Florianopolis
 

dae Alex,

eu nao posso te dizer q eh o mesmo erro, por isso a mesma solucao.
mas eu ja tive um problema parecido com esse em outro servidor.

PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted
e era justamente o memory limit do server q vc mencionou.
falei com suporte, eles aumentaram o limite e ficou tudo certo.
com suporte da locaweb talvez seja um pouco mais dificil de conseguir tal configuracao. hehe

boa sorte.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Awa_Solucoes
Sr. Member
 
Avatar
Total Posts:  215
Joined:  2009-04-18
Londrina, PR - Brazil
 

Vlw Mario Sam, mais não é o memory limit do servidor, eu aumentei, mas o problema esta no wait_time_out do Mysql da locaweb entre outras coisas.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top