- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2015
05:02 AM
11-21-2015
05:02 AM
Array to string conversion
Olá, em uma versão magento v1.9.2.2 em servidor ubuntu, com um theme personalizado ao lista determinado produto tenho a seguinte mensagem: Array to string conversion in app/code/core/Mage/Catalog/Block/Product/View/Attributes.php on line 66, poderia me esclarecer como corrigir este erro. Grato
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2015
05:25 PM
11-23-2015
05:25 PM
Re: Array to string conversion
Olá
Ante do if escreve o seguinte:
Mage::log($value); if (!$product->hasData($attribute->getAttributeCode())) { $value = Mage::helper('catalog')->__('N/A'); } elseif ((string)$value == '') { $value = Mage::helper('catalog')->__('No'); } elseif ($attribute->getFrontendInput() == 'price' && is_string($value)) { $value = Mage::app()->getStore()->convertPrice($value, true); }
Ativa os logs em System > Configuration > Developer > Log Settings
e verifica o que está no arquivo var/log/system.log já deve dar uma pista do que pode estar a acontecer.
Problem solved? Click Accept as Solution!
Still stuck? Check out our documentation: http://magento.com/help/documentation
Still stuck? Check out our documentation: http://magento.com/help/documentation