WP Clone by WP Academy
syntax error line 1 (4 posts)

  1. houseofstrauss
    Posted 1 year ago #

    Parse error: syntax error, unexpected T_STRING in /home/***/public_html/***/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 1

    Odd? it's the opening php tag? Had initial problem with database going away, tried the timeout mods and this error occurred. Deactivated/ deleted/ reinstalled. then the syntax error. Tried manual upload of plugin, same syntax error


  2. WP Academy
    Plugin Author

    Posted 1 year ago #

    sounds like the end of line conversions (line ends are different between windows and *nix systems) has gone wrong during the upload,did you FTP the plugin files?

  3. houseofstrauss
    Posted 1 year ago #

    Tried both WP auto install method and SFTP to server. Please note; I've used this plugin without error on a few sites up to now. localhost to production and back again. no problems. Usually always with small sites that have just been setup and theme designed.

    The error I had this time was with a larger website, although with a small 3mb db. I'm checking the options tables today to see if any settings were left behind.

    Just to recap: after the first attempt to import from localhost, I had a memory error. Checked and found the fix on the forum here. Applied the fix, tried again, no change to error.

    Deactivated, deleted plugin, reinstalled via SFTP. That's the point I had the parse error.

  4. houseofstrauss
    Posted 1 year ago #

    Ok, tried a complete new install. Everything on wp3.6

    1- Created a backup on 'site a' (49.73mb total)
    2- created new WP install 'site b'
    3- Installed wp clone
    4- tested by creating backup and restore... ALL OK!
    5- inputted 'site a' backup URL

    6- The following errors were reported

    Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/***/public_html/***/wp-content/plugins/wp-clone-by-wp-academy/lib/functions.php on line 245
    The plugin encountered an error while cloning the database,the following error message was returned:
    Error Message : MySQL server has gone away

    My guess is this plugin, as it stands is only suitable for small sites with a small archive payload. The one click simplicity of not having to section the site into various backup options (db/uploads/files/etc)is also the drawback when the site becomes larger for memory limits to handle.

    For a new site this is all sweet and lovely, but a maybe a problem waiting to happen as the site grows in size.

    Not a criticism, but your comments as to how to avoid that problem are appreciated ...


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.