• Resolved vitsupport

    (@vitsupport)


    Hi.

    On one of our customers page, the Facebook-plugin is causing a fatal error on the WooCommerce Thank you-page. Have tried deactivating everything but WooCommerce and the payment gateway-plugin. When the FB-plugin is activated, the fatal error message is displayed in the wp-content area, under “Order received”. The PHP error log then show:

    PHP Fatal error:  Possible integer overflow in memory allocation (2 * 5332 + 32) in C:\inetpub\websitehere.no\wp-includes\shortcodes.php on line 227

    As far as I know, this has happened after a plugin update.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    As a first step, please check the memory limit on your site: https://woocommerce.com/document/increasing-the-wordpress-memory-limit/

    If that does not help, please share a copy of your System Status Report, found under WooCommerce > Status, on your site, that way we can get a better idea about the error and the site configuration.

    Cheers.

    Thread Starter vitsupport

    (@vitsupport)

    Hi, Igor.

    Thanks for your prompt reply. The memory limit is allready at 256MB.

    Here is the System Status Report: https://justpaste.it/9xxy1

    Saif

    (@babylon1999)

    Hello @vitsupport,

    I noticed you have two Facebook integration plugins, please note we only support the first one so please try disabling the one from SkyVerge to confirm it’s not causing the issue:

    Facebook for WooCommerce: av Facebook – 3.0.23
    Facebook for WooCommerce - settings tools: av SkyVerge – 1.0.0

    The minimum required memory for WooCommerce is 256MB, which in theory should be sufficient for most cases. However, your theme and plugins play a significant role in determining the amount of memory your site needs. Therefore, I suggest increasing it as much as your hosting provider allows.

    If both suggestions didn’t help, then please try disabling all plugins except WooCommerce and the Facebook integration while activating the default Storefront theme.

    If the problem is not present after doing so, then you know there was a plugin conflict. You can enable plugins one by one again to find the culprit.


    Let us know how it goes!

    Thread Starter vitsupport

    (@vitsupport)

    Hi, Saif.

    Thanks for your reply. The second FB plugin was just a (deactivated) settings tool. However, I have now deleted it, installed Storefront and increased memory limit to 1GB. No change though.

    I just can’t see why deactivating your plugin helps for an issue on the Order thanks-page.

    • This reply was modified 11 months, 1 week ago by vitsupport.

    Hi @vitsupport

    Thanks for providing further information here.

    If you could also provide the fatal error logs (if any) under WooCommerce > Status > Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Thanks!

    Thread Starter vitsupport

    (@vitsupport)

    Hi @xue28

    The only error there is as I wrote in mye 1. post:

    2023-05-22T07:15:38+00:00 CRITICAL Possible integer overflow in memory allocation (2 * 3091 + 32) i C:\inetpub\websitehere.no\wp-includes\shortcodes.php på linje 227
    Saif

    (@babylon1999)

    Hello @vitsupport,

    Thank you for trying our suggestions so far.

    The Facebook integration doesn’t do much on the order-receive page, other than injecting some JavaScript for tracking pixel events.

    You can find the code implemented here.

    The only thing I can think of at this point is if you have a plugin or custom code that might be conflicting with the woocommerce_thankyou hook or if another tracking plugin like GTM4WP is causing a conflict.

    I understand you already mentioned you’ve disabled all plugins, but could you try doing it again this time make sure you don’t have any custom snippets active in Code Snippets plugin or in your theme’s functions.php file?

    If that didn’t help, please open a ticket from WooCommerce.com > MY profile > Support so we can investigate further.

    Make sure to include a link to this thread so we know what has been done already.

    Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Possible integer overflow in memory allocation’ is closed to new replies.