Error in filter and cannot open any transactions

Hello,

Why is that the filter header is missing? and when I open the specific transaction there is no happening. Only white screen

Please help

Did you try reloading it ? From the topbar, click on ‘Administrator > reload’.

If it still doesn’t work, open developer console by Ctrl + Shift + j or by right clicking anywhere on the screen and selecting ‘inspect’ option. See if there is any error there.

This has happened to me couple of times.

This has worked for me:

  1. Clear Browser Cache.
  2. Try pressing ‘Reload’ from Bench UI (comes in User Info Context Menu - Click on Administrator)
  3. If bench is in production mode, say bench restart or else in developer process, just kill bench process and type bench start again

Hope it Helps

Regards,

Parth

hello,

we did some bench update then this happens

what is the next step?

thank you

@ossphinc Is the bench update still in process or is it done with.

It seems either update / migrate was not successful. Do you have any messages on the terminal ? can you paste that here… ?

Also the above problem of filter is related with this ? coz it seems to be a separate issue…

Regards,

Parth

Hello,

The issue before was the filter or the transaction is not working so we did an bench update if this is the fix of our issue.

pymysql.err.DataError: (1265, u"Data truncated for column ‘labor_cost’ at row 1")

this is the message in the terminal

This seems to be a bit tricky…

  1. Do you have the backup of the database ?
  2. Did you try killing all process of bench and redis and try it again ? Try bench restart and see what happens ?
  3. If still it does not work and if you have database backup you can try bench reinstall and try db import of the backup again. NOTE: Do not Do this if you dont have DB Backup coz reinstall wipes our DB

Regards,

Parth Joshi

  1. How to backup using the terminal?

You generally take DB backup with command $ bench backup which generally takes backup in folder <frappe_bench_folder> / sites / <your site> / private / backup / <your db backup file zipped>

But it would have been great if the Backup was taken before the bench update command. Because may be possible bench update may gave applied some db changes which is creating this problem.

I am not sure whether it will help you with reinstalling with current DB Backup…

regards,

Parth

hello,

still not working. error is

<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="#7575ff">	<meta charset="utf-8">
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0,
	maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="white">
<meta name="mobile-web-app-capable" content="yes">
<title>Frappe Desk</title>
<link rel="shortcut icon"
	href="/files/northronics_final_edited_iSU_icon.ico" type="image/x-icon">
<link rel="icon"
	href="/files/northronics_final_edited_iSU_icon.ico" type="image/x-icon">
<link type="text/css" rel="stylesheet" href="assets/css/desk.min.css?ver=1530778736.0"><link type="text/css" rel="stylesheet" href="assets/css/list.min.css?ver=1530778736.0"><link type="text/css" rel="stylesheet" href="assets/css/form.min.css?ver=1530778736.0"><link type="text/css" rel="stylesheet" href="assets/css/report.min.css?ver=1530778736.0"><link type="text/css" rel="stylesheet" href="assets/css/module.min.css?ver=1530778736.0"><link type="text/css" rel="stylesheet" href="assets/css/erpnext.css?ver=1530778736.0"></head>

[Error] Failed to load resource: the server responded with a status of 502 (Bad Gateway) (desk, line 0)
[Error] Viewport argument key “minimal-ui” not recognized and ignored. (desk, line 13)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (awesomplete.css.map, line 0)
[Error] TypeError: undefined is not an object (evaluating ‘cur_frm.viewers.refresh’)
set_viewers (form.min.js:5024)
(anonymous function) (form.min.js:48)
emit (libs.min.js:7294:12555)
onevent (libs.min.js:7295:26609)
onpacket (libs.min.js:7295:26233)
(anonymous function) (libs.min.js:7295:28349)
emit (libs.min.js:7294:12555)
ondecoded (libs.min.js:7294:19141)
(anonymous function) (libs.min.js:7295:28349)
emit (libs.min.js:7294:12555)
add (libs.min.js:7294:10893)
ondata (libs.min.js:7294:19093)
(anonymous function) (libs.min.js:7295:28349)
emit (libs.min.js:7294:12555)
onPacket (libs.min.js:7294:28316)
(anonymous function) (libs.min.js:7294:25941)
emit (libs.min.js:7294:12555)
onPacket (libs.min.js:7295:8192)
onData (libs.min.js:7295:8145)
onmessage (libs.min.js:7295:22379)
[Error] Viewport argument key “minimal-ui” not recognized and ignored. (desk, line 13)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (awesomplete.css.map, line 0)
[Error] Failed to load resource: the server responded with a status of 502 (Bad Gateway) (socket.io, line 0)
[Error] Viewport argument key “minimal-ui” not recognized and ignored. (desk, line 13)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (awesomplete.css.map, line 0)
[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating ‘print_settings.allow_print_for_draft’)
(anonymous function) (form.min.js:1606)
promiseReactionJob
[Error] TypeError: undefined is not an object (evaluating ‘wrapper.pos.beforeunload’)
onbeforeunload (desk:709)
[Error] Viewport argument key “minimal-ui” not recognized and ignored. (desk, line 13)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (awesomplete.css.map, line 0)
[Error] TypeError: undefined is not an object (evaluating ‘print_settings.allow_print_for_draft’)
make_menu (form.min.js:1606)
refresh (form.min.js:1513)
init (form.min.js:1508)
Class (desk.min.js:37)
setup (form.min.js:160)
refresh (form.min.js:446)
load (form.min.js:87)
(anonymous function) (form.min.js:82)
with_doc (desk.min.js:5505)
show_doc (form.min.js:65)
(anonymous function) (form.min.js:24)
with_doctype (desk.min.js:5444)
make (form.min.js:20)
show (desk.min.js:9670)
route (desk.min.js:2193)
(anonymous function) (desk.min.js:2310)
dispatch (jquery.min.js:3:7543)
dispatch (report.min.js:3020)
handle (jquery.min.js:3:5626)
[Error] Viewport argument key “minimal-ui” not recognized and ignored. (desk, line 13)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (awesomplete.css.map, line 0)
[Error] TypeError: undefined is not an object (evaluating ‘cur_frm.viewers.refresh’)
set_viewers (form.min.js:5024)
(anonymous function) (form.min.js:48)
emit (libs.min.js:7294:12555)
onevent (libs.min.js:7295:26609)
onpacket (libs.min.js:7295:26233)
(anonymous function) (libs.min.js:7295:28349)
emit (libs.min.js:7294:12555)
ondecoded (libs.min.js:7294:19141)
(anonymous function) (libs.min.js:7295:28349)
emit (libs.min.js:7294:12555)
add (libs.min.js:7294:10893)
ondata (libs.min.js:7294:19093)
(anonymous function) (libs.min.js:7295:28349)
emit (libs.min.js:7294:12555)
onPacket (libs.min.js:7294:28316)
(anonymous function) (libs.min.js:7294:25941)
emit (libs.min.js:7294:12555)
onPacket (libs.min.js:7295:8192)
onData (libs.min.js:7295:8145)
onmessage (libs.min.js:7295:22379)
[Error] TypeError: undefined is not an object (evaluating ‘cur_frm.viewers.refresh’)
set_viewers (form.min.js:5024)
(anonymous function) (form.min.js:48)
emit (libs.min.js:7294:12555)
onevent (libs.min.js:7295:26609)
onpacket (libs.min.js:7295:26233)
(anonymous function) (libs.min.js:7295:28349)
emit (libs.min.js:7294:12555)
ondecoded (libs.min.js:7294:19141)
(anonymous function) (libs.min.js:7295:28349)
emit (libs.min.js:7294:12555)
add (libs.min.js:7294:10893)
ondata (libs.min.js:7294:19093)
(anonymous function) (libs.min.js:7295:28349)
emit (libs.min.js:7294:12555)
onPacket (libs.min.js:7294:28316)
(anonymous function) (libs.min.js:7294:25941)
emit (libs.min.js:7294:12555)
onPacket (libs.min.js:7295:8192)
onData (libs.min.js:7295:8145)
onmessage (libs.min.js:7295:22379)
[Error] Viewport argument key “minimal-ui” not recognized and ignored. (desk, line 13)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (awesomplete.css.map, line 0)
[Error] Viewport argument key “minimal-ui” not recognized and ignored. (desk, line 13)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (awesomplete.css.map, line 0)

I think the JS and CSS Resources needs to be rebuilt.

Did you try

$ bench update --build

and

$bench restart

optionally of your instance is on production mode you can try

$ service supervisor restart
$ service nginx restart 

and then try to see…

Regards,

Parth

For this one you should try the following :

update `tabYour Tab NAME` set labor_cost = '0' where trim(coalesce(labor_cost, '')) = '';

Here the table name will be ‘tab’ followed by your Doc Type. Example your DocType where u did customization is Quotation then tab name will be tabQuotation

Regards,

Parth