WordPress.org

Support

Support » Plugins and Hacks » WP Clone by WP Academy » Invalid argument error in functions.php

Invalid argument error in functions.php

  • 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/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author WP Academy

    @wpacademy

    that’s weird,could you mail me your php error log?

    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 :
    Plugin Author WP Academy

    @wpacademy

    which version were you running when you got this error?

    I get the same error. I host at 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]

    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

    @esmi

    Forum Moderator

    @ron88: If you require assistance then, as per the Forum Welcome, please post your own topic.

    @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

    @esmi

    Forum Moderator

    Please post your own topic.

    Done: Link

    bravo-bravo

    @bravo-bravo

    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.
Skip to toolbar