hex-digital / acf-migrations

An easy way to migrate local fields and field groups using readable object oriented syntax (without the need for huge arrays)
MIT License
3 stars 1 forks source link

Executable returns error when migrations class is empty #2

Open olivertappin opened 8 years ago

olivertappin commented 8 years ago

When you have a blank migrations file, with just:

<?php
$migrations = new Migrations;

and run the executable, the script returns a PHP error:

PHP Warning:  Invalid argument supplied for foreach() in phar:///Users/oliver/Sites/test/acf-migrations.phar/generate.php on line 484

Warning: Invalid argument supplied for foreach() in phar:///Users/oliver/Sites/test/acf-migrations.phar/generate.php on line 484
--> Successfully generated migrations export file
Jamiewarb commented 7 years ago

+1 encountered this error on deployment. Simply results in 'Segmentation Fault' followed by 'Pre-launch commands failed', when on Deploybot.

For reference, an autopsy has been posted to the Wiki to describe the problem for future encounters (this will later be moved to Portal under Tasktracker Autopsies)

http://wiki.hexdigital.com/devops/autopsies