• Hi there
    I already posted this issue, but I can’t find it anymore. So I am guessing you did not see it…

    Anyway… On my site I have installed your plugin and set up different kinds of tags in GTM.
    I just found the other day, that if I do a search, in my search box, for something that does not exist – then I get a HTTP Error 500 and the “white screen of death”!!

    After contacting my host (Kinsta) they gave me a log showing memory limit was exceeded.

    Do you have any idea why that happens?

    Hopefully you are able to help me.
    Thanks

    Cheers
    Michael

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    I’ve found the original thead:
    https://ww.wp.xz.cn/support/topic/plugin-exhausting-memory-blank-search-gives-a-http-error-500/

    Could you share some more details about this log? Especially which part of the plugin code is causing this issue.

    Also, could you post the currently set memory limits on your hosting?

    Thread Starter michaelgimm

    (@michaelgimm)

    Hi there and thanks for getting back. The original post must have been held back by moderator – sorry for that.

    My memory limit at Kinsta is 256mb.
    As for which part of code is causing this it’s hard for me to see. I have tried with chrome browser Developer mode to see what is happening, but site crashes before any code is present.

    Any ideas? What do you need from me?

    Cheers
    Michael

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Michael,

    Do you have access to any server side logs?
    There might be additional details or you might get some more answers from Kinsta.

    Also you could try disabling some plugin features, like weather tracking or site search tracking and check your site each time you disable a plugin feature. Maybe you can identify which plugin option is causing this issue

    Thread Starter michaelgimm

    (@michaelgimm)

    Hi
    I just talked to Kinsta again and we found other plugin conflicts as well.
    I will get back to you if it is related to your plugin after testing some more.
    Sorry for taking up your time.

    Cheers
    Michael

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Michael, no problem, I would definitely like to help if this is a memory issue with GTM4WP

    I’m having the same problem and it looks like your plugin is causing this, see error log:

    [Wed Nov 13 10:26:12.230881 2019] [fastcgi:error] [pid 10007:tid 140295612053248] [client 62.207.0.61:19298] FastCGI: server "/var/run/php73-cgi/php-cgi" stderr: PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16384 bytes) in /www/wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php on line 737PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 249856 bytes) in /www/wp-includes/functions.php on line 4469PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 253952 bytes) in Unknown on line 0

    Any update on this?

    Already found the problem. When searching for a query with a special character like the memory error is caused. Not sure if Woocommerce, WordPress or something else is not handling this properly though..

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Thanks for the report.
    I test this on my testing site and I haven’t found any issue around this character:
    https://woo.gtm4wp.com/?s=some+%E2%80%93+search&post_type=product

    According to your error message you have set the PHP memory limit to 256M which should be sufficient. Do you see the same message is only your theme and GTM4WP is active, no other plugins?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Memory limit site crash’ is closed to new replies.