product import fails with: junk after document element: line 2, column 0

Bug #780514 reported by Dr. Jason S. Jorgenson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Invalid
Undecided
Unassigned

Bug Description

There are several configurable products in the Magento database. All other import features work, but Step 6, Product Import, fails producing the following error... Magento 1.5

Environment Information :
System : Linux-2.6.38-9-generic-i686-with-Ubuntu-11.04-natty
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
Operating System Release : 2.6.38-9-generic
Operating System Version : #43-Ubuntu SMP Thu Apr 28 15:25:15 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : en_GB.UTF8
Python Version : 2.7.1+
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/share/pyshared/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/share/pyshared/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/share/pyshared/openerp-server/addons/magentoerpconnectv6-c2c/magerp_core.py", line 143, in sync_products
    list_prods = attr_conn.call('catalog_product.list')
  File "/usr/share/pyshared/openerp-server/addons/magentoerpconnectv6-c2c/magerp_osv.py", line 53, in call
    res = self.ser.call(self.session, method, arguments)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1575, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1467, in parse_response
    p.feed(data)
  File "/usr/lib/python2.7/xmlrpclib.py", line 557, in feed
    self._parser.Parse(data, 0)
ExpatError: junk after document element: line 2, column 0

Revision history for this message
Kyle Waid (midwest) wrote :

You do not have enough memory available in your php.ini, .htaccess and webserver configuration to complete this process. There are several posts about this problem. The o

ResponseError is the same thing but the response you receive is different depending on your setup due to the exact resource cutoff.

Revision history for this message
Kyle Waid (midwest) wrote :

You can tell the error right away. In your stack trace you see it made a connection call to magento

magerp_core.py", line 143, in sync_products
    list_prods = attr_conn.call('catalog_product.list')

The response was so great that it overloaded your memory limits defined in the files I specified. You must have a lot of products. Also I noticed you are using the c2c branch. Why not use the main branch if you are not a developer?

Kyle Waid (midwest)
Changed in magentoerpconnect:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.