Home Forums WoodMart support forum PHP Fatal error: Allowed memory size / PHP Function “file_get_content”

PHP Fatal error: Allowed memory size / PHP Function “file_get_content”

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #611059

    av_admin_1984
    Participant

    Hello
    I got this error:

    [09-Nov-2024 05:31:50 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 36864 bytes) in /home/main/public_html/wp-content/themes/woodmart/inc/admin/modules/options/class-options.php on line 160

    Also should I enable PHP Function "file_get_content":?

    Please see attachment

    Attachments:
    You must be logged in to view attached files.
    #611186

    Luke Nielsen
    Keymaster

    Hello,

    Instead of -1 set the 256MB memory limit, additionally, you can enable the file get content. Then clear the server/site cache and recheck the issue.

    Kind Regards

    #617822

    av_admin_1984
    Participant

    Hi

    I did but still got error:
    [27-Nov-2024 05:31:23 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 10485760 bytes) in /home/mainproject/public_html/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/AdditionalPayments.php on line 134

    Check the image please

    Attachments:
    You must be logged in to view attached files.
    #618022

    av_admin_1984
    Participant

    Today error

    [30-Nov-2024 05:31:21 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/mainproject/public_html/wp-content/themes/woodmart/inc/admin/modules/options/controls/typography/google-fonts.php on line 8
    [30-Nov-2024 05:31:21 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/mainproject/public_html/wp-includes/class-wp-fatal-error-handler.php on line 76
    [30-Nov-2024 05:31:28 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 10485760 bytes) in /home/mainproject/public_html/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/ReviewShippingOptions.php on line 17

    Is it related to php 7.4 we are using?

    #618025

    av_admin_1984
    Participant

    [30-Nov-2024 14:52:06 UTC] PHP Fatal error: require_once(): Failed opening required '/home/mainproject/public_html/wp-content/themes/woodmart/inc/theme-setup.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/mainproject/public_html/wp-content/themes/woodmart/inc/classes/class-theme.php on line 188

    #618358

    Luke Nielsen
    Keymaster

    Hi,

    Could you please check this issue with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?

    Kind Regards

    #618672

    av_admin_1984
    Participant

    Hi

    I’m afraid, not. It is live site and I just only chance to change php version and need time to do that
    I will be InTouch with you over email

    Thanks

    #618866

    Luke Nielsen
    Keymaster

    Hello,

    I will wait for your response.

    Thank you for your time and have a good day!

    Kind Regards

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