EDIT: Figured out the issue here was likely with Ubuntu 14 and wkhtmltopdf, creating a new VM with Ubuntu 12 instead solved the problem.
I recently installed a new instance of OpenERP v7.0, and am getting an error when trying to install a custom report module: SyntaxError: JSON Parse error: Unexpected EOF:
Traceback (most recent call last):
File "/opt/openerp/odoo/openerp/netsvc.py", line 296, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/openerp/odoo/openerp/service/web_services.py", line 654, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp/odoo/openerp/service/web_services.py", line 760, in exp_report_get
return self._check_report(report_id)
File "/opt/openerp/odoo/openerp/service/web_services.py", line 738, in _check_report
netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
File "/opt/openerp/odoo/openerp/netsvc.py", line 71, in abort_response
raise openerp.osv.osv.except_osv(description, details)
except_osv: (u"list index out of rangeparagraph text u'<para></font></para>' caused exception\nhandle_pageBegin args=()", (<type 'exceptions.IndexError'>, IndexError("list index out of rangeparagraph text u'<para></font></para>' caused exception\nhandle_pageBegin args=()",), <traceback object at 0x7fd88ef03290>))
Any idea why this might be? It worked perfectly in my other instance. One thing that might have caused it is that I had a v7 saas-5 instance on the same server, but I removed the git repo and reinstalled. Should I nuke/pave the VM and try again? The other thing I noticed is that my old version (installed by someone else) is at Version 7.0-20131113-002526, where my new one says just Version 7.0 - not sure if that could be causing it too. Any insight would be greatly appriciated!
'' is invalid XML/HTML. Could be caused by a bug in the custom module that doesn't handle empty data sets well? Since you mentioned it's a new instance, I don't know how much data you've migrated into the server. I don't think nuking the VM is necessary. What's the custom module, and where's the source code for it?
Note that my (para)(/font)(/para) tags were stripped from the beginning of the comment.
http://pastebin.com/X5Z0xpex is the xml for one of my reports. There is another that is very similar. What is strange is that it is working on my old version 7 install, but that was done by someone else so I am not sure if there were some differences in the way that it was installed. I ran the code through an xml validator on w3 schools and it turned up with no errors. Really not sure what's going on here.