Title: syntax error, unexpected &#039;{&#039; in installer.php
Last modified: August 21, 2016

---

# syntax error, unexpected '{' in installer.php

 *  Resolved [Flash Buddy](https://wordpress.org/support/users/flashbuddy/)
 * (@flashbuddy)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/)
 * Duplicator ver. 0.5.4
 * Package created using Desktop Server (local machine)
 * Upload to live server and run installer.php
 * Error: Parse error: syntax error, unexpected ‘{‘ in /home/wpsecur/public_html/
   alamo/installer.php on line 338
 * How is that even possible?
 * [https://wordpress.org/plugins/duplicator/](https://wordpress.org/plugins/duplicator/)

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/page/2/?output_format=md)

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4982944)
 * That is odd, sounds like the installer file didn’t get created correctly. Is 
   this is continually happening after several build attempts?
 *  Thread Starter [Flash Buddy](https://wordpress.org/support/users/flashbuddy/)
 * (@flashbuddy)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983001)
 * I only tried the one, then went back to the old fashioned routine. I’ll have 
   a chance to try again soon when that site goes live.
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983186)
 * Hi [@flashbuddy](https://wordpress.org/support/users/flashbuddy/),
 * Did you get this issue worked out?
 *  Thread Starter [Flash Buddy](https://wordpress.org/support/users/flashbuddy/)
 * (@flashbuddy)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983187)
 * While I have the site built, I have not published it yet. Expect to do that in
   the next few day. I’ll give you a report.
 * This is the second time I’ve run into this issue. I’m curious if the third time
   is the charm 😉
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983189)
 * Sounds good!
 *  Thread Starter [Flash Buddy](https://wordpress.org/support/users/flashbuddy/)
 * (@flashbuddy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983190)
 * Today was the big day. Scan and packaging went without a hitch. Uploaded files
   in binary mode to my server and entered url to installer.php:
 * Parse error: syntax error, unexpected ‘,’ in /home/wpsecur/public_html/pocketpipe/
   installer.php on line 787
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983191)
 * That is quite odd. If you want to submit a support ticket I’ll check it out, 
   it might be related to a timeout issue where the installer file is not being 
   finalized.
 * lifeinthegrid.com/support
 * If you do decide to submit a ticket please reference this thread.
 * Cheers~
 *  Thread Starter [Flash Buddy](https://wordpress.org/support/users/flashbuddy/)
 * (@flashbuddy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983193)
 * Naw, I’m not going to bug you about this stuff. I think it has something to do
   with going from localhost to live server. I seem to be able to go the other way
   around, packaging a live site and installing it on my desktop server.
 * The archive is a mere 30MB, and packed up plenty fast. No large files, all systems
   reported ‘Good’.
 * I tried several more times. Trying to access installer.php via the browser displayed
   a page of hieroglyphics. At least I didn’t get an error 🙂
 * I’m using Chrome Canary. Maybe I should try in FireFox?!
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983197)
 * There is a possibility that the actual download of the file is getting corrupted
   via the browser. If you want to be 100% sure your getting the file correctly 
   you can always FTP to your site and look in the **wp-snapshots directory** for
   the installer file and then pull it down via FTP.
 * If you still get the error above then something is happening during the build
   process that is not allowing you to get a properly built installer file…
 *  Thread Starter [Flash Buddy](https://wordpress.org/support/users/flashbuddy/)
 * (@flashbuddy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983198)
 * OMG – Just looked at one of the xxx_installer.php files in the snapshot directory
   and discovered it is normal code. Who knew. What your are saying is I can re-
   name, move and use the installer file from the snapshot directory?! I’ll test
   it right not and report back.
 * …IT WORKED!!!
 * I am absolutely thrilled about this. Problem solved.
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983199)
 * Excellent! So it looks like when downloading the installer file via the browser
   its getting corrupted somehow…
 *  Thread Starter [Flash Buddy](https://wordpress.org/support/users/flashbuddy/)
 * (@flashbuddy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983201)
 * Here is what is in my corrupted installer.php
    [https://www.dropbox.com/s/sgu4iwyrw13lqyk/installer-screenshot.jpg](https://www.dropbox.com/s/sgu4iwyrw13lqyk/installer-screenshot.jpg)
 * I thought you had some clever encryption or compression going on there. I didn’t
   know I was looking at a corrupt file 🙂
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983202)
 * Ah that looks like a MIME type issue with your web server. I would work with 
   your host to find out why its being converted to a binary format when attempting
   to download.
 *  Thread Starter [Flash Buddy](https://wordpress.org/support/users/flashbuddy/)
 * (@flashbuddy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983203)
 * I’m not downloading, that is from my local install using xamplite via [DesktopServer](http://serverpress.com/products/desktopserver/)
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/#post-4983204)
 * Yeah off the top of my head I’m not sure where to update that on Apache. It is
   either a MIME type issue or possibly a gzip issue.
 * I’ll have to do some digging around to see if there is a solution somewhere…

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/page/2/?output_format=md)

The topic ‘syntax error, unexpected '{' in installer.php’ is closed to new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

## Tags

 * [installer.php](https://wordpress.org/support/topic-tag/installer-php/)

 * 19 replies
 * 3 participants
 * Last reply from: [sandras21](https://wordpress.org/support/users/sandras21/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-installerphp/page/2/#post-4983278)
 * Status: resolved