• Resolved kjcomparaz

    (@kjcomparaz)


    I have more than 20 sites using this plugin and them all are having the same issue when trying to edit a product.

    White Screen and when I check the error log I get the following:

    PHP Fatal error: Out of memory (allocated 185565184) (tried to allocate 20480 bytes) in /wp-content/plugins/facebook-for-woocommerce/includes/Products/FBCategories.php on line 47

    I have uninstalled it more than once, downloaded separately and it always gives the same error in all wordpress installation.

    My temporary solution was to deactivate it after the synchronization is finished and reactivate it after editing some product.

    ?Does anyone is having the same issue?

    I will be very grateful if you offer me any solution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kjcomparaz

    (@kjcomparaz)

    The Memory is 1024MB

    mother.of.code

    (@imazed)

    The Mother of Code

    Hi there!

    Are all sites hosted on the same server? The error indicates that your site doesn’t have enough allocated memory, and if your sites are sharing the same server, that’s a good possibility of causing trouble.

    One thing you also will want to look for is commonalities between these websites. Do they have similar plugins or themes installed? In that case, you will want to do a conflict test to rule out code issues.
    ?
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    This is best done on a staging site. That’s a copy of your live site, so you can test things out without making changes to your actual site. Some hosting companies offer a staging site service within their hosting plans. If yours does not, there is a great free plugin that will allow you to build a complete staging site with a few button clicks: https://www.ads-software.com/plugins/wp-staging.

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.`

    Plugin Support Cara

    (@dcka)

    Hi, @kjcomparaz!

    I’m sorry you ran into this issue. We are aware of it and have it reported here: https://github.com/facebookincubator/facebook-for-woocommerce/issues/1708

    While we’re waiting on a fix, you might want to try the workarounds suggested in this thread: https://www.ads-software.com/support/topic/memory-limit-reached-after-last-update/

    Specifically, some users have found success with renaming fb_google_category_to_attribute_mapping.json so it is no longer loaded. Another thing you can try is increasing the amount of RAM which would be available for WordPress to use. From the error message you mentioned, it looks like it’s currently set to 185 MB. Can you see if increasing that helps? You can follow the instructions here to do that: https://docs.woocommerce.com/document/increasing-the-wordpress-memory-limit/

    Plugin Support AJ a11n

    (@amandasjackson)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal error – when trying to edit a product’ is closed to new replies.