One of the plugins I use (content-aware-sidebars) requires a file called “class-freemius.php”. The file is 955KB in size, and resides in a sub-folder deep within htdocs. The file didn’t upload when I uploaded my entire site today, and each time I try to manually upload the individual file, it appears to upload but never actually makes it to the folder. I’ve searched other folders to see if it gets moved elsewhere, but it doesn’t appear anywhere. I’ve looked at the list of reasons why files get automatically deleted and this file doesn’t meet any of the criteria.
Any ideas?
I’ve just tried zipping the file, then extracting it once it’s on the server. It uploaded fine as a zip file, but it doesn’t appear when you extract it. So it’s being instantly deleted.
I wouldn’t have a clue what I can trim without risking the integrity of the file…
If a professional coder is modern man, I’m a cave man discovering a makeshift hammer (a rock).
I’ve got a rough idea of the basics (and I use that description lightly).
I’m 99% sure your file is being deleted because of the size. Yes, 955 KB is less than 1 MB, but kB/MB and kiB/MiB (kibibyte and mebibyte - Google it) are finicky. It’s entirely possible the limit is enforce at 1 million Bytes, and that differences in file systems may cause file sizes to be slightly different across systems.
As for reducing the size of the file, the best way is to understand and cleanly separate the code. But that requires good understanding of PHP and the code in question.
But minification tools may be enough in your case.
Yep. Turned out to be a size issue. compressed that file only to discover that a number of the files I need are around the same size. Rather than going through this every time I want to install a new widget, plugin, or theme, I’ve moved over to another hosting service.
Thanks for your help anyway guys.