Come risolvo Parse error: syntax error, unexpected $end

Salve,

una volta effettuato il trasferimento dei file del sito in wordpress da locale a remoto, collegandomi al sito, mi dą questo errore Parse error: syntax error, unexpected $end in /home/spsou294/public_html/wp-includes/rewrite.php on line 2093.

Poichč non conosco minimamente il linguaggio php non ho idea di quale errore di sintassi sia, potreste aiutarmi?

La riga č l'ultima, incollo le ultime del file in questione:

public function flush_rules($hard = true) {
        delete_option('rewrite_rules');
        $this->wp_rewrite_rules();
        /**
         * Filter whether a "hard" rewrite rule flush should be performed when requested.
         *
         * A "hard" flush updates .htaccess (Apache) or web.config (IIS).
         *
         * @since 3.7.0
         *
         * @param bool $hard Whether to flush rewrite rules "hard". Default true.
         */
        if ( ! $hard || ! apply_filters( 'flush_rewrite_rules_hard', true ) ) {
            return;
        }
        if ( function_exists( 'save_mod_rewrite_rules' ) )
            save_mod_rewrite_rules();
        if ( function_exists( 'iis7_save_url_rewrite_rules' ) )
            iis7_save_url_rewrite_rules();
    }

    /**
     * Sets up the object's properties.
     *
     * The 'use_verbose_page_rules' object property will be set to true if the
     * permalink structure begins with one of the following: '%postname%', '%category%',
     * '%tag%', or '%author%'.
     *
     * @since 1.5.0
     * @access public
     */
    public function init() {
        $this->extra_rules = $this->non_wp_rules = $this->endpoints = array();
        $this->permalink_structure = get_option('permalink_structure');
        $this->front = substr($this->permalink_structure, 0, strpos($this->permalink_structure, '%'));
        $this->root = '';
        if ( $this->using_index_permalinks() )
            $this->root = $this->index . '/';
        unset($this->author_structure);
        unset($this->date_structure);
        unset($this->page_structure);
        unset($this->search_structure);
        unset($this->feed_structure);
        unset($this->comment_feed_structure);
        $this->use_trailing_slashes = ( '/' == substr($this->permalink_structure, -1, 1) );

        // Enable generic rules for pages if permalink structure doesn't begin with a wildcard.
        if ( preg_match("/^[^%]*%(?:postname|category|tag|author)%/", $this->permalink_structure) )

inviato un anno fa
Laura81
X 0 X

Ti manca una parentesti graffa alla fine, che chiuda il metodo init()

risposto un anno fa
Massimiliano Arione
X 0 X
Effettua l'accesso o registrati per rispondere a questa domanda