Support » Plugin: WooCommerce Product Slider » php 7 error?

  • Hi, I’m getting this message on error.log We’re using Php 7:

    Got error ‘PHP message: PHP Fatal error: Redefinition of parameter $direction_nav in wp-content/plugins/woocommerce-product-slider/class-zdev-wcps-shortcodes.php on line 303

    Is this plugin Php7 compatible? Can it be fixed?

    Thanks so much

Viewing 1 replies (of 1 total)
  • There is an error in the code as functions can’t have multiple parameters with the same name now in PHP 7.0.

    If you’re able to edit the plugin files yourself, open class-zdev-wcps-shortcodes.php, and find the line beginning with static function flexslider_scripts

    Delete the second instance of $direction_nav. If you have pause/play display disabled you might also need to set the pausePlay to false in the jQuery below to hide those.

Viewing 1 replies (of 1 total)
  • The topic ‘php 7 error?’ is closed to new replies.