Title: PHP update
Last modified: March 14, 2018

---

# PHP update

 *  Resolved [ten12design](https://wordpress.org/support/users/ten12design/)
 * (@ten12design)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-update-5/)
 * Seeing I am using this plugin and I am updating my sites to the latest PHP version
   I noticed that when using this plugin it causes an error. I had to go back to
   PHP 5.6 so the errors would go away.
 * Will you be updating this plugin to meet the newest version of PHP?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-update-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-update-5/#post-10075947)
 * Hi! This plugin is tested up to and compatible with PHP 7.1. We are not aware
   of any issues with 7.2, but since we also use some external libraries, 7.1 is
   recommended. Which PHP version did you switch to and what was the error you got?
 * Any information you can provide about your configuration would be more than welcome!
   
   Ewout
 *  Thread Starter [ten12design](https://wordpress.org/support/users/ten12design/)
 * (@ten12design)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-update-5/#post-10077996)
 * So when we have it set to 7.0 and when we go into the orders and click the PDF
   button to view we get this error.
 * This is the error we are getting. Warning: array_merge(): Argument #2 is not 
   an array in /home/mmesrobian/public_html/staging2/wp-includes/load.php on line
   63
 * It goes away when we put it back to PHP 5.6
 * Same for the shipping tickets
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-update-5/#post-10078158)
 * Hi! Thanks for sharing the error!
    Looks like an issue with your server configuration,
   as this a core WP function: [https://github.com/WordPress/WordPress/blob/4.9.4/wp-includes/load.php#L63](https://github.com/WordPress/WordPress/blob/4.9.4/wp-includes/load.php#L63)
 * It is possible that this warning (which in itself doesn’t do much harm) shows
   up with PDF invoices enabled when you have enabled the setting “Debug Output”
   in the **PDF invoice > Status** settings. That option will show **all** PHP errors.
 * You can either disable debug output and/or WP_DEBUG (which will hide but not 
   fix the error), or contact your host and tell them the `$_SERVER` variable needs
   to be setup correctly.
 * Hope that helps!
    Ewout

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

The topic ‘PHP update’ 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/)

## Tags

 * [php 7.1](https://wordpress.org/support/topic-tag/php-7-1/)
 * [PHP 7.2](https://wordpress.org/support/topic-tag/php-7-2/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ewout](https://wordpress.org/support/users/pomegranate/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/php-update-5/#post-10078158)
 * Status: resolved