• Resolved hempion1

    (@hempion1)


    Hello,

    I’d like to install your plugin on my localhost wordpress installation, but every time I try to activate the plugin, the following error occurs:

    Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 438308864 bytes) in /Applications/XAMPP/xamppfiles/htdocs/thehempions/wp-includes/functions.php on line 4339

    I already tried to apply the points on the following page, but it didn’t help so far:
    https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/memory-issues/

    every time I raise the memory limit, the number in “(tried to allocate ######## bytes)” of the error message is increasing as well (recently I tried it with 2048M).

    What could be the problem here?
    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor kluver

    (@kluver)

    Hi @hempion1,

    What PHP version are you running on your local installation? Try setting it to PHP 7.X to see if that would fix the issue.

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! Which version of WooCommerce PDF Invoices & Packing Slips is this? There was an issue with version 2.2.11 and older that would cause the plugin to be caught in an infinite loop if it didn’t have write permissions in the temporary folder. This was fixed in 2.2.12 (today we released 2.2.14).

    If you are at the latest version, which PHP version do you have locally (and which WP version?) I checked line 4339 in the file from your error (WP5.2.1):
    https://github.com/WordPress/WordPress/blob/5.2.1/wp-includes/functions.php#L4339

    But that function supposedly only applies to PHP5.2.

    If you could provide us with a bit more information we can hopefully find the root cause of this issue!

    Thread Starter hempion1

    (@hempion1)

    Hi Ewout!

    Thank you very much for your quick reply.
    The php and WordPress version are both fine.
    Your hint with the writing permissions helped me find the issue. I had to apply the right permissions to all the subfolders as well (running localhost on a Mac).
    This article helped me:
    https://support.apple.com/kb/ph25287?locale=en_US#mchlpd4e1e66

    Greetings

    Plugin Contributor Ewout

    (@pomegranate)

    Very glad to hear that! Which folder was it that had needed changed permissions, exactly?

    Thread Starter hempion1

    (@hempion1)

    I made the change for the root folder of the wordpress installation (Get Info –> everyone: read & write + “Apply to enclosed items”).
    Maybe it’s enough to do the same just for the plugins folder.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin on localhost (XAMPP)’ is closed to new replies.