Title: error after
Last modified: August 21, 2016

---

# error after

 *  Resolved [AllEinKlang HHK](https://wordpress.org/support/users/alleinklang-hhk/)
 * (@alleinklang-hhk)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-after/)
 * After creating the two files with duplicator und oading up the installer.php 
   with ftp into the data-base and calling um in the browser with [http://www.testshop.kupfer-anton.de/installer.php](http://www.testshop.kupfer-anton.de/installer.php)–
   I got the following error message in the browser:
 * Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION
   or T_VAR or ‘}’ in /homepages/4/d261470874/htdocs/testshop.Kupfer-Anton.de/installer.
   php on line 203
 * How can I solve this problem? Thanks from germany for a soon anwer
 * HHK
 * [https://wordpress.org/plugins/duplicator/](https://wordpress.org/plugins/duplicator/)

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

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-after/#post-4625055)
 * Hey AllEinKlang ,
 * Checkout this section on the FAQs I believe it may help with this issue:
    -> 
   Browse to: [http://lifeinthegrid.com/duplicator-faq](http://lifeinthegrid.com/duplicator-faq)-
   > Find section: “2. Installer=> Pre-Install”
 * There is a section that deals specifically with that error…
 * Hope that helps!
 *  Thread Starter [AllEinKlang HHK](https://wordpress.org/support/users/alleinklang-hhk/)
 * (@alleinklang-hhk)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-after/#post-4625098)
 * Hi Cory,
    the proglem obove is solved now. The error was: missing htaccess for
   running correktly with php5. Now the duplicator-installler surface appears in
   the browser. Requirements-pass ist green. Host, user, name appear correktlx and
   are checked again – the same the password – but – after clicking the button test
   connection it says twice – by server and database – failed. The installer-log.
   txt on the server is empty.
 * Perhaps you have a suggestion here too. Thanks
 * HHK – germany
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-after/#post-4625157)
 * Hey AllEinKlang ,
 * Checkout this section on the FAQs I believe it may help with this issue:
    -> 
   Browse to: [http://lifeinthegrid.com/duplicator-faq](http://lifeinthegrid.com/duplicator-faq)-
   > Find section: “3. Troubleshoot=> Database Issues”
 * As far a connection help that is the best advice I can give, you will probably
   need to talk with your host or server admin as well..
 * Hope that helps!
 *  Thread Starter [AllEinKlang HHK](https://wordpress.org/support/users/alleinklang-hhk/)
 * (@alleinklang-hhk)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-after/#post-4625181)
 * Hi Cory,
 * I called my provider and he cecked everything. He checked everythin and he forund
   this informationen:
 * This is an English version for the Duplicator’s problem with the Socket connection
   Mysql
 * Problem Description:
 * You created your duplicator copy everything works, once on the new server your
   service provider has provided you with a host like: localhost :/ tmp/mysql5.sock
   
   well you will be going soon realize that duplication will not happen unfortunately.
 * Indeed to connect to the database must
 * Server
    User DB name Socket Port
 * We do not usually see these two parameters simply because they are used generally
   in their default values: socket (/ tmp / mysql.sock) and port (3306).
 * Now if your service provider for security conditions gave a different socket 
   and / or port you will lose any utility of the sublime Duplicator.
 * Solution:
 * SEO Expert thought of you, in fact simply we will modify installer.php file
 * It is easy (relatively)
    So first declare two variables with your information:
 * -I take the example of 1and1 that I used:
 * the host: localhost :/ tmp/mysql5.sock
    So the variable socket will be like this
   $ socket = ‘/ tmp/mysql5.sock; For the port in my case was therefore $ 3316 Port
   = 3316; (put the correct value in this variable)
 * Now that you declare your variables in the installer.php
    You will find all connections
   to the database and add the parameters $Socket $Port
 * Then you replace all the « @mysqli_connect($_POST[‘dbhost’], $_POST[‘dbuser’],
   $_POST[‘dbpass’], $_POST[‘dbname’]);»
    With « @mysqli_connect($_POST[‘dbhost’],
   $_POST[‘dbuser’], $_POST[‘dbpass’], $_POST[‘dbname’], $Port, $Socket ); » And«
   @mysqli_connect($_POST[‘dbhost’], $_POST[‘dbuser’], $_POST[‘dbpass’]); » With«
   @mysqli_connect($_POST[‘dbhost’], $_POST[‘dbuser’], $_POST[‘dbpass’], NULL, $
   Port, $Socket); »
 * You’re almost done, all that remains is to add these values to ​​wordpress wp-
   config.php.
    Always in installer.php we should find the line that replaces the
   values ​​of wp-config.php, normally it’s in line 600
 * « $replace = array(« ‘DB_NAME’, » . ‘\ » . $_POST[‘dbname’] . ‘\ »,
 * « ‘DB_USER’, » . ‘\ » . $_POST[‘dbuser’] . ‘\ »,
 * « ‘DB_PASSWORD’, » . ‘\ » . $_POST[‘dbpass’] . ‘\ »,
 * « ‘DB_HOST’, » . ‘\ » . $_POST[‘dbhost’] . ‘\ »); »
 * We will create variable named $ HostSocket = « localhost :/ tmp/mysql5.sock »
   
   And we will put it in place of the variable $ _POST [‘dbhost’] It will look like
   this
 * «$replace = array(« ‘DB_NAME’, « . ‘\ ».$_POST[‘dbname’].’\ »,
 * « ‘DB_USER’, « . ‘\ ».$_POST[‘dbuser’].’\ »,
 * « ‘DB_PASSWORD’, » . ‘\ ».$_POST[‘dbpass’].’\ »,
 * « ‘DB_HOST’, « . ‘\ ».$HostSocket.’\ »); »
 * You finish
    You just have to follow in the steps proposed by installer.php
 * Please if you have any questions about this or remarks contact us at [info@seo-expert.fr](https://wordpress.org/support/topic/error-after/info@seo-expert.fr?output_format=md)
 * Is this the only way to solve this connektion problem?
 * Thanks for your work and your anser.
 * HHK – germany
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-after/#post-4625184)
 * Hey AllEinKlang,
 * Wow… seems like they have a really complex setup. I have worked with 100’s of
   hosts and never had an issue that complex… Also note that within the host name
   you can pass the port number:
 * > ‘localhost:999’
 * Not sure if that will work, but you could give it a try…
 * Cheers~
 *  Thread Starter [AllEinKlang HHK](https://wordpress.org/support/users/alleinklang-hhk/)
 * (@alleinklang-hhk)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-after/#post-4625231)
 * Thanks Cory for your work,
 * in my cace – lokal host – with an htaccess and an ini the connection and the 
   installation ran now, but with mistakes. On this server with an local host – 
   there is no other offportunity – because there are still existing a few sites
   that were built under php4.
 * Well – ist there an other opportunity to built clone site with a subdomain to
   test new versions and updates for woocommerce shop before activation on the main
   site?
 * Perhaps you have another idea for me. This thread ist solved with this note.
 * Thank you from germany.
 * HHK
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-after/#post-4625232)
 * Hey AllEinKlang,
 * Off the top of my head I don’t know of anything. There are a few other plugins
   that do backup like xcloner or backupbuddy (which is commercial). You might give
   them a try…
 * Cheers~
 *  Thread Starter [AllEinKlang HHK](https://wordpress.org/support/users/alleinklang-hhk/)
 * (@alleinklang-hhk)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-after/#post-4625233)
 * Thanks Cory,
 * and the best for you.
 * HHK
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-after/#post-4625234)
 * No problem! Cheers~

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

The topic ‘error after’ 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/)

 * 9 replies
 * 2 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/error-after/#post-4625234)
 * Status: resolved