Support » Installing WordPress » Installing WordPress on XAMPP

  • bkelsall


    Hi all,

    First of all, hope you all have a good New year!

    Right, attempting to install WP on localhost using XAMPP and having the following issue:

    Getting to the database connection part of the istallation, after putting in DB name, user, password, etc getting the following message:

    “There has been a critical error on this website.”

    In summary, what I’ve tried so far:

    – Checked that I can access a test php page on localhost
    – Checed the database credentials and premissions are set to all
    – Tried creating a new user with password
    – Changed UAC settings in windows
    – Banged head against desk
    – reinstalled XAMPP
    – Redownloaded WP
    – Swore a little

    Any other suggestions? Am I missing something obvious?

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter bkelsall


    In addition, this may help:

    Fatal error: Uncaught mysqli_sql_exception: Table 'benk.wp_options' doesn't exist in C:\xampp\htdocs\wptest\wp-includes\wp-db.php:2056 Stack trace: #0 C:\xampp\htdocs\wptest\wp-includes\wp-db.php(2056): mysqli_query(Object(mysqli), 'SELECT option_n...') #1 C:\xampp\htdocs\wptest\wp-includes\wp-db.php(1945): wpdb->_do_query('SELECT option_n...') #2 C:\xampp\htdocs\wptest\wp-includes\wp-db.php(2695): wpdb->query('SELECT option_n...') #3 C:\xampp\htdocs\wptest\wp-includes\option.php(284): wpdb->get_results('SELECT option_n...') #4 C:\xampp\htdocs\wptest\wp-includes\functions.php(1730): wp_load_alloptions() #5 C:\xampp\htdocs\wptest\wp-includes\load.php(752): is_blog_installed() #6 C:\xampp\htdocs\wptest\wp-settings.php(159): wp_not_installed() #7 C:\xampp\htdocs\wptest\wp-config.php(96): require_once('C:\\xampp\\htdocs...') #8 C:\xampp\htdocs\wptest\wp-load.php(50): require_once('C:\\xampp\\htdocs...') #9 C:\xampp\htdocs\wptest\wp-blog-header.php(13): require_once('C:\\xampp\\htdocs...') #10 C:\xampp\htdocs\wptest\index.php(17): require('C:\\xampp\\htdocs...') #11 {main} thrown in C:\xampp\htdocs\wptest\wp-includes\wp-db.php on line 2056



    The current 5.8 release of WordPress is not compatible with PHP 8.1. Make sure to use a version of XAMPP that bundles the PHP 7.4 or 8.0 branch instead. For many reasons I would suggest using a version of XAMPP that bundles PHP 7.4.

    Thread Starter bkelsall


    You star!

    Thank you very much.

    Have a good new year!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Installing WordPress on XAMPP’ is closed to new replies.