Support » Plugin: File Away » PHP 7 Support

  • Resolved ClarkC


    My website was auto-updated and set to PHP 7 and I get the following PHP error:

    PHP Fatal error: ‘continue’ not in the ‘loop’ or ‘switch’ context in
    /home4/davischo/public_html/wp-content/plugins/file-away/lib/inc/inc.playback.php on line 78

    When I changed it back to PHP 5.6, everything is fine. I am running the current version of WordPress and File Away(uninstalling and reinstalling File Away has no affect). Are there any plans for File Away to support PHP 7? I have seen this issue on 2 different websites.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author thomstark


    Minor edits to two files to fix the php 7 issue:

    1. open file-away/lib/inc.playback.php
    2. delete the line that says if($skipthis) continue; (line 78)
    3. save the file.
    4. open file-away/lib/cls/class.fileaway.php
    5. go to line 143 and replace this:

    if($playback) include fileaway_dir.'/lib/inc/inc.playback.php';

    with this:

    	include fileaway_dir.'/lib/inc/inc.playback.php'; 
    	if($skipthis) continue;

    6. save the file. done.

    Thanks. Will it be a new version of the plugin ?

    Plugin Author thomstark


    Resolved in latest versions.

    Thanks a lot !

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.