In a new freash installation, when we try to delete a theme, or plugin, or doing something in the cms tab appear this error on consolle. Anyone get this issues?
october-min.js?v419:194 Uncaught TypeError: Cannot read property 'querySelector' of null
at setParameters (october-min.js?v419:194)
at window.sweetAlert.window.swal (october-min.js?v419:180)
at window.sweetAlert.window.swal (october-min.js?v419:537)
at Object.confirm (october-min.js?v419:525)
at eval (october-min.js?v419:529)
at dispatch (jquery.min.js?v419:1)
at r.handle (jquery.min.js?v419:1)
at Object.trigger (jquery.min.js?v419:1)
at n.fn.init.triggerHandler (jquery.min.js?v419:1)
at Object.handleConfirmMessage (framework.js?v419:47)
Environment: php 7.1 mysql 5.7
What browser are you using?
This error is caused when i install october on www.mydomain.com and i use the cms on mydomain.com, this avail also for the .htaccess redirect. the frontend works good but the backend does not respond.
? That tells me exactly nothing.
okay, let me explain better.
1) If i install oct on https://www.mydomain.com and use it on www version: the backend and the frontend works good
2) if i install oct on https://www.mydomain.com and use the backend on https://mydomain.com this cause the errors above. The frontend always works but the back don't.
@simonechinaglia what other errors are in the console?
Only js errors, for example sidenavbar in the cms tab collaple automatically, also for unable to add plugin, modals in setting tab.
I am developing a component for oct and last week i migrated the whole site/db on aws, i think it was the custom lamp but I fixed the error using only one versione of the domain.
perhaps t氓he procedure to have the issues is not common.
Are there any 404 errors or missing scripts from this page?
nono
Do you have any sort of weird APP_URL or force scheme or forcing of the root URL setup?
Same error on my installation. In the coding he can't find the .sweet-alert modal.
October: 430
PHP-fpm: 7.1
Stacktrace:
Uncaught TypeError: Cannot read property 'querySelector' of null
at setParameters (october-min.js?v430:formatted:2467)
at window.sweetAlert.window.swal (october-min.js?v430:formatted:2320)
at window.sweetAlert.window.swal (october-min.js?v430:formatted:4734)
at Object.confirm (october-min.js?v430:formatted:4696)
at eval (october-min.js?v430:formatted:4713)
at dispatch (jquery.min.js?v430:1)
at r.handle (jquery.min.js?v430:1)
at Object.trigger (jquery.min.js?v430:1)
at n.fn.init.triggerHandler (jquery.min.js?v430:1)
at Object.handleConfirmMessage (framework.js?v430:54)
Reproduce:
Maybe same issue as in #3300.
@LukeTowers My error was caused by cloudflare integration with double minify action on js.
Oh nice!
For future users who have problems with this, create a page rule and disable performance:

@LukeTowers please close this issue, because he wrote that it is resolved.
Perfect, thanks for the update @simonechinaglia & @maxibanki!
Many thanks @mxschmitt I had similar problems with Cloudflare and it just works, great idea :)