Could not find or access 'tmp_multisite_constants.php'

Getting an error telling me tmp_multisite_contstants.php cannot be found -

 Could not find or access 'tmp_multisite_constants.php'
Searched in:
        /Users/jasperfrumau/Code/domain/trellis/roles/deploy/files/tmp_multisite_constants.php
        /Users/jasperfrumau/Code/domain/trellis/roles/deploy/tmp_multisite_constants.php
        /Users/jasperfrumau/Code/domain/trellis/roles/deploy/hooks/files/tmp_multisite_constants.php
        /Users/jasperfrumau/Code/domain/trellis/roles/deploy/hooks/tmp_multisite_constants.php
/Users/jasperfrumau/Code/domain/trellis/files/tmp_multisite_constants.php
        /Users/jasperfrumau/Code/domain/trellis/tmp_multisite_constants.php
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: 	/Users/jasperfrumau/Code/domain/trellis/tmp_multisite_constants.php
fatal: [104.131.166.212]: FAILED! => {"changed": false, "failed": true}

Did upgrade Trellis on my other box and have Trellis in my repo and updated it here. Als upgraded ansible here. So why am I getting this error now? Even did a ansible-galaxy install --force -r requirements.yml but that did not help either.

Hmm, somehow roles/deploy/files/tmp_multisite_constants.php with

<?php
error_reporting(E_ALL & ~E_NOTICE);
define('MULTISITE', false);
define('SUBDOMAIN_INSTALL', false);
define('WPMU_PLUGIN_DIR', null);
define('WP_PLUGIN_DIR', null);
define('WP_USE_THEMES', false);

hadn’t been added. I added it manually and ran ./deploy production domain.com again. And that did work though.

1 Like