Title: incompatible with php v 8.0?
Last modified: April 11, 2022

---

# incompatible with php v 8.0?

 *  Resolved [catwingz](https://wordpress.org/support/users/catwingz/)
 * (@catwingz)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/incompatible-with-php-v-8-0/)
 * Hi,
    Your cart is installed on the site and hosted by Dreamhost. They are currently
   trying to upgrade all WordPress sites to php v 8.0. When they tried on this site
   the following errors occurred:
 * > `/usr/bin/wp: line 23: cd: /root: Permission denied PHP Warning: Undefined
   > 
   > array key “SERVER_NAME” in /home/bejoy/be-joy.com/wp-content/plugins/wordpress-
   > simple-paypal-shopping-cart/wp_shopping_cart.php on line 696 Warning: Undefined
   > array key “SERVER_NAME” in /home/bejoy/be-joy.com/wp-content/plugins/wordpress-
   > simple-paypal-shopping-cart/wp_shopping_cart.php`
 * What can be done to remedy this?
    Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fincompatible-with-php-v-8-0%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/incompatible-with-php-v-8-0/#post-15549270)
 * Thank you for reporting this. I have submitted a message to the developers to
   investigate your findings further.
 * Kind regards.
 *  Thread Starter [catwingz](https://wordpress.org/support/users/catwingz/)
 * (@catwingz)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/incompatible-with-php-v-8-0/#post-15549294)
 * [@mbrsolution](https://wordpress.org/support/users/mbrsolution/) Thank you.
    
   It has been suggested that the other error messages may be plugin related so 
   I’m including them here just in case…
 * > `on line 696 PHP Fatal error: Uncaught ArgumentCountError: Too few
   >  arguments
   > to function WP_Widget::__construct(), 0 passed in /home/bejoy/be-joy.com/wp-
   > includes/class-wp-widget-factory.php on line 61 and at least 2 expected in /
   > home/bejoy/be-joy.com/wp-includes/class-wp-widget.php:162 Stack trace: #0 /
   > home/bejoy/be-joy.com/wp-includes/class-wp-widget-factory.php(61): WP_Widget-
   > >__construct() #1 /home/bejoy/be-joy.com/wp-includes/widg`
 *  Plugin Author [mra13 / Team Tips and Tricks HQ](https://wordpress.org/support/users/mra13/)
 * (@mra13)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/incompatible-with-php-v-8-0/#post-15549787)
 * Hi, This Looks to be a server setup related issue. Please ask your hosting provider
   why the following variable is not set in this server’s configuration:
 *     ```
       $_SERVER[ "SERVER_NAME" ]
       ```
   
 * That variable should be available in PHP8. Once that is taken care of, you won’t
   see that warning.
 *  Thread Starter [catwingz](https://wordpress.org/support/users/catwingz/)
 * (@catwingz)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/incompatible-with-php-v-8-0/#post-15549910)
 * [@mra13](https://wordpress.org/support/users/mra13/), will this clear all of 
   these, or just the plugin specific ones? I wasn’t sure if the widget factory 
   ones should be included or not. When I talk with the host it would be good to
   know. Thank you
 *  Plugin Author [mra13 / Team Tips and Tricks HQ](https://wordpress.org/support/users/mra13/)
 * (@mra13)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/incompatible-with-php-v-8-0/#post-15551206)
 * The plugin specific one is what I can say for sure. I have tested this plugin
   with a PHP 8.1 system so I know that our plugin should work fine with PHP 8 system.
   I am not sure about any other things that might be impacting this particular 
   server/site.
 * For the widget, you can try removing all the widgets then add the widgets one
   by one to see which one causes an issue. For this plugin, you can simply add 
   a standard “Text” widget or block and use the following shortcode in there:
 *     ```
       [show_wp_shopping_cart]
       ```
   
 *  Thread Starter [catwingz](https://wordpress.org/support/users/catwingz/)
 * (@catwingz)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/incompatible-with-php-v-8-0/#post-15605972)
 * We’ve tracked down the problem and identified another plugin as the culprit.
   
   Thank you

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

The topic ‘incompatible with php v 8.0?’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-simple-paypal-shopping-cart/assets/icon-128x128.
   png?rev=2722490)
 * [Simple Shopping Cart](https://wordpress.org/plugins/wordpress-simple-paypal-shopping-cart/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-simple-paypal-shopping-cart/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-simple-paypal-shopping-cart/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-simple-paypal-shopping-cart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-simple-paypal-shopping-cart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-simple-paypal-shopping-cart/reviews/)

## Tags

 * [WP Simple Paypal Shopping cart](https://wordpress.org/support/topic-tag/wp-simple-paypal-shopping-cart/)

 * 6 replies
 * 3 participants
 * Last reply from: [catwingz](https://wordpress.org/support/users/catwingz/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/incompatible-with-php-v-8-0/#post-15605972)
 * Status: resolved