Failed to load resource: the server responded with a status of 500 (Internal Server Error) into init.js
I did everything described in this link:
I can log in to the system and it's working but my browser console is showing some errors like:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) in the init.js file. and my init.js file is blank.
and also I tried to use flatpickr for the show calendar in my input field but it's not working too.
I used this code:
I run 'npm run dev' but it still shows:
nid-verify.js?ab44:4 Uncaught TypeError: $(...).flatpickr is not a function
at eval (nid-verify.js?ab44:4:29)
at eval (nid-verify.js?ab44:16:2)
at ./resources/assets/demo1/js/custom/nid-verify.js (nid-verify.js:19:1)
So I am thinking because of init.js others are not working. Please guide me if I am missing something to configure.
Hi Razib Ahmed,
Sorry for the delay. Here is the workaround. Could you please add this
_init.js file? Please the file inside
We will fix it as soon as possible.
I did as you mentioned, I added the code from git to the _init.js file
Git URL: https://gist.github.com/KeenthemesHub/8adc844ac61d355c45b4454147e932e2
_init.js file location: resources/assets/core/js/components/_init.js
But still, the 500 issues are there showing:
Loading failed for the with source “http://127.0.0.1:8000/demo1/js/init.js”.
Status: 500 Internal Server Error
Transferred: 1.02 MB (1.02 MB size)
Referrer Policy: strict-origin-when-cross-origin
Also, you can see the error details in this screenshot:
Could you please download the latest version from ThemeForest? We just released a new update yesterday. Hope it can be resolved.
Thanks for the new release 8.1.6. My init.js issue is fixed under this version.
Hi Razib Ahmed,
Sorry for the inconvenience. Glad it has been resolved.