If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Admin Tools / Big Files support thread

Big Files support thread

Started by swguy on 4 Oct 2018, 4:58 PM · Views: 6,081

Results 1 to 7 of 7
4 Oct 2018, 4:58 PM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Big Files support thread

Big Files finds files by size in your Zen Cart installation. It's a fast way of figuring out what files you might have that are using up a lot of disk space.

It's available here in the plugins area:
https://www.zen-cart.com/downloads.php?do=file&id=2216

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

19 Jul 2020, 9:14 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: Big Files support thread

1.5.7 Apache PHP 7.3.2
Display Logs
News Box Manager
Quick Updates
Clone a Template
Mod List
OPC
Sales Report
MagicThumb

Upon running, I get "PHP Fatal error: Allowed memory size of 33554432 bytes exhausted".....

[17-Jul-2020 15:23:13 UTC] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8192 bytes) in /******/big_files.php on line 14

[17-Jul-2020 15:23:13 UTC] Request URI: /******/index.php?cmd=big_files, IP address: 128.217.186.019
--> PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8192 bytes) in /******/big_files.php on line 14.
[17-Jul-2020 15:23:13 UTC] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8192 bytes) in /includes/classes/db/mysql/query_factory.php on line 510
[17-Jul-2020 15:23:13 UTC] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 65536 bytes) in Unknown on line 0
[17-Jul-2020 15:23:13 UTC] PHP Fatal error: Uncaught RuntimeException: Unknown: Cannot call session save handler in a recursive manner in [no active file]:0
Stack trace:
#0 {main}
thrown in [no active file] on line 0

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 Jul 2020, 11:15 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Big Files support thread

Check the Version link at the top right to see how much memory you have.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

19 Jul 2020, 11:48 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: Big Files support thread

Is this whereof you speak?

[Attachment no longer available]

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

20 Jul 2020, 5:27 AM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Big Files support thread

Yes. 32M is quite low. Try 1024M.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Nov 2021, 1:48 AM
#6
generikz avatar

generikz

New Zenner

Join Date:
Sep 2011
Location:
Tokyo
Posts:
26
Plugin Contributions:
0

Re: Big Files support thread

Hello!

I hit the "PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4304 bytes)" as well, on a 128M max size.

Is there a specific reason a script just browsing a filesystem for filenames/filesizes should use up so much space?
Is RecursiveIteratorIterator actually loading all the files in memory?

There's 1.4GB of images in my /images/ folder.

Julien

9 Nov 2021, 6:06 AM
#7
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Big Files support thread

Again, 128M is too low; increase your memory to 1024M.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.