• After a manual install of wordpress (I was receiving a error on the one click update)

    My website started showing this error:

    Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE in /home/mariette/public_html/wp-includes/wp-db.php on line 3306

    Can someone help me?

    WEBSITE LINK: https://tearts.com.br/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The update didn’t go so well.

    I recommend trying again.

    Have a look in the file: /home/mariette/public_html/wp-includes/wp-db.php on line 3306 – What is there?

    My guess is that the file is incomplete

    Thread Starter Tuliocpa

    (@tuliocpa)

    The file ends in line 3306:

    /**
    * Retrieve the name of the function that called wpdb.
    *
    * Searches up the list of functions until it reaches
    * the one that would most logically had called this method.
    *
    * @since 2.5.0
    *
    * @return string|array The name of the calling function
    */
    public fu

    Thread Starter Tuliocpa

    (@tuliocpa)

    Restored the file, this is the line 3306, the error persists:

    public function get_caller() {
    return wp_debug_backtrace_summary( __CLASS__ );
    }

    Looks like a different error now.

    It looks like the manual upgrade wasn’t completed properly. Files were only partially uploaded and cut off.

    Try uploading the full zip archive into CPanel and then using the CPanel to unzip and then copy the files over the top – looks like your upload was corrupted

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HELP: unexpected T_STRING, expecting T_VARIABLE’ is closed to new replies.