jolly
April 30, 2015, 7:08am
1
I installed v5 according to instructions, but when I go to the web page I get a black page. There’s apparently HTML there but a javascript error is triggered, so I guess it never fades from black or something?
Uncaught TypeError: Cannot read property ‘trim’ of undefined frappe-web.min.js
rmehta
April 30, 2015, 10:02am
2
Can you post the full trace?
Also run bench update
before trying.
jolly
April 30, 2015, 10:31am
3
TypeError: Cannot read property ‘trim’ of undefined
scope variables:
sidebar_has_content: undefined
$.extend.toggle_template_blocks (frappe-web.min.js:113)
(anonymous function) (frappe-web.min.js:138)
o.event.dispatch (jquery.min.js:3)
o.event.add.r.handle (jquery.min.js:3)
o.event.trigger (jquery.min.js:3)
(anonymous function) (jquery.min.js:3)
o.extend.each (jquery.min.js:2)
o.fn.o.each (jquery.min.js:2)
o.fn.extend.trigger (jquery.min.js:3)
(anonymous function) (frappe-web.min.js:138)
o.Callbacks.j (jquery.min.js:2)
o.Callbacks.k.fireWith (jquery.min.js:2)
o.extend.ready (jquery.min.js:2)
I (jquery.min.js:2)
rmehta
April 30, 2015, 11:51am
4
It seems you are using Version 4. If you are starting fresh, its best to start with version 5.
Can you do bench switch-to-develop
and start with Version 5.
jolly
April 30, 2015, 12:14pm
5
thanks, got it. nginx served the file from v4.
Was this a configuration error in bench or an oversight from your end?
jolly
May 4, 2015, 7:12am
7
I was missing some of the changes in the nginx.conf file, so my bad.