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

Uncaught SyntaxError: Unexpected token '<' #10270

Closed
Edward0625 opened this issue Nov 20, 2021 · 4 comments
Closed

Uncaught SyntaxError: Unexpected token '<' #10270

Edward0625 opened this issue Nov 20, 2021 · 4 comments

Comments

@Edward0625
Copy link

What version of OpenCart are you reporting this for?
Version 3.0.3.8
Describe the bug
With fresh installation in product page, category page and information page has a issue with jquery.
What section does it affect?
Categories, Products, Information
To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Produscts page'
  2. Click on 'Edit' and open browser console
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots / Screen recordings
[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery-2.1.1.min.js:4
ajax @ jquery-2.1.1.min.js:4
n._evalUrl @ jquery-2.1.1.min.js:4
domManip @ jquery-2.1.1.min.js:3
append @ jquery-2.1.1.min.js:3
(névtelen) @ opencart.js:7
each @ jquery-2.1.1.min.js:2
each @ jquery-2.1.1.min.js:2
(névtelen) @ opencart.js:3
j @ jquery-2.1.1.min.js:2
fireWith @ jquery-2.1.1.min.js:2
ready @ jquery-2.1.1.min.js:2
I @ jquery-2.1.1.min.js:2
jquery-2.1.1.min.js:4 GET https://beta.angyalicipok.hu/admin/view/javascript/summernote/lang/summernote-en-US,en_US.UTF-8,en_US,en-gb,english-EN-US,EN_US.UTF-8,EN_US,EN-GB,ENGLISH.min.js?_=1637392543878 404
send @ jquery-2.1.1.min.js:4
ajax @ jquery-2.1.1.min.js:4
n._evalUrl @ jquery-2.1.1.min.js:4
domManip @ jquery-2.1.1.min.js:3
append @ jquery-2.1.1.min.js:3
(névtelen) @ opencart.js:7
each @ jquery-2.1.1.min.js:2
each @ jquery-2.1.1.min.js:2
(névtelen) @ opencart.js:3
j @ jquery-2.1.1.min.js:2
fireWith @ jquery-2.1.1.min.js:2
ready @ jquery-2.1.1.min.js:2
I @ jquery-2.1.1.min.js:2
VM3239:1 Uncaught SyntaxError: Unexpected token '<'
at eval ()
at Function.globalEval (jquery-2.1.1.min.js:2)
at text script (jquery-2.1.1.min.js:4)
at vc (jquery-2.1.1.min.js:4)
at x (jquery-2.1.1.min.js:4)
at XMLHttpRequest. (jquery-2.1.1.min.js:4)
at Object.send (jquery-2.1.1.min.js:4)
at Function.ajax (jquery-2.1.1.min.js:4)
at Function.n._evalUrl (jquery-2.1.1.min.js:4)
at n.fn.init.domManip (jquery-2.1.1.min.js:3)
globalEval @ jquery-2.1.1.min.js:2
text script @ jquery-2.1.1.min.js:4
vc @ jquery-2.1.1.min.js:4
x @ jquery-2.1.1.min.js:4
(névtelen) @ jquery-2.1.1.min.js:4
send @ jquery-2.1.1.min.js:4
ajax @ jquery-2.1.1.min.js:4
n._evalUrl @ jquery-2.1.1.min.js:4
domManip @ jquery-2.1.1.min.js:3
append @ jquery-2.1.1.min.js:3
(névtelen) @ opencart.js:7
each @ jquery-2.1.1.min.js:2
each @ jquery-2.1.1.min.js:2
(névtelen) @ opencart.js:3
j @ jquery-2.1.1.min.js:2
fireWith @ jquery-2.1.1.min.js:2
ready @ jquery-2.1.1.min.js:2
I @ jquery-2.1.1.min.js:2
load (aszinkron)
send @ jquery-2.1.1.min.js:4
ajax @ jquery-2.1.1.min.js:4
n._evalUrl @ jquery-2.1.1.min.js:4
domManip @ jquery-2.1.1.min.js:3
append @ jquery-2.1.1.min.js:3
(névtelen) @ opencart.js:7
each @ jquery-2.1.1.min.js:2
each @ jquery-2.1.1.min.js:2
(névtelen) @ opencart.js:3
j @ jquery-2.1.1.min.js:2
fireWith @ jquery-2.1.1.min.js:2
ready @ jquery-2.1.1.min.js:2
I @ jquery-2.1.1.min.js:2
jquery-2.1.1.min.js:2 [Violation] 'DOMContentLoaded' handler took 167ms

Server / Test environment (please complete the following information):

  • Local development? Deployed to a web server?
  • Operating system
  • PHP version
  • Apache version
  • Browser(s) tested with [e.g. chrome, safari - if applicable]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@ADDCreative
Copy link
Contributor

Possible duplicate of #9635 and #10259.

@oobayi
Copy link

oobayi commented Nov 24, 2021

I downloaded 3.0.3.8 from opencart.com. I found the same problem as you. The default is English and no other language is added

@webkul-dilip
Copy link
Contributor

#10275 we have fixed the issue now

@Opencart-Webkul
Copy link
Collaborator

Merged PR #10275

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

5 participants