• Resolved giushite

    (@giushite)


    Hi,
    when I’m try to active the plugin, I recive “Fatal error: Allowed memory size… in wp-includes/functions.php on line 333”

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @giushite,

    You will need to change your PHP ini file’s memory_limit option. It is probably at 32M or so but you can bump that up to 64M or 128M.

    Kind Regards,
    Clayton

    Thread Starter giushite

    (@giushite)

    Thanks for reply,
    but I have 256M in my PHP ini and 512 in wp_config.

    I’m not sure, but problably it’s a query on users (70k record in my case).
    There’s some query like these during the init of the plugin?

    Thread Starter giushite

    (@giushite)

    Looking for solution, I’ve been discovered that the problem is in Braintree_Install::update(). More precisely on include once of all value of Braintree_Install::getUpdates().
    We have about 170k orders and 70k users. And a query with -1 parameter on these entities cause the bug.

    Plugin Author Clayton R

    (@mrclayton)

    @giushite Thank you for the reply. We will be adding a better solution for that update method in our next release so many records are not called at once. This update is not needed for new installs anyway but rather for merchants that were converting over from an old version of the plugin.

    Thanks,
    Clayton

    Plugin Author Clayton R

    (@mrclayton)

    Update; a patch has been added to the current version (2.5.2) so that new installs do not call the updates which are needed for sites using previous versions.

    Thread Starter giushite

    (@giushite)

    Great! Thank you very much 🙂
    Which files are changed?

    P.S. (OT) I’ve implemented a feature to store user with payment method in the Vault, and then proceed with the “::sale()” with the user’s vault id.
    If you want I can open another topic for this feature (or by email).

    Thanks again

    Plugin Author Clayton R

    (@mrclayton)

    Hi @giushite,

    class Braintree_Install was changed.

    Our plugin already stores the vaulted customerId against the usermeta table and uses it for transactions.

    Kind Regards,

    Thread Starter giushite

    (@giushite)

    @mr.clayton I forgot to specify that we store data in vault even if in Woocommerce is enabled anonimous checkout.
    When someone proceed to checkout without login, we create a Vault entries (only with payment method) and store there info in an order meta.
    When and if the user log in, we update the Vault entry, and add a meta to user with is Vault id.

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

The topic ‘Fatal Error: Allowed memory size on activation’ is closed to new replies.