can you tell me what you have set your php “max_input_vars” to. With 1500 files you may be running into variable issues.
PHP Memory Limit: 1 GB
PHP Time Limit: 300
PHP Max Input Vars: 4000
try increasing time limit for testing to 3000 see what happens.
I increase to 3000 and still not works
okay put that back to 300, check you apache errors logs for details on the error.
This is the error related to the page that have the shortcode
Line 1551: [Tue Sep 04 10:54:29.671310 2018] [php7:error] [pid 19230] [client 10.61.xx.xx:xxxxx] PHP Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 12450136 bytes) in /var/www/html/wp-includes/wp-db.php on line 1889, referer: http://www.intranet2.dp.xxxxxxxxxxx.sp.gov.br/teste/
Line 1431: [Tue Sep 04 08:08:25.697907 2018] [php7:error] [pid 55260] [client 10.61.xx.xx:xxxxx] PHP Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 12450136 bytes) in /var/www/html/wp-includes/wp-db.php on line 1889, referer: http://www.intranet2.dp.xxxxxxxxxx.sp.gov.br/teste/?mdocs-cat=mdocs-cat-1&mdocs-att=null
you are running out of memory
PHP Memory Limit: 1 GB
Allowed memory size of 104857600 bytes exhausted (tried to allocate 12450136 bytes)
Yes, you’re right.
I allocate 3 GB of memory but not work, sometimes it loads the content, sometimes not.
There is a solution?
-
This reply was modified 6 years, 4 months ago by erihenrique.
I would suggest breaking the files up into different folders. 1500 files in one directory maybe asking to much of the server.
They are in different folders.
I exclude some files that I really don’t need and now I have 1093 files in 13 different folders
Boletim (root folder)
– Bol G 2018 (sub folder)
– Bol G 2017 (sub folder)
…
– Bol G 2006 (sub folder)
only the subfolders with files
all files:
File Status: Private
Post Status: Published
every single file has 1 – 4 different Contributor defined to control the access
-
This reply was modified 6 years, 4 months ago by erihenrique.
hmm.. can you try to disable all other plugins and change to a default WordPress theme.
See if it works.
Your database is causing the memory issues, not sure what is causing the memory spike but it could be the amount of files in mDocs, I know of many people that have more the 1500 files that have no issues.
I’ll try to do this, as soon as possible.
I have many accesses and services on the site and I can’t stop it now.
Thanks
Hi @bhaldie!
Following your orientation I disabled all plugins and found the problem. It was an incompatibility with another plugin that provides a timeline.
As your plugin is more important and useful for the site, I removed the timeline.
Thank you very much for your support and I will make a donation.
Glad you got it figured out, and thank you for the donation π