Title: php 7 error?
Last modified: November 22, 2016

---

# php 7 error?

 *  [trucho](https://wordpress.org/support/users/trucho/)
 * (@trucho)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php-7-error-6/)
 * 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)

 *  [jj](https://wordpress.org/support/users/jjjoel/)
 * (@jjjoel)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-7-error-6/#post-9023539)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-product-slider_f7f7f8.
   svg)
 * [WooCommerce Product Slider](https://wordpress.org/plugins/woocommerce-product-slider/)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-product-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-product-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-product-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-product-slider/reviews/)

## Tags

 * [php-7](https://wordpress.org/support/topic-tag/php-7/)

 * 1 reply
 * 2 participants
 * Last reply from: [jj](https://wordpress.org/support/users/jjjoel/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/php-7-error-6/#post-9023539)
 * Status: not resolved