← Back to team overview

openerp-connector-community team mailing list archive

Re: Can't sync product categories

 

Hi,
Now I think I know where is the trouble. There are not product categories
in magento. They are been created in OpenERP first, so, that I need is to
export them from OpenERP to magento.
Is there a method to import the categories, into magento?.
Thanks
El 31/10/2014 10:56, "Markus Schneider" <markus.schneider@xxxxxxxxxx>
escribió:

> So see at
> /var/log/apache2/php5/error.log
>
> Am 31. Oktober 2014 10:27:42 MEZ, schrieb Sergio <sbarajas@xxxxxxxxx>:
>>
>> Hi,
>> It runs on an apache 2.2.27 installation, with PHP 5.4.30.
>> And MySQL 5.5.36
>> Thanks a lot
>> El 31/10/2014 10:06, "Markus Schneider" <markus.schneider@xxxxxxxxxx>
>> escribió:
>>
>>> hi
>>>
>>> So the error of magento side tells you there is a errror on webserver
>>> level and have no details about what happends.
>>> So you need to look on the logs for PHP or your webserver logs of your
>>> magento installation. what is installed? Apache, nginx, hhvm some other?
>>>
>>> Kind Regards
>>> Markus
>>>
>>>
>>> Am 30. Oktober 2014 22:00:54 MEZ, schrieb Sergio Barajas <
>>> sbarajas@xxxxxxxxx>:
>>>>
>>>> Hi,
>>>> My Magento installation is CE 1.9, so, it is not affected by this problem.
>>>> The PHP 5.4 affect earlier versions to 1.9
>>>> A greeting
>>>>
>>>> El 30/10/14 a las 20:01, Guewen Baconnier escribió:
>>>>
>>>>>  I don't have a clue neither. What version of PHP do you use? Do you
>>>>>  know that Magento is not compatible out of the box with PHP 5.4? See
>>>>>  http://magento.com/resources/system-requirements for more information.
>>>>>  It could be a cause.
>>>>>
>>>>>
>>>>>  On Thu, Oct 30, 2014 at 4:39 PM, Sergio Barajas Bermejo
>>>>>  <sbarajas@xxxxxxxxx> wrote:
>>>>>
>>>>>>  I Can see this:
>>>>>>
>>>>>>
>>>>>> 2014-10-30T15:34:29+00:00 ERR (3):
>>>>>>  exception
>>>>>> 'Zend_XmlRpc_Server_Exception' with message 'Internal Error.
>>>>>>  Please see log for details.' in
>>>>>>  /home/kaflooch/public_html/magento/includes/src/Mage_Api_Model_Server_Adapter_Xmlrpc.php:125
>>>>>>  Stack trace:
>>>>>>  #0
>>>>>>  /home/kaflooch/public_html/magento/includes/src/Mage_Api_Model_Server_Handler_Abstract.php(140):
>>>>>>  Mage_Api_Model_Server_Adapter_Xmlrpc->fault('1', 'Internal Error....')
>>>>>>  #1
>>>>>>  /home/kaflooch/public_html/magento/includes/src/Mage_Api_Model_Server_Handler_Abstract.php(48):
>>>>>>  Mage_Api_Model_Server_Handler_Abstract->_fault('internal')
>>>>>>  #2
>>>>>>  /home/kaflooch/public_html/magento/includes/src/Mage_Catalog_Model_Category_Api.php(168):
>>>>>>  Mage_Api_Model_Server_Handler_Abstract->handlePhpError(4096, 'Argument 1
>>>>>>  pass...', '/home/kaflooch/...', 168, Array)
>>>>>>  #3
>>>>>>  /home/kaflooch/public_html/magento/includes/src/Mage_Catalog_Model_Category_Api.php(159):
>>>>>>
>>>>>> Mage_Catalog_Model_Category_Api->_nodeToArray(NULL)
>>>>>>
>>>>>>
>>>>>> #4 [internal function]: Mage_Catalog_Model_Category_Api->tree('', NULL)
>>>>>>  #5
>>>>>>  /home/kaflooch/public_html/magento/includes/src/Mage_Api_Model_Server_Handler_Abstract.php(296):
>>>>>>  call_user_func_array(Array, Array)
>>>>>>  #6 [internal function]:
>>>>>>  Mage_Api_Model_Server_Handler_Abstract->call('5f7dd159fe71959...',
>>>>>>  'catalog_categor...', Array)
>>>>>>  #7
>>>>>>  /home/kaflooch/public_html/magento/includes/src/Zend_Server_Abstract.php(232):
>>>>>>  call_user_func_array(Array, Array)
>>>>>>  #8
>>>>>>  /home/kaflooch/public_html/magento/includes/src/Zend_XmlRpc_Server.php(599):
>>>>>>  Zend_Server_Abstract->_dispatch(Object(Zend_Server_Method_Definition),
>>>>>>  Array)
>>>>>>  #9
>>>>>>  /home/kaflooch/public_html/magento/includes/src/Zend_XmlRpc_Server.php(337):
>>>>>>  Zend_XmlRpc_Server->_handle(Object(Zend_XmlRpc_Request_Http))
>>>>>>  #10
>>>>>>  /home/kaflooch/public_html/magento/includes/src/Mage_Api_Model_Server_Adapter_Xmlrpc.php(113):
>>>>>>
>>>>>> Zend_XmlRpc_Server->handle()
>>>>>>  #11
>>>>>>  /home/kaflooch/public_html/magento/includes/src/Mage_Api_Model_Server.php(138):
>>>>>>  Mage_Api_Model_Server_Adapter_Xmlrpc->run()
>>>>>>  #12
>>>>>>  /home/kaflooch/public_html/magento/app/code/core/Mage/Api/controllers/XmlrpcController.php(39):
>>>>>>  Mage_Api_Model_Server->run()
>>>>>>  #13 /home/kaflooch/public_html/magento/includes/src/__default.php(14015):
>>>>>>  Mage_Api_XmlrpcController->indexAction()
>>>>>>  #14 /home/kaflooch/public_html/magento/includes/src/__default.php(18399):
>>>>>>  Mage_Core_Controller_Varien_Action->dispatch('index')
>>>>>>  #15 /home/kaflooch/public_html/magento/includes/src/__default.php(17933):
>>>>>>  Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
>>>>>>  #16 /home/kaflooch/public_html/magento/includes/src/__default.php(20705):
>>>>>>  Mage_Core_Controller_Varien_Front->dispatch()
>>>>>>  #17 /home/kaflooch/public_html/magento/app/Mage.php(68
>>>>>>  4):
>>>>>>
>>>>>> Mage_Core_Model_App->run(Array)
>>>>>>  #18 /home/kaflooch/public_html/magento/index.php(87): Mage::run('', 'store')
>>>>>>  #19 {main}
>>>>>>
>>>>>>  But, I don't understand the meaning of the message.
>>>>>>  I can't know what is wrong
>>>>>>
>>>>>>
>>>>>>  El 30/10/14 a las 14:42, Guewen Baconnier escribió:
>>>>>>
>>>>>>  Hi,
>>>>>>>  All the errors that begin with <Fault are errors returned by Magento.
>>>>>>>  This error comes from Magento so you should understand "see in the
>>>>>>>  Magento logs for details".
>>>>>>>
>>>>>>>  --
>>>>>>>  Guewen Baconnier
>>>>>>>  Business Solutions Software Developer
>>>>>>>
>>>>>>>  Camptocamp SA
>>>>>>>  PSE A, CH-1015 Lausanne
>>>>>>>  Phone: +41 21 619 10 39
>>>>>>>  Office: +41
>>>>>>> 21 619 10 10 <%2B41%2021%20619%2010%2010>
>>>>>>>  http://www.camptocamp.com/
>>>>>>>
>>>>>>>
>>>>>>>  On Thu, Oct 30, 2014 at 2:35 PM, Sergio <sbarajas@xxxxxxxxx> wrote:
>>>>>>>
>>>>>>>>  Hi,
>>>>>>>>>  When I push the button in the backend to syncronize the product
>>>>>>>>>  categories
>>>>>>>>>  from OpenERP 7 to Magento1.9
>>>>>>>>>  I have this error:
>>>>>>>>>
>>>>>>>>>  Traceback (most recent call last):
>>>>>>>>>  File
>>>>>>>>>
>>>>>>>>>  "/usr/lib/python2.6/dist-packages/openerp/addons/connector/queue/worker.py",
>>>>>>>>>  line 122, in run_job job.perform(session)
>>>>>>>>>  File
>>>>>>>>>
>>>>>>>>>  "/usr/lib/python2.6/dist-packages/openerp/addons/connector/queue/job.py",
>>>>>>>>>  line 472, in perform self.result = self.func(session, *self.args,
>>>>>>>>>  **self.kwargs)
>>>>>>>>>  File
>>>>>>>>>
>>>>>>>>>  "/usr/lib/python2.6/dist-packages/openerp/addons/openerp-connector-magento/magentoerpconnect/unit/import_synchronizer.py",
>>>>>>>>>  line 358, in import_batch importer.run(filters=filters)
>>>>>>>>>  File
>>>>>>>>>
>>>>>>>>>  "/usr/lib/python2.6/dist-packages/openerp/addons/openerp-connector-magento/magentoerpconnect/product_category.py",
>>>>>>>>>  line 179, in run tree = self.backend_adapter.tree()
>>>>>>>>>  File
>>>>>>>>>
>>>>>>>>>  "/usr/lib/python2.6/dist-packages/openerp/addons/openerp-connector-magento/magentoerpconnect/product_category.py",
>>>>>>>>>  line 142, in tree [parent_id, storeview_id])
>>>>>>>>>  File
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> "/usr/lib/python2.6/dist-packages/openerp/addons/openerp-connector-magento/magentoerpconnect/product_category.py",
>>>>>>>>>  line 93, in _call return super(ProductCategoryAdapter,
>>>>>>>>>  self)._call(method,
>>>>>>>>>  arguments)
>>>>>>>>>  File
>>>>>>>>>
>>>>>>>>>  "/usr/lib/python2.6/dist-packages/openerp/addons/openerp-connector-magento/magentoerpconnect/unit/backend_adapter.py",
>>>>>>>>>  line 156, in _call result = api.call(method, arguments)
>>>>>>>>>  File "/usr/local/lib/python2.6/dist-packages/magento/api.py", line 161,
>>>>>>>>>  in
>>>>>>>>>  call return self.client.call(self.session, resource_path, arguments)
>>>>>>>>>  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__ return
>>>>>>>>>  self.__send(self.__name, args) File "/usr/lib/python2.6/xmlrpclib.py",
>>>>>>>>>  line
>>>>>>>>>  1489, in __request verbose=self.__verbose
>>>>>>>>>  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request return
>>>>>>>>>  self._parse_response(h.getfile(), sock) File
>>>>>>>>>  "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response return
>>>>>>>>>  u.close()
>>>>>>>>>  File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close raise
>>>>>>>>>  Fault(**self._sta
>>>>>>>>>  ck[0])
>>>>>>>>> Fault: <Fault 1: 'Internal Error. Please see log
>>>>>>>>>  for
>>>>>>>>>  details.'>
>>>>>>>>>
>>>>>>>>>  In the end of the log it says: "see log for details", where is this log?
>>>>>>>>>  Thanks
>>>>>>>>>
>>>>>>>>>  PD: My OpenERP is installed into an Debian 7 host
>>>>>>>>>
>>>>>>>>
>>>>>>>>  --
>>>>>>>>  Mailing list: https://launchpad.net/~openerp-connector-community
>>>>>>>>  Post to     : openerp-connector-community@xxxxxxxxxxxxxxxxxxx
>>>>>>>>  Unsubscribe : https://launchpad.net/~openerp-connector-community
>>>>>>>>  More help   : https://help.launchpad.net/ListHelp
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>  --
>>>>>>  Mailing list: https://launchpad.net/~openerp-connector-community
>>>>>>  Post to     : openerp-connector-community@xxxxxxxxxxxxxxxxxxx
>>>>>>  Unsubscribe : https://launchpad.net/~openerp-connector-community
>>>>>>  More help   : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>> --
>>> Dipl.-Comp.-Math. Markus Schneider
>>> Softwareentwickler
>>>
>>> initOS GmbH & Co. KG
>>> An der Eisenbahn 1
>>> 21224 Rosengarten
>>>
>>> Mobil: +49 (0)172 2303699
>>> Phone: +49 (0)4105 5615613
>>> Fax: +49 (0)4105 5615610
>>>
>>> Email: markus.schneider@xxxxxxxxxx
>>> Web: http://www.initos.com
>>>
>>> Geschäftsführung:
>>> Dipl. Wirt.-Inf. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
>>> Haftende Gesellschafterin: initOS Verwaltungs GmbH
>>>
>>> Sitz der Gesellschaft: Rosengarten – Klecken
>>> Amtsgericht Tostedt, HRA 201840
>>> USt-IdNr: DE 275698169
>>> Steuer-Nr: 15/205/21402
>>>
>> --
>> Mailing list: https://launchpad.net/~openerp-connector-community
>> Post to     : openerp-connector-community@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openerp-connector-community
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
> --
> Dipl.-Comp.-Math. Markus Schneider
> Softwareentwickler
>
> initOS GmbH & Co. KG
> An der Eisenbahn 1
> 21224 Rosengarten
>
> Mobil: +49 (0)172 2303699
> Phone: +49 (0)4105 5615613
> Fax: +49 (0)4105 5615610
>
> Email: markus.schneider@xxxxxxxxxx
> Web: http://www.initos.com
>
> Geschäftsführung:
> Dipl. Wirt.-Inf. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
> Haftende Gesellschafterin: initOS Verwaltungs GmbH
>
> Sitz der Gesellschaft: Rosengarten – Klecken
> Amtsgericht Tostedt, HRA 201840
> USt-IdNr: DE 275698169
> Steuer-Nr: 15/205/21402
>

References