Title: Invalid Argument acf-functions.php
Last modified: February 6, 2017

---

# Invalid Argument acf-functions.php

 *  Resolved [Adicto](https://wordpress.org/support/users/adicto/)
 * (@adicto)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-acf-functions-php/)
 * Hi, just added your Plugin to a new Multisite. When I try to duplicate a page(
   or post), I always get this error message:
 * Warning: Invalid argument supplied for foreach() in /nhldata/749/156749/data/
   web/web01/htdocs/wp-content/plugins/multisite-post-duplicator/inc/acf-functions.
   php on line 80
 * Warning: Invalid argument supplied for foreach() in /nhldata/749/156749/data/
   web/web01/htdocs/wp-content/plugins/multisite-post-duplicator/inc/acf-functions.
   php on line 179
 * Warning: Invalid argument supplied for foreach() in /nhldata/749/156749/data/
   web/web01/htdocs/wp-content/plugins/multisite-post-duplicator/inc/acf-functions.
   php on line 80
 * Warning: Invalid argument supplied for foreach() in /nhldata/749/156749/data/
   web/web01/htdocs/wp-content/plugins/multisite-post-duplicator/inc/acf-functions.
   php on line 179
 * Warning: Cannot modify header information – headers already sent by (output started
   at /nhldata/749/156749/data/web/web01/htdocs/wp-content/plugins/multisite-post-
   duplicator/inc/acf-functions.php:80) in /nhldata/749/156749/data/web/web01/htdocs/
   wp-admin/post.php on line 197
 * Warning: Cannot modify header information – headers already sent by (output started
   at /nhldata/749/156749/data/web/web01/htdocs/wp-content/plugins/multisite-post-
   duplicator/inc/acf-functions.php:80) in /nhldata/749/156749/data/web/web01/htdocs/
   wp-includes/pluggable.php on line 1179
 * The posts/pages will be duplicated and the linking seems to work too. But on 
   every change (edit/delete) I always get this error. As long it’s working it wouldn’t
   be such a big problem for me, but our customer wanted it to be fixed. Do you 
   have an idea what it could be, or how to resolve it?
 * We are using ACF Pro Fields for all Posts/Pages on the site…
 * Thank you in advance, Christian.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [MagicStick](https://wordpress.org/support/users/magicstick/)
 * (@magicstick)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-acf-functions-php/#post-8742808)
 * Hi Adicto. I’ll get a fix out for this tonight. Sorry about that.
 *  Thread Starter [Adicto](https://wordpress.org/support/users/adicto/)
 * (@adicto)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-acf-functions-php/#post-8742869)
 * Hey MagicStick – you are a machine! Thank you very much!!
 *  Plugin Author [MagicStick](https://wordpress.org/support/users/magicstick/)
 * (@magicstick)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-acf-functions-php/#post-8745506)
 * Just committed v1.5.3 Adicto. Should be fixed now. Please report back if not!
 *  Thread Starter [Adicto](https://wordpress.org/support/users/adicto/)
 * (@adicto)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-acf-functions-php/#post-8745579)
 * Hi MagicStick, thank you very, very much! Just made the update an the error-message…
   changed. It’s not yet gone, this time it’s another line that causes the error.
   I’m so sorry.
 * Warning: Invalid argument supplied for foreach() in /nhldata/749/156749/data/
   web/web01/htdocs/wp-content/plugins/multisite-post-duplicator/inc/acf-functions.
   php on line 191
 * Warning: Invalid argument supplied for foreach() in /nhldata/749/156749/data/
   web/web01/htdocs/wp-content/plugins/multisite-post-duplicator/inc/acf-functions.
   php on line 191
 * Warning: Invalid argument supplied for foreach() in /nhldata/749/156749/data/
   web/web01/htdocs/wp-content/plugins/multisite-post-duplicator/inc/acf-functions.
   php on line 191
 * Warning: Invalid argument supplied for foreach() in /nhldata/749/156749/data/
   web/web01/htdocs/wp-content/plugins/multisite-post-duplicator/inc/acf-functions.
   php on line 191
 * Warning: Cannot modify header information – headers already sent by (output started
   at /nhldata/749/156749/data/web/web01/htdocs/wp-content/plugins/multisite-post-
   duplicator/inc/acf-functions.php:191) in /nhldata/749/156749/data/web/web01/htdocs/
   wp-admin/post.php on line 197
 * Warning: Cannot modify header information – headers already sent by (output started
   at /nhldata/749/156749/data/web/web01/htdocs/wp-content/plugins/multisite-post-
   duplicator/inc/acf-functions.php:191) in /nhldata/749/156749/data/web/web01/htdocs/
   wp-includes/pluggable.php on line 1179
 * Hopefully it’s not a tricky thing to fix!
    Thank you in advance, Christian.
 *  Plugin Author [MagicStick](https://wordpress.org/support/users/magicstick/)
 * (@magicstick)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-acf-functions-php/#post-8755684)
 * And another commit tonight Adicto! Should be fixed now!
 *  Thread Starter [Adicto](https://wordpress.org/support/users/adicto/)
 * (@adicto)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-acf-functions-php/#post-8758194)
 * Hey MagicStick – you did it! No more errors, works like a charm!
    Thank you very
   much + all the best, Christian

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Invalid Argument acf-functions.php’ is closed to new replies.

 * ![](https://ps.w.org/multisite-post-duplicator/assets/icon-128x128.png?rev=1562920)
 * [Multisite Post Duplicator](https://wordpress.org/plugins/multisite-post-duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multisite-post-duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multisite-post-duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/multisite-post-duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multisite-post-duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multisite-post-duplicator/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Adicto](https://wordpress.org/support/users/adicto/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-acf-functions-php/#post-8758194)
 * Status: resolved