Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSSParseError: Declaration group closing '}' not found Bika 3.0rc3 #993

Closed
marcosbocca opened this issue Jul 31, 2013 · 2 comments
Closed

Comments

@marcosbocca
Copy link

Error ocurs when try to generate a report of published sample.
Plone 4.2.5
Zope 2.13.19
Python 2.7.3 (default, Apr 10 2013, 06:20:15) [GCC 4.6.3]
Welcome to Gaob Bika LIMS 3 - This is 3.0rc3 (2013-06-25)

Exception traceback
Time 2013/07/31 17:11:14.638930 GMT-3
User Name (User Id) admin (admin)
Request URL http://192.168.181.223:8085/PloneBika/reports/createreport
Exception Type CSSParseError
Exception Value Declaration group closing '}' not found:: (u'{\n display: none;\n position: fixed;\n z-index: 1000;\n top: 1px;\n left: 50%;\n height: 2em;\n width: 2em;\n border: 1px solid #777;\n border-radius: .2em;\n background: rgba( 255, 255, 255, .90 )\n url(http://192.168.181.223:8085/PloneBika/spinner.gif)\n 50% 50%\n no-repeat;\n opacity: 0.90;\n -ms-filter: progid', u':DXImageTransform.Mi')
Traceback (innermost last):

Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module bika.lims.browser.reports, line 247, in call
Module xhtml2pdf.document, line 89, in pisaDocument
Module xhtml2pdf.document, line 57, in pisaStory
Module xhtml2pdf.parser, line 660, in pisaParser
Module xhtml2pdf.context, line 428, in parseCSS
Module xhtml2pdf.w3c.cssParser, line 431, in parse
Module xhtml2pdf.w3c.cssParser, line 530, in _parseStylesheet
Module xhtml2pdf.w3c.cssParser, line 655, in _parseAtKeyword
Module xhtml2pdf.w3c.cssParser, line 603, in _parseAtImports
Module xhtml2pdf.w3c.css, line 874, in atImport
Module xhtml2pdf.context, line 330, in parseExternal
Module xhtml2pdf.w3c.cssParser, line 431, in parse
Module xhtml2pdf.w3c.cssParser, line 535, in _parseStylesheet
Module xhtml2pdf.w3c.cssParser, line 826, in _parseRuleset
Module xhtml2pdf.w3c.cssParser, line 1017, in _parseDeclarationGroup
CSSParseError: Declaration group closing '}' not found:: (u'{\n display: none;\n position: fixed;\n z-index: 1000;\n top: 1px;\n left: 50%;\n height: 2em;\n width: 2em;\n border: 1px solid #777;\n border-radius: .2em;\n background: rgba( 255, 255, 255, .90 )\n url(http://192.168.181.223:8085/PloneBika/spinner.gif)\n 50% 50%\n no-repeat;\n opacity: 0.90;\n -ms-filter: progid', u':DXImageTransform.Mi')

Display traceback as text

REQUEST

form

submit 'Generate report'
Published_todate ''
Requested_fromdate ''
Requested_todate ''
ClientUID 'f64d24aef983450bac33038cbd47f9c2'
Published_fromdate ''
report_id 'productivity_analysesperservice'
cookies

review_state '{"AnalysisRequestsFolderanalysisrequests": "default", "SamplesFoldersamples": "default"}'
lazy items

SESSION <bound method SessionDataManager.getSessionData of <SessionDataManager at /session_data_manager>>
other

URL 'http://192.168.181.223:8085/PloneBika/reports/createreport'
Published_todate ''
SERVER_URL 'http://192.168.181.223:8085'
LANGUAGE 'pt-br'
AUTHENTICATION_PATH ''
Requested_fromdate ''
TraversalRequestNameStack []
method 'POST'
AUTHENTICATED_USER <PropertiedUser 'admin'>
Requested_todate ''
to_remove []
ACTUAL_URL 'http://192.168.181.223:8085/PloneBika/reports/createreport'
LANGUAGE_TOOL <Products.PloneLanguageTool.LanguageTool.LanguageBinding instance at 0x7f956dad1f38>
PUBLISHED <Products.Five.metaclass.SubmitForm object at 0x7f956da9fa50>
Published_fromdate ''
report_id 'productivity_analysesperservice'
URL0 http://192.168.181.223:8085/PloneBika/reports/createreport
URL1 http://192.168.181.223:8085/PloneBika/reports
URL2 http://192.168.181.223:8085/PloneBika
URL3 http://192.168.181.223:8085
BASE0 http://192.168.181.223:8085
BASE1 http://192.168.181.223:8085
BASE2 http://192.168.181.223:8085/PloneBika
BASE3 http://192.168.181.223:8085/PloneBika/reports
BASE4 http://192.168.181.223:8085/PloneBika/reports/createreport
environ

CONNECTION_TYPE 'keep-alive'
HTTP_ACCEPT_LANGUAGE 'en-US,en;q=0.8'
REMOTE_ADDR '192.168.181.132'
SCRIPT_NAME ''
CONTENT_LENGTH '328'
SERVER_PORT '8085'
SERVER_SOFTWARE 'Zope/(2.13.19, python 2.7.3, linux2) ZServer/1.1'
QUERY_STRING ''
GATEWAY_INTERFACE 'CGI/1.1'
HTTP_HOST '192.168.181.223:8085'
channel.creation_time 1375300211
HTTP_REFERER 'http://192.168.181.223:8085/PloneBika/reports'
PATH_INFO '/PloneBika/reports/createreport'
HTTP_ACCEPT_ENCODING 'gzip,deflate,sdch'
HTTP_COOKIE 'review_state="%7B%22AnalysisRequestsFolderanalysisrequests%22%3A%20%22default%22%2C%20%22SamplesFoldersamples%22%3A%20%22default%22%7D"'
HTTP_CACHE_CONTROL 'max-age=0'
REQUEST_METHOD 'POST'
SERVER_NAME 'eqisrv03'
HTTP_ORIGIN 'http://192.168.181.223:8085'
PATH_TRANSLATED '/PloneBika/reports/createreport'
HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8'
CONTENT_TYPE 'application/x-www-form-urlencoded'
SERVER_PROTOCOL 'HTTP/1.1'
HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36'

@marcosbocca
Copy link
Author

Thank you, rockfruit !

I did:
/opt/plone/zinstance# cd src
/opt/plone/zinstance/src# git clone git://github.com/bikalabs/Bika-LIMS.git
/opt/plone/zinstance/src# cd ..

and edited buildout.cfg
develop =
src/Bika-LIMS

After run bin/buildout I get at
http://192.168.181.223:8088/PloneBika/prefs_install_products_form
Bika LIMS 3.0rc3.4

And http://192.168.181.223:8088/PloneBika/reports
WORKS !

Thank you very much, rockfruit !

@rockfruit
Copy link
Contributor

Hi,

Excellent! That branch (rc3.4) will be released to pypi today, but now
in future, your buildout will ignore new releases, and prefer the source
code. However the source will not be updated automatically, you will
need to do this:

cd /opt/plone/zinstance/src/Bika-LIMS
git pull origin master

and restart Plone.

This will keep you always up to date, and usually slightly more updated,
than the release source.

You are welcome!

On 16/08/2013 02:21, Marcos G. Bocca wrote:

Thank you, rockfruit !

I did:
/opt/plone/zinstance# cd src
/opt/plone/zinstance/src# git clone
git://github.com/bikalabs/Bika-LIMS.git
/opt/plone/zinstance/src# cd ..

and edited buildout.cfg
develop =
src/Bika-LIMS

After run bin/buildout I get at
http://192.168.181.223:8088/PloneBika/prefs_install_products_form
Bika LIMS 3.0rc3.4

And http://192.168.181.223:8088/PloneBika/reports
WORKS !

Thank you very much, rockfruit !


Reply to this email directly or view it on GitHub
#993 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants