• Resolved gld

    (@gld)


    Whenever I use the shortcode [stc-subscribe] or use the STC Subscribe widget, I get a memory error:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 264257536 bytes) in /<path name removed>/app/public/wp-includes/functions.php on line 4755

    Any idea why this would be happening? Thanks. Greg

    • This topic was modified 3 years, 9 months ago by gld.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author vandestouwe

    (@vandestouwe)

    This is very strange what version of WordPress and what Version of PHP are you using?

    Thread Starter gld

    (@gld)

    Wordpress 5.6.2
    PHP 7.4

    Deactivating all the other plugins doesn’t fix it however switching to the Twenty Twenty One theme did fix it so the issue is somewhere related to my child theme. Any ideas where I should look?

    Plugin Author vandestouwe

    (@vandestouwe)

    What theme are you using?

    Thread Starter gld

    (@gld)

    We have written it ourselves. The issue I’ve now discovered relates to registering a taxonomy at the init point. Seems there is some kind of incompatibility with your plugin. We’ll re-code that to deconflict.

    Plugin Author vandestouwe

    (@vandestouwe)

    Please let me know what exactly the conflict is. It could be STC is doing something not according to standards and than I should fix it on my side.

    Thread Starter gld

    (@gld)

    Here’s the code that had to be disabled:

    add_action( ‘init’, ‘reg_categories’ );
    function reg_categories() {
    register_taxonomy( ‘category’, array() );
    }

    Plugin Author vandestouwe

    (@vandestouwe)

    register_taxonomy for ‘category’ is not needed. Because you register it, it means that you register it again and loose all the category settings that where all ready set. I understand the reason for STC having a problem because STC is working with category and custom defined taxonomy which are treated internally exactly the same as the already available category

    • This reply was modified 3 years, 9 months ago by vandestouwe.
    • This reply was modified 3 years, 9 months ago by vandestouwe.
    Thread Starter gld

    (@gld)

    Thanks @vandestouwe. That makes sense. Frankly I’m not even sure why we have that code in functions.php

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal error: Allowed memory size’ is closed to new replies.