• Resolved erihenrique

    (@erihenrique)


    Hi!

    When using any shortcode [mdocs] in a page, it doesn’t load the content of the page.
    When I start to upload the files, it shows the content, but now that I upload about 1500 pdf files, the page doesn’t load the content anymore.
    I use Apache/2.4.6 (CentOS) PHP/7.2.8, MySQL 5.5.31, Theme Avada 5.6.2.

    thanks

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author bhaldie

    (@bhaldie)

    can you tell me what you have set your php “max_input_vars” to. With 1500 files you may be running into variable issues.

    Thread Starter erihenrique

    (@erihenrique)

    PHP Memory Limit: 1 GB
    PHP Time Limit: 300
    PHP Max Input Vars: 4000

    Plugin Author bhaldie

    (@bhaldie)

    try increasing time limit for testing to 3000 see what happens.

    Thread Starter erihenrique

    (@erihenrique)

    I increase to 3000 and still not works

    Plugin Author bhaldie

    (@bhaldie)

    okay put that back to 300, check you apache errors logs for details on the error.

    Thread Starter erihenrique

    (@erihenrique)

    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

    Plugin Author bhaldie

    (@bhaldie)

    you are running out of memory

    PHP Memory Limit: 1 GB

    Allowed memory size of 104857600 bytes exhausted (tried to allocate 12450136 bytes)

    Thread Starter erihenrique

    (@erihenrique)

    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.
    Plugin Author bhaldie

    (@bhaldie)

    I would suggest breaking the files up into different folders. 1500 files in one directory maybe asking to much of the server.

    Thread Starter erihenrique

    (@erihenrique)

    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.
    Plugin Author bhaldie

    (@bhaldie)

    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.

    Thread Starter erihenrique

    (@erihenrique)

    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

    Thread Starter erihenrique

    (@erihenrique)

    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.

    Plugin Author bhaldie

    (@bhaldie)

    Glad you got it figured out, and thank you for the donation πŸ™‚

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Page don’t load after insert shortcode’ is closed to new replies.