[wp-trac] [WordPress Trac] #54046: Uncaught SyntaxError: Invalid regular expression

WordPress Trac noreply at wordpress.org
Sat Sep 11 23:50:56 UTC 2021


#54046: Uncaught SyntaxError: Invalid regular expression
--------------------------+------------------------------
 Reporter:  mmakenzi      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  5.8
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript
--------------------------+------------------------------

Comment (by mmakenzi):

 I found the cause of the problem
 I made a mistake and set a charset setting in my Nginx virtual machine
 config file "charset koi8-r;"
 now all edit pages and add a new post or a new page, give me the same
 error

 when I changed the website address from www.mywebsite.com to
 beta.mywebsite.com, everything is fine, and the error is gone, but when I
 switch back to the default address, the error appear again

 I think because of the wrong charset that was set in Nginx config file,
 some wrong data was stored for the default address in database, but when I
 change the address the data was created again

 so do you know how can I fix the data?
 "

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54046#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list