File disappears

Username (e.g. epiz_XXX) or Website URL

epiz_27153392
http://southaussiehomeloans.epizy.com/

Error Message

I don’t get an error message

Other Information

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?

The InfinityFree web servers have size limits for all files. If the file size exceeds the limit, the file is automatically deleted.

The size limits are:

  • HTML and PHP files are limited 1 MB.
  • .htaccess files are limited to 10 kB.
  • All other files are limited to 10 MB.

Your 955KB PHP could have ‘triggered’ the limit…

2 Likes

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’d thought about that, but dismissed the idea because computers think in binary (either the file is >1024kb or it isn’t)…
Could be wrong though.

Well you can wait for Admin’s reply.
In the meantime, you can try to trim the file size…

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).

You should minimize your php file this tool can help you (Take a backup of that file first):

7 Likes

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.

5 Likes

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.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.