首页 > 解决方案 > 我找不到错误:“解析错误:语法错误,意外”'DB_HOST'(T_STRING),期待')'

问题描述

解析错误:语法错误,意外的 'DB_HOST' (T_STRING),在第 36 行的 /wp-config.php 中期待 ')'

我看不到错误在哪里。这很奇怪,因为错误突然出现了。

可能是因为我安装了盗版插件(Elementor Pro)。但即使停用了插头,错误仍然存​​在。我能做什么?我在这里有很多工作:'(

<?php
    
    define('FS_METHOD', 'direct');
    define('FORCE_SSL_ADMIN', true);
    
    /**
     * 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', 'dbsXXXX' );
    
    /** MySQL database username */
    define( 'DB_USER', 'dbuXXXX' );
    
    /** MySQL database password */
    define( 'DB_PASSWORD', 'XXXXXX' );
    
    /** MySQL hostname */
    define( 'DB_HOST', 'XXXXXX.hosting-data.io' );
    
    /** 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',          '~7U0@}*GtT39ZeMFm VwPgZN557vqs->n:v@Oyr?u+sjQ+o.XyHxn:+Vt:2qol[b' );
    define( 'SECURE_AUTH_KEY',   'Ay$a8h);01ii-f<# ,jKPXG!&]/qZHs~W*vP1^P8va~sp=KK:ZAytV7C/WLd$z/w' );
    define( 'LOGGED_IN_KEY',     'S{G6o;uV{U?5#9Y}dJr&CVt?-=,ms2$KhwaS3m$e+[O#$<n6?Pr5KB4#+zWS|-z+' );
    define( 'NONCE_KEY',         'B@br,{c%y=xw:]mAg&R4|iu|Emlyvd/3/Q7fOa,W7})XEUw5af!>/G$#Q0>gryn.' );
    define( 'AUTH_SALT',         'HQJf:BB~UHT/1POtCQDW=-B+8_wJZvc6+V:Z+@e>Xvzy9[!<w>Put)+k+PybI(=b' );
    define( 'SECURE_AUTH_SALT',  'i@DsAQsNYSObfSW&.PxZY!Gce<UhTIP>R<OK~hUuKVwRdiv%_`R>,L/K#~pdgc[4' );
    define( 'LOGGED_IN_SALT',    ',!XBen(}_bAXie{$[Co&vjXS-_{=V_Q>x<!5t_,UDi_BC9^od#C*%m/Pnr,c-LIM' );
    define( 'NONCE_SALT',        'j.}1,l`>U1*jJ6ItT5)@H~Ob?9kRS}{0P)n&G-/j@t]^fZ7oW@GUSfM<APzw2x5t' );
    define( 'WP_CACHE_KEY_SALT', 'X3_t;iJ0((vXiae<9iR+;$Vbtee:hx4Gzc~>EGE-WNV~Q~(5o<t)d?M~qI~Rf0zj' );
    
    /**
     * 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 = 'UTpqxFch';
    
    
    
    
    /* That's all, stop editing! Happy publishing. */
    
    /** 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';

标签: phpwordpresssyntax

解决方案


推荐阅读