Title: Parse error: syntax error, after moving wordpress.
Last modified: September 1, 2016

---

# Parse error: syntax error, after moving wordpress.

 *  [LNN](https://wordpress.org/support/users/ewan-norman/)
 * (@ewan-norman)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-after-moving-wordpress/)
 * Hi everybody, this is my first post in the forum. I hope if somebody can help
   me.
    I moved my site files to a new domain and host. After updating wp-config
   and changing the site urls, i get this error:
 *     ```
       Parse error: syntax error, unexpected 'define' (T_STRING) in /home/livegazw/public_html/bookyourtrip.online/wp-config.php on line 25
       ```
   
 * You can look at: [http://bookyourtrip.online/](http://bookyourtrip.online/)
 * My wp-config :
 *     ```
       <?php/**
       /**
        * The base configuration for WordPress
        *
        * The wp-config.php creation script uses this file during the
        * installation. You don't have to use the web site, you can
        * copy this file to "wp-config.php" and fill in the values.
        *
        * This file contains the following configurations:
        *
        * * MySQL settings
        * * Secret keys
        * * Database table prefix
        * * ABSPATH
        *
        * @link https://codex.wordpress.org/Editing_wp-config.php
        *
        * @package WordPress
        */
   
       // ** MySQL settings - You can get this info from your web host ** //
   
       /** The name of the database for WordPress */
   
       define('DB_NAME', 'MyDBname');
   
       /** MySQL database username */
   
       define('DB_USER', 'MyDBuser');
   
       /** MySQL database password */
   
       define('DB_PASSWORD', 'mypassword');
   
       /** MySQL hostname */
   
       define('DB_HOST', 'localhost');
   
       /** Database Charset to use in creating database tables. */
       define('DB_CHARSET', 'utf8');
   
       /** The Database Collate type. Don't change this if in doubt. */
       define('DB_COLLATE', '');
   
       /**#@+
        * Authentication Unique Keys and Salts.
        *
        * Change these to different unique phrases!
        * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key 
   
       service}
        * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log 
   
       in again.
        *
        * @since 2.6.0
        */
       define('AUTH_KEY',         'xxx');
       define('SECURE_AUTH_KEY',  'xxx');
       define('LOGGED_IN_KEY',    'xxx');
       define('NONCE_KEY',        'xxx');
       define('AUTH_SALT',        'xxx');
       define('SECURE_AUTH_SALT', 'xxx');
       define('LOGGED_IN_SALT',   'xxx');
       define('NONCE_SALT',       'xxx');
   
       /**#@-*/
   
       /**
        * WordPress Database Table prefix.
        *
        * You can have multiple installations in one database if you give each
        * a unique prefix. Only numbers, letters, and underscores please!
        */
       $table_prefix  = 'wp_';
   
       /**
        * For developers: WordPress debugging mode.
        *
        * Change this to true to enable the display of notices during development.
        * It is strongly recommended that plugin and theme developers use WP_DEBUG
        * in their development environments.
        *
        * For information on other constants that can be used for debugging,
        * visit the Codex.
        *
        * @link https://codex.wordpress.org/Debugging_in_WordPress
        */
       define('WP_DEBUG', false);
   
       /* That's all, stop editing! Happy blogging. */
   
       /** Absolute path to the WordPress directory. */
       if ( !defined('ABSPATH') )
       	define('ABSPATH', dirname(__FILE__) . '/');
   
       /** Sets up WordPress vars and included files. */
       require_once(ABSPATH . 'wp-settings.php');
       ```
   
 * Line 25 is the: define(‘DB_NAME’, ‘myDBname’); But it looks fine!
    Thank you 
   so much for your help.

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

 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-after-moving-wordpress/#post-7603334)
 * Please remove this from the WordPress forum ASAP — you just announced your password
   to everyone.
    _ [moderator note: passwords removed]
 * You should change your password regardless, now that it’s out in the open.
 * To solve your issue, try changing the first line from this:
 *     ```
       <?php/**
       ```
   
 * to this:
 *     ```
       <?php
       ```
   
 *  [oMega_2093](https://wordpress.org/support/users/omega_2093/)
 * (@omega_2093)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-after-moving-wordpress/#post-7603335)
 * Hi there,
 * Take a look at your 1st line:
 * `<?php/**`
 * Would you remove that `/**` and check again? I suspect it might be causing trouble.
 *  [Cisco115](https://wordpress.org/support/users/cisco115/)
 * (@cisco115)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-after-moving-wordpress/#post-7603371)
 * I’m having a similar problem can you help me out with my code something is causing
   the white screen of death, but i’m not proficient in php to figure it out.
    thanks
 *     ```
       <p class="w400 text-center mdem12 smem11 xsem10 margin_top6 lh120"><?php echo $CTAcontactnotxt ?></p>
       						</div>
       					</div>
       				<?php }
       			}
       			//Get Values of social links
       			//echo "</div>";
       		}
   
       	}
       	//Add function
       	function gcta_load_widget() {
       		register_widget( 'gcta_widget' );
       	}
       	add_action( 'widgets_init', 'gcta_load_widget' );
       }
       #-------------------------------------------------
       #				CTA Widgets END
       #------------------------------------------------- 	
   
       add_action( 'admin_footer', function () {
       	?>
       	<script>
       		$(document).ready(function() {
       			function runSelect() {
       				$("#widgets-right #CTAContactId").click(function(){
       					$("#widgets-right #DivButton").hide();
       					$("#widgets-right #DivContactNo").show();
       					$("#widgets-right #DivImage").hide();
       				});
       				$("#widgets-right #CTAButtonId").click(function(){
       					$("#widgets-right #DivButton").show();
       					$("#widgets-right #DivContactNo").hide();
       					$("#widgets-right #DivImage").hide();
       				});
       				$("#widgets-right #CTAImageId").click(function(){
       					$("#widgets-right #DivImage").show();
       					$("#widgets-right #DivButton").hide();
       					$("#widgets-right #DivContactNo").hide();
   
       				});
       			}
       			window.counter = 1;
       			runSelect();
       			$( document ).ajaxStop( function() {
       				runSelect();
       			} );
               });
       	</script>
       <?php
       });
   
       /*------------------------
        * Proper way to enqueue s
       ```
   
 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-after-moving-wordpress/#post-7603396)
 * [@ewan-norman](https://wordpress.org/support/users/ewan-norman/) It’s too late
   now to edit/delete your original post, so please make sure you change your database
   password. I’ll tag a moderator so they can remove the contents (including your
   password) from here.
 * [@cisco115](https://wordpress.org/support/users/cisco115/) This is a different
   problem altogether. Please create a new thread for your issue.
 *  Thread Starter [LNN](https://wordpress.org/support/users/ewan-norman/)
 * (@ewan-norman)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-after-moving-wordpress/#post-7603404)
 * [@jose](https://wordpress.org/support/users/jose/) J. Fernández [@mark](https://wordpress.org/support/users/mark/)
   Senff :
 * > Hi there,
   > Take a look at your 1st line:
   > <?php/**
   > Would you remove that /** and check again? I suspect it might be causing trouble.
 * Thank you so much guys, this worked fine ;). I didn’t check the first line. I
   thought it’s only in the line 25.
    Thank you for removing the passwords. Anyway
   the passwords were wrong :). I modified them. Thank you everyone.

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

The topic ‘Parse error: syntax error, after moving wordpress.’ is closed to new 
replies.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 4 participants
 * Last reply from: [LNN](https://wordpress.org/support/users/ewan-norman/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-after-moving-wordpress/#post-7603404)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
