Title: syntax error line 1
Last modified: August 21, 2016

---

# syntax error line 1

 *  [houseofstrauss](https://wordpress.org/support/users/houseofstrauss/)
 * (@houseofstrauss)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-line-1/)
 * 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
 * [http://wordpress.org/plugins/wp-clone-by-wp-academy/](http://wordpress.org/plugins/wp-clone-by-wp-academy/)

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

 *  [wpacademy](https://wordpress.org/support/users/wpacademy/)
 * (@wpacademy)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-line-1/#post-4099066)
 * 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?
 *  Thread Starter [houseofstrauss](https://wordpress.org/support/users/houseofstrauss/)
 * (@houseofstrauss)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-line-1/#post-4099069)
 * 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.
 *  Thread Starter [houseofstrauss](https://wordpress.org/support/users/houseofstrauss/)
 * (@houseofstrauss)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-line-1/#post-4099070)
 * 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…
 * Thanks.

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

The topic ‘syntax error line 1’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [houseofstrauss](https://wordpress.org/support/users/houseofstrauss/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-line-1/#post-4099070)
 * Status: not resolved