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 25You can look at: 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.ww.wp.xz.cn/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.ww.wp.xz.cn/secret-key/1.1/salt/ ww.wp.xz.cn 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.ww.wp.xz.cn/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)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Parse error: syntax error, after moving wordpress.’ is closed to new replies.