frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
21k stars 7.2k forks source link

General Ledger View Broken in ERPNext 8.0.8 #8369

Closed prclark closed 7 years ago

prclark commented 7 years ago

I'm Running: ERPNext: v8.0.8 (master) Frappe Framework: v8.0.7 (master)

Trying to view the GL results in a regex error in the browser console, which makes it unable to search the GL.

image

I'm unable to change the date, or select the accounts, etc.

I get the following errors in the console:

Uncaught RangeError: Maximum call stack size exceeded
    at RegExp.[Symbol.match] (<anonymous>)
    at String.match (native)
    at jb (http://localhost/assets/js/libs.min.js:412:64)
    at lb (http://localhost/assets/js/libs.min.js:422:195)
    at ob (http://localhost/assets/js/libs.min.js:424:248)
    at nb (http://localhost/assets/js/libs.min.js:422:503)
    at qb (http://localhost/assets/js/libs.min.js:429:164)
    at rb (http://localhost/assets/js/libs.min.js:429:198)
    at a (http://localhost/assets/js/libs.min.js:261:202)
    at Object.user_to_str (http://localhost/assets/js/desk.min.js:828:8)
    at Class.parse (http://localhost/assets/js/desk.min.js:458:685)
libs.min.js:7957 Uncaught SyntaxError: Invalid regular expression: /(^|>|\s|\.|-|/|\\|,|\$|\!|\?|:|;)(aa)($|<|\s|\.|-|/|\\|,|\$|\!|\?|:|;)/: Stack overflow
    at RegExp.exec (<anonymous>)
    at RegExp.[Symbol.match] (<anonymous>)
    at String.match (native)
    at m.formatDate (http://localhost/assets/js/libs.min.js:7957:7187)
    at http://localhost/assets/js/libs.min.js:7957:11826
    at Array.map (native)
    at m._setInputValue (http://localhost/assets/js/libs.min.js:7957:11801)
    at m.selectDate (http://localhost/assets/js/libs.min.js:7957:9570)
    at Class.set_input (http://localhost/assets/js/desk.min.js:457:420)
    at Class.prototype.(anonymous function) [as set_input] (http://localhost/assets/js/desk.min.js:5:668)
krnkris commented 7 years ago

Are you used one of this expression? Invalid regular expression: /(^|>|\s|.|-|/|\|,|\$|!|\?|:|;)(aa)($|<|\s|.|-|/|\|,|\$|!|\?|:|;)/:

krnkris commented 7 years ago

same issue as there?: https://discuss.erpnext.com/t/setup-wizard-freezes-in-step-4-frappe-8-0-7-erpnext-8-0-8-on-ubuntu-ec2/22329/3

prclark commented 7 years ago

@krnkris I was not using any regular expressions. As soon as I load the GL, the screen doesn't fully load correctly, and whenever you try to use the date/calendar picker that does show up, it will throw that error into the console.

fabyc commented 7 years ago

Hi,

Here is reported the same error: https://discuss.erpnext.com/t/doesnot-show-general-ledger-and-stock-ledger/16522/10