CKEditor filemanager getting stuck uploading files? - javascript

I'm using CKEditor and it's inbuilt filemanager to allow people to change content/upload images to their site.
Everything works fine, except the file manager, if you upload an image it gets stuck loading claiming that it's "Transferring Data" and will continue to display this loader unless the page is refreshed.
The strange thing is that, on reloading the page you can see the file has been uploaded successfully.
Has anybody experienced this issue before? Does anybody have any idea what could be causing this behaviour?

Turned out there were a couple of outdated files that crept into the filemanager directory on the live site, not sure how or why, but that was what caused this issue.

Related

How can I Found what is causing crashing page in Mobile?

I have a problem:
Cart and checkout page in the mobile version: on scrolls page refreshed and suddenly crashed and in safari, I get this error: a problem repeatedly occurred.
I checked the following ways but I couldn't find what caused this problem:
I enable WP_DEBUG and fix all errors.
I check each single js file structure in online tools that check the
structure of JS files.
I create wp-content/mu-plugins and disable unnecessary plugins on these pages.
I removed .css and .js files of the theme to see if this file caused
this error.
I checked the console in inspect mode. and there is no error there.
Would you please share your experience what else I should check to see the reason of the

Issue with uploading website to hosting

I tried uploading my website to the free 000webhosting service. My website loads fine locally, but when uploading it through FileZilla and reloading the page I get an error that says "The jQuery library must be included before the smoothscroll.js file. The plugin will not work properly."
I have a smooth scrolling javascript file and some jquery in my code that I got from somebody else. Does anybody have any idea why my website loads fine locally, but the smooth scrolling doesn't load when uploading my site to a host? And yes, the jquery is before the javascript.
Try to check for your problem:
The files don't exist on the server at all at that path
You moved the files but didn't change the path in index.html
You changed the path in index.html but didn't move the files there
Try checking the files of the particular plugin on the hosting server.
There must be some files that are missing or not uploaded completely.

NG FILE UPLOAD and Sails JS

I'm uploading an image(s) for a certain item. I see the files are being stored and saved in the server just fine but yet it gives me a 404 error when the UI's supposed to show it, if I refresh in 2 seconds, it appears correctly.
I know this is weird and that I didn't give much information or code, it would be a mess if I paste all the functions and backend calls I'm doing, I just want to know if someone's has dealed with this kind of things or knows what it can be.
I
Ok, so the problem was that I was uploading the file(s) to the assets folder, and the view can't access to the files there, it searches for the ones in .tmp, so I uploaded them to .tmp and then copied them to assets, so in the next app lift, these files are copied to .tmp again, cause tmp is destroyed as soon as the server is stopped.

Javascript broken in localhost (and Chrome) but OK in Firefox. But not broken at all when uploaded

Below is the screenshot of the broken page and the second screenshot is what it's supposed to look like.
The error for the above is below:
GET http://localhost:8888/assets/global/css/components-rounded.min.css 404 (Not Found) jquery.min.js:4
I tried to find this components-rounded.min.ss inside the jquery.min.js, but I did not find any.
So it has error in jquery? But that's the official jQuery, and not something else.
The picture below is what the page is supposed to look at.
Somehow when I uploaded it to my server, it's OK for both Chrome and Firefox. I'm dumbfounded by this. I've tried changing the jQuery, it's still the same.
What can I do to fix this?
EDIT:
Most people ask me to download that components-rounded.min.css
But the file do not exists both in the server or in my local. But somehow it's working when I viewed the page in the server. And that components-rounded css file also does not exists in my server.
Yep, I've cleaned up my browser cache. Twice.
Download that file from your server and place it in the right file locally. Ideally commit it to version control too :)
You need to download the css file components-rounded.min.css and save it locally in your css folder.

deleted file off server, file still accessible

Ive done this a million times but this time its having its way with me. I usually work on joomla sites and this one is a drupal site so maybe theres something to that.
In filezillla, i uploaded scripts.js.
I noticed an error in my script. I fix it and reupload it. No failed transfer. I check to make sure the fix works, but find the old version of the code still there.
Ok, I clear chromes cache, reload. Old code still there.
I delete the file off the server. Old code still there. (!!)
I completely barf all over the javascript. Should throw errors. I upload it. Old code still there and no errors.
I change the name of the new scripts.js to scripts2.js and upload it. I navigate to that file via browser URL. Not found. Its right there in the server though, uploaded and refreshed the filezilla pane. Filezilla says its there. Browser says its not. Copied / pasted the path. Theres no spelling mistakes. New file being reported as 404 by browser.
I completely delete project folder off server and reupload. Old code still there. Starting to go nuts.
This has got to be some sort of caching issue.
There is a "clear all caches" function in Drupal. It should be under Settings -> Performance. Try that.

Categories