• Resolved catwingz

    (@catwingz)


    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 to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Thank you for reporting this. I have submitted a message to the developers to investigate your findings further.

    Kind regards.

    Thread Starter catwingz

    (@catwingz)

    @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

    (@mra13)

    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

    (@catwingz)

    @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

    (@mra13)

    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

    (@catwingz)

    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.