• Resolved michaldybczak

    (@michaldybczak)


    When I moved php from 5.6 to 7, I got total blank page (empty, white page, no content).

    I run PHP Compatibility Checker and detected for this plugin:

    FILE: /home/xxxxx/www/wp-content/plugins/woocommerce-product-slider/class-zdev-wcps-shortcodes.php
    -----------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------
     222 | ERROR | Functions can not have multiple parameters with the same name since PHP 7.0
    -----------------------------------------------------------------------------------------------------

    Disabling this pligin restores site’s visibility.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I just figured it out… You need to delete the repeated parameter in class-zdev-wcps-shortcodes.php.

    Find the line beginning with static function flexslider_scripts

    Delete the second instance of $direction_nav

    Note: If you have pause/play display disabled you might also need to set the pausePlay to false in the jQuery below to hide those.

    Thread Starter michaldybczak

    (@michaldybczak)

    Too late. Got rid of the plugin. The easiest fix. No new updates since 4 months, no replays, bugs… looks like a low quality plugin.

    Besides, I don’t like messing with php, because I don’t know it’s “grammar” so it’s easy to mess it up, so the solution is too complicated and too risky for me.

    Plugin Author subhansanjaya

    (@subhansanjaya)

    @michaldybczak There is no such file in our plugin call class-zdev-wcps-shortcodes.php. Issue may caused by other plugin.

    Thread Starter michaldybczak

    (@michaldybczak)

    The file was in your plugin folder and disabling your plugin was the solution to this PHP error. Seems like I am not the only one to had this issue as pointed in response above. I can’t imagine situation where a plugin puts a file into another plugin’s folder, aside malicious activities. Maybe that was the reason then? Nevermind, I deleted the plugin and have no more php issues.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Doesn’t support php 7 and causes site to be blank’ is closed to new replies.