thaond / magento-openerp-smile-synchro

Automatically exported from code.google.com/p/magento-openerp-smile-synchro
0 stars 0 forks source link

product.create return fails #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When the first magento product is created, the magento_product_sync.py
script fails.

the magento product is created, but the python script can't understand the
answer from the magento server.

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/tinyerp-server/netsvc.py", line
202, in _dispatch
    r=m(*params)
  File
"/usr/lib/python2.4/site-packages/tinyerp-server/service/web_services.py",
line 422, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File
"/usr/lib/python2.4/site-packages/tinyerp-server/service/web_services.py",
line 402, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File
"/usr/lib/python2.4/site-packages/tinyerp-server/wizard/__init__.py", line
160, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File
"/usr/lib/python2.4/site-packages/tinyerp-server/wizard/__init__.py", line
75, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File
"/usr/lib/python2.4/site-packages/tinyerp-server/addons/magento_openerp_smile/wi
zard/magento_product_synchronize.py",
line 139, in _do_export
    new_id=server.call(session, 'product.create', ['simple',attr_set_id,
sku, product_data])
  File "xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "xmlrpclib.py", line 1147, in request
    return self._parse_response(h.getfile(), sock)
  File "xmlrpclib.py", line 1281, in _parse_response
    p.feed(response)
  File "xmlrpclib.py", line 527, in feed
    self._parser.Parse(data, 0)
ExpatError: junk after document element: line 2, column 0

Original issue reported on code.google.com by gunter.k...@gmail.com on 19 Sep 2008 at 1:30

GoogleCodeExporter commented 8 years ago
I found an error in my magento installation:

this code is send with the xml code of the answer of the xmlrpc server and 
kills the
script:

<br />
Warning: 
file_put_contents(/var/www/localhost/htdocs/magento/var/log//var/www/localhost/h
tdocs/magento/app/code/core/Mage/Catalog/Model/Product/Api.php)
[<a href='function.file-put-contents'>function.file-put-contents</a>]: failed 
to open
stream: No such file or directory in
/var/www/localhost/htdocs/magento/app/Mage.php on line 511<br />
<br />
Warning:  chmod() [<a href='function.chmod'>function.chmod</a>]: No such file
or directory in /var/www/localhost/htdocs/magento/app/Mage.php on line
512<br />

Original comment by gunter.k...@gmail.com on 19 Sep 2008 at 2:56

GoogleCodeExporter commented 8 years ago
this seems to be a magento bug. there is an emty variable in the public log 
function
of magento. i fixed this dirty on my own.
thanks, gunter

Original comment by gunter.k...@gmail.com on 19 Sep 2008 at 3:42

GoogleCodeExporter commented 8 years ago
Ok, so after all a Magento Bug.
I'll close this.

Original comment by GrouhPamart on 25 Sep 2008 at 1:14