I am duplicating an existing website done in SilverStripe to be used on another domain (edited content as required).
When uploading the files which currently work on one domain, I get this error:
Fatal error: 'continue' operator with non-constant operand is no longer supported in /var/www/vhosts/getfit.school.nz/httpdocs/home/sapphire/core/ManifestBuilder.php on line 201
I found one forum that said to split the code across two lines to look like this
// locate and include the exclude files
$topLevel = scandir($baseDir);
foreach($topLevel as $file) {
- if($file[0] == '.') continue
+ if($file[0] == '.') {
+ continue;
+ }
$fullPath = '';
$fullPath = $baseDir . '/' . $file;
However that did not work...... any solutions?