• Hey All-

    Just recently my girlfriend broke free of her hosting and got into her own package instead of someone else running her back end (hold the jokes). For a year or more I noticed this guy NEVER updated the WordPress. So when we took control I tried to update, but the updater WOULD NOT RUN! SO I tried to do it manually on Filezilla and the files dropped cleanly; I didn’t see any error…until I refreshed her webpage.

    Parse error: syntax error, unexpected end of file in /home/betsyv/public_html/wp-includes/wp-db.php on line 3062

    So I went through the php, but I’m stumped… Anyone have any advice? Below I’ve attached the content per line. ANy/all assistance will be greatly appreciated!

    3047>> /**
    3048>> * Whether MySQL database is at least the required minimum version.
    3049>> *
    3050>> * @since 2.5.0
    3051>> * @uses $wp_version
    3052>> * @uses $required_mysql_version
    3053>> *
    3054>> * @return WP_Error
    3055>> */
    3056>> public function check_database_version() {
    3057>> global $wp_version, $required_mysql_version;
    3058>> // Make sure the server has the required MySQL version
    3059>> if ( version_compare($this->db_version(), $required_mysql_version, ‘<‘) )
    3060>> return new WP_Error(‘database_version’, sprintf( __( ‘ERROR: WordPress
    3061>> %1$s requires MySQL %2$s or higher’ ), $wp_version, $required_mysql_version ));
    3062>> }
    3063>>
    3064>> /**
    3065>> * Whether the database supports collation.
    3066>> *
    3067>> * Called when WordPress is generating the table scheme.
    3068>> *
    3069> * @since 2.5.0
    3070>> * @deprecated 3.5.0
    3071>> * @deprecated Use wpdb::has_cap( ‘collation’ )
    3072>> *
    3073>> * @return bool True if collation is supported, false if version does not
    3074>> */
    3075>> public function supports_collation() {
    3076>> _deprecated_function( __FUNCTION__, ‘3.5’, ‘wpdb::has_cap( \’collation\’ )’ );
    3077>> return $this->has_cap( ‘collation’ );
    3078>> }
    3079>>
    3080>> /**

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    wp-admin/includes/upgrade.php: wp_check_mysql_version() could not find the minimum required MySQL version to upgrade the current WordPress version to 4.2.2.

    Please make sure that you are fulfilling the following minimum requirements for the latest version of WordPress.

    https://wordpress.org/about/requirements/

    To run WordPress your host just needs a couple of things:
    PHP version 5.2.4 or greater (recommended: PHP 5.4 or greater)
    MySQL version 5.0 or greater (recommended: MySQL 5.5 or greater)

    Hope that helps.
    Thanks,

    Thread Starter bobbyblackk

    (@bobbyblackk)

    I hate to sound amateur…but I am fully capable of digesting everything, so bare with me.

    How can I be sure I have that?

    Hi,

    If your website is live you can add phpinfo file.

    In a text editor, copy and paste the following command:

    <?php phpinfo(); ?>

    Make sure there are no spaces before or after the command, just the command, and save the file as something obscure like sffdsajk234.php. It’s important to make the file difficult for hackers to file, because it will contain information that could help them compromise your server.

    Upload the file to the root directory of your site. Then type in the address to the file in your browser:

    http://example.com/sffdsajk234.php

    You can check the version of PHP, MYSQL and Apache and lots of other information. Make sure you remember to delete the file once you’re done with it, because leaving it there could help hackers compromise your server.

    As an alternative, you can also ask your Web Hosting provider for the MySQL server version.

    Thanks,

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

The topic ‘I BROKE IT!! Maybe…?’ is closed to new replies.