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

invalid method importFromTextArray()? 
 
Jeena Paradies
Jr. Member
 
Avatar
Total Posts:  22
Joined:  2008-03-10
 

Hi,

before the upgrade to 1.1.6 I used importFromTextArray() within my import script:

$product Mage::getModel('catalog/product');
$product->importFromTextArray($line)
;

But now I just get an error:

PHP Fatal error:  Uncaught exception 'Varien_Exception' with message 'Invalid method Mage_Catalog_Model_Product::importFromTextArray(Array
(
    [0] => Array
        (
            [i] => 2
            [row] => Array
                (
                    [sku] => 011046204-0163-DC34
                    [store] => 0
                    [categories] => 6,20
                    [name] => Dakota reflex jacka Dam 0163 DC34
                    [price] => 3825
                    [weight] => 1.45
                    [status] => Enabled
                    [tax_class_id] => Taxable Goods
                    [size] => DC34
                    [color] => Fl gul/röd
                    [visibility] => 1
                )

        )

)
)' 
in /opt/magento/www.example.se/lib/Varien/Object.php:549
Stack trace
:
#0 [internal function]: Varien_Object->__call('importFromTextA...', Array)
#1 /opt/magento/www.example.se/app/code/local/example/Import/CSV2Mage.php(114): Mage_Catalog_Model_Product->importFromTextArray(Array)
#2 {main}
  
thrown in /opt/magento/www.example.se/lib/Varien/Object.php on line 549
 
Magento Community Magento Community
Magento Community
Magento Community
 
tza79
Jr. Member
 
Total Posts:  6
Joined:  2008-03-22
 

I am having the same problem. Any ideas?

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