Title: Plugin on localhost (XAMPP)
Last modified: June 2, 2019

---

# Plugin on localhost (XAMPP)

 *  Resolved [hempion1](https://wordpress.org/support/users/hempion1/)
 * (@hempion1)
 * [7 years ago](https://wordpress.org/support/topic/plugin-on-localhost-xampp/)
 * 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:
    [http://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/memory-issues/](http://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](https://wordpress.org/support/users/kluver/)
 * (@kluver)
 * [7 years ago](https://wordpress.org/support/topic/plugin-on-localhost-xampp/#post-11599056)
 * Hi [@hempion1](https://wordpress.org/support/users/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](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [7 years ago](https://wordpress.org/support/topic/plugin-on-localhost-xampp/#post-11599099)
 * 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](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](https://wordpress.org/support/users/hempion1/)
 * (@hempion1)
 * [7 years ago](https://wordpress.org/support/topic/plugin-on-localhost-xampp/#post-11601555)
 * 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](https://support.apple.com/kb/ph25287?locale=en_US#mchlpd4e1e66)
 * Greetings
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [7 years ago](https://wordpress.org/support/topic/plugin-on-localhost-xampp/#post-11602796)
 * Very glad to hear that! Which folder was it that had needed changed permissions,
   exactly?
 *  Thread Starter [hempion1](https://wordpress.org/support/users/hempion1/)
 * (@hempion1)
 * [7 years ago](https://wordpress.org/support/topic/plugin-on-localhost-xampp/#post-11602874)
 * 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.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [hempion1](https://wordpress.org/support/users/hempion1/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/plugin-on-localhost-xampp/#post-11602874)
 * Status: resolved