Problem:
Host '127.0.0.1' is not allowedHost '::1' is not allowedCan't assign requested address
Solution: Use Unix socket by editing
wp-config.phpand loading the correct PHP binary in TweakPHP.
| <?php | |
| $field_groups = acf_get_field_groups(); | |
| // Apply our callback to all field groups | |
| array_map( function ( $field_group ) { | |
| // Load up the fields on the field group. | |
| $field_group['fields'] = acf_get_fields( $field_group ); | |
| // Write the local JSON file for the field group. | |
| acf_write_json_field_group( $field_group ); | |
| }, $field_groups ); |