Title: Invalid argument error in functions.php
Last modified: August 21, 2016

---

# Invalid argument error in functions.php

 *  [19ninety](https://wordpress.org/support/users/19ninety/)
 * (@19ninety)
 * [13 years ago](https://wordpress.org/support/topic/invalid-argument-error-in-functionsphp/)
 * I’ve used WP Clone to back up a couple of sites, however, today I tried to backup
   one and I keep getting the error below. I’ve tried uninstalling the plugin, checked
   the install directory was empty and reinstalled … however, the error still persists.
   
   Any ideas how to rectify it?
 * > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: Invalid argument supplied for foreach() in /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.
   > php on line 437
   > Warning: filesize() [function.filesize]: stat failed for /var/sites/a/activetouch-
   > massage.co.uk/public_html/wp-content/uploads/wp-clone/wpclone_backup_27th_May_2013_01-
   > 59PM_Act_TGCxi6mDdr.zip in /var/sites/a/activetouch-massage.co.uk/public_html/
   > wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 171
   >  Backup
   > Successful!
   > Here is your backup file :
   >  http/activetouch-massage.co.uk/wp-content/uploads/
   > wp-clone/wpclone_backup_27th_May_2013_01-59PM_Act_TGCxi6mDdr.zip ( B ) | Copy
   > URL
   > (Copy that link and paste it into the “Restore URL” of your new WordPress installation
   > to clone this site)
 * [http://wordpress.org/extend/plugins/wp-clone-by-wp-academy/](http://wordpress.org/extend/plugins/wp-clone-by-wp-academy/)

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

 *  [wpacademy](https://wordpress.org/support/users/wpacademy/)
 * (@wpacademy)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/invalid-argument-error-in-functionsphp/#post-3789556)
 * that’s weird,could you mail me your php error log?
 *  [Lucheto](https://wordpress.org/support/users/lucheto/)
 * (@lucheto)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/invalid-argument-error-in-functionsphp/#post-3789581)
 * I am getting the same error. Did you find a solution?
 *     ```
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/hacerenc/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
       Backup Successful!
   
       Here is your backup file :
       ```
   
 *  [wpacademy](https://wordpress.org/support/users/wpacademy/)
 * (@wpacademy)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/invalid-argument-error-in-functionsphp/#post-3789582)
 * which version were you running when you got this error?
 *  [webdevelopment](https://wordpress.org/support/users/webdevelopment/)
 * (@webdevelopment)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/invalid-argument-error-in-functionsphp/#post-3789597)
 * I get the same error. I host at [http://hostbandit.com](http://hostbandit.com).
 * I have my account set to SAFE MODE OFF. Do I also need to have open base dir 
   restriction off as well?
 * I installed WordPress using Installatron. I have many WordPress installs but 
   your plugin isn’t working for me.
 * When I click on the link it says file not found. I think that this is due to 
   a permissions/ownership issue such as your plugin’s upload directory being created
   by PHP/Apache and owned by Apache instead of by the Unix username.
 * Any instructions on how to fix this?
 * ####
 *     ```
       Warning: Invalid argument supplied for foreach() in /usr/home/username/domains/domainname.com/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 436
   
       Warning: Invalid argument supplied for foreach() in /usr/home/username/domains/domainname.com/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 436
       Backup Successful!
   
       Here is your backup file :
       /home/username/domains/domainname.com/public_html/wp-content/uploads/wp-clone/wpclone_backup_27th_Aug_2013_07-12PM_Web_bIcpSiMgjP.zip ( 36.61 MB )   |   Copy URL
       ```
   
 * _
    [Excessive code removed – use a pastebin to post that much code]
 *  [ron88](https://wordpress.org/support/users/ron88/)
 * (@ron88)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-error-in-functionsphp/#post-3789616)
 * Hello dear plugin author,
 * I get the same error after backing up:
 *     ```
       Warning: Invalid argument supplied for foreach() in /home/pprt177100/domains/ov-chipkaart-kopen.nl/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/pprt177100/domains/ov-chipkaart-kopen.nl/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
   
       Warning: Invalid argument supplied for foreach() in /home/pprt177100/domains/ov-chipkaart-kopen.nl/public_html/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 447
       ```
   
 * Backup Successful!
 * However it seems the backup is made sucessfully. The zip file is present in the
   Uploads folder. My question: will the restore function work even though I got
   these errors?
 * Best regards,
 * Ron
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-error-in-functionsphp/#post-3789617)
 * **[@ron88](https://wordpress.org/support/users/ron88/)**: If you require assistance
   then, as per the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post),
   please post your own topic.
 *  [ron88](https://wordpress.org/support/users/ron88/)
 * (@ron88)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-error-in-functionsphp/#post-3789618)
 * [@esmi](https://wordpress.org/support/users/esmi/): Thanks for your reply. My
   question concerns this topic, which still hasn’t got a solution. That’s why I
   ask it here.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-error-in-functionsphp/#post-3789619)
 * Please post your own topic.
 *  [ron88](https://wordpress.org/support/users/ron88/)
 * (@ron88)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-error-in-functionsphp/#post-3789620)
 * Done: [Link](http://wordpress.org/support/topic/wp-clone-by-wp-academy-invalid-argument-error-in-functionsphp-on-line-447)
 *  [bravo-bravo](https://wordpress.org/support/users/bravo-bravo/)
 * (@bravo-bravo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-error-in-functionsphp/#post-3789621)
 * I was getting a similar error but with 446 instead of 447 as the line number.
   The fix for me was to change my server php version from 5.2 to 5.4. Works fine
   now both in terms of creating a backup and restoring from one.

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

The topic ‘Invalid argument error in functions.php’ is closed to new replies.

 * ![](https://ps.w.org/wp-clone-by-wp-academy/assets/icon-128x128.png?rev=2181280)
 * [Clone](https://wordpress.org/plugins/wp-clone-by-wp-academy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-clone-by-wp-academy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-clone-by-wp-academy/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-clone-by-wp-academy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-clone-by-wp-academy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-clone-by-wp-academy/reviews/)

 * 10 replies
 * 7 participants
 * Last reply from: [bravo-bravo](https://wordpress.org/support/users/bravo-bravo/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-error-in-functionsphp/#post-3789621)
 * Status: not resolved