Title: Possible integer overflow in memory allocation
Last modified: May 19, 2023

---

# Possible integer overflow in memory allocation

 *  Resolved [vitsupport](https://wordpress.org/support/users/vitsupport/)
 * (@vitsupport)
 * [3 years ago](https://wordpress.org/support/topic/possible-integer-overflow-in-memory-allocation/)
 * 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:
 *     ```wp-block-code
       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)

 *  [Igor H](https://wordpress.org/support/users/ihereira/)
 * (@ihereira)
 * [3 years ago](https://wordpress.org/support/topic/possible-integer-overflow-in-memory-allocation/#post-16751547)
 * Hello,
 * As a first step, please check the memory limit on your site: [https://woocommerce.com/document/increasing-the-wordpress-memory-limit/](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](https://wordpress.org/support/users/vitsupport/)
 * (@vitsupport)
 * [3 years ago](https://wordpress.org/support/topic/possible-integer-overflow-in-memory-allocation/#post-16751640)
 * Hi, Igor.
 * Thanks for your prompt reply. The memory limit is allready at 256MB.
 * Here is the System Status Report: [https://justpaste.it/9xxy1](https://justpaste.it/9xxy1)
 *  [Saif](https://wordpress.org/support/users/babylon1999/)
 * (@babylon1999)
 * [3 years ago](https://wordpress.org/support/topic/possible-integer-overflow-in-memory-allocation/#post-16752042)
 * Hello [@vitsupport](https://wordpress.org/support/users/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:
 *     ```wp-block-code
       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](https://woocommerce.com/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](https://wordpress.org/support/users/vitsupport/)
 * (@vitsupport)
 * [3 years ago](https://wordpress.org/support/topic/possible-integer-overflow-in-memory-allocation/#post-16756452)
 * 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 3 years ago by [vitsupport](https://wordpress.org/support/users/vitsupport/).
 *  [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * (@xue28)
 * [3 years ago](https://wordpress.org/support/topic/possible-integer-overflow-in-memory-allocation/#post-16757536)
 * Hi [@vitsupport](https://wordpress.org/support/users/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/](https://gist.github.com/)
   and send the link here.
 * Thanks!
 *  Thread Starter [vitsupport](https://wordpress.org/support/users/vitsupport/)
 * (@vitsupport)
 * [3 years ago](https://wordpress.org/support/topic/possible-integer-overflow-in-memory-allocation/#post-16757966)
 * Hi [@xue28](https://wordpress.org/support/users/xue28/)
 * The only error there is as I wrote in mye 1. post:
 *     ```wp-block-code
       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](https://wordpress.org/support/users/babylon1999/)
 * (@babylon1999)
 * [3 years ago](https://wordpress.org/support/topic/possible-integer-overflow-in-memory-allocation/#post-16758419)
 * Hello [@vitsupport](https://wordpress.org/support/users/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.](https://github.com/woocommerce/facebook-for-woocommerce/blob/2711806c7719d34e0b65c868ac979d2ff9a86213/facebook-commerce-events-tracker.php#L130)
 * 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](https://woocommerce.com/my-account/create-a-ticket/)
   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.

 * ![](https://ps.w.org/facebook-for-woocommerce/assets/icon.svg?rev=3469606)
 * [Meta for WooCommerce](https://wordpress.org/plugins/facebook-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-for-woocommerce/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [Saif](https://wordpress.org/support/users/babylon1999/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/possible-integer-overflow-in-memory-allocation/#post-16758419)
 * Status: resolved