• Resolved ccot

    (@ccot)


    I downloaded fresh copies of both WordPress and xampp today. The installation process fails at step 15 of your instructions contained in your “Test Driving WordPress” at https://codex.www.ads-software.com/Test_Driving_WordPress#Installing_WordPress_on_Your_Windows_Desktop.
    I repeatedly get error “Fatal error: Call to undefined function load_textdomain() in C:\xampp\htdocs\wp-admin\includes\admin.php on line 15”

    Yet, oddly enough, the file in question, “admin.php” does not contain the text “load_textdomain” !!! Weird !!!

    Any ideas ?

    Thanks in advance for any help you may provide.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Matt Knowles

    (@aestheticdesign)

    Line 15 of wp-admin/includes/admin.php should be:

    load_textdomain( ‘default’, WP_LANG_DIR . ‘/admin-‘ . get_locale() . ‘.mo’ );

    Are you sure you’re looking at the right file?

    Thread Starter ccot

    (@ccot)

    No. There are two admin.php files and I was looking at the wrong one. Still, though, this doesn’t explain the error.

    Thanks, however, for your reply.

    I’m going to take a wild guess that the error might actually be somewhere in the wp-config.php file.

    You might try using a fresh copy of wp-config-sample.php and fill in your database info and all of the security keys again. Be sure not to accidentally omit any of the existing single quotes or existing punctuation on any of the lines you edit. Rename the file to wp-config.php and try to run the install routine again, and see if the symptom changes at all.

    Make sure you only use a plain text editor to make your edits.

    If that fails (assuming that you haven’t already tried it) download another copy of 4.2.2 and replace ALL of the files and give it another go.

    Thread Starter ccot

    (@ccot)

    A “wild guess” you say. I merely tried to follow the instructions on the “Test Driving WordPress” page. Let’s take a look at instruction 11:

    11. Unzip your WordPress download into the htdocs directory – c:\xampp\htdocs\<yourwebsite>.

    Which is it? The c:\xampp\htdocs folder or c:\xampp\htdocs\<mywebsite>

    Let’s take a look at instruction 13:

    13. From the <yourwebsite> folder, open wp-config-sample.php in a text editor.
    The connection details you need are as follows:
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘wordpress’); // The name of the database
    define(‘DB_USER’, ‘root’); // Your MySQL username
    define(‘DB_PASSWORD’, ”); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this
    Save as wp-config.php.

    All I did was follow instruction 13 by editing the four defines DB_NAME, DB_USER, DB_PASSWORD and DB_HOST that are in wp-config-sample.php and then saving it as wp-config.php.

    Was something missed here?

    Thanks again for your help!

    Thread Starter ccot

    (@ccot)

    In addition, I notice that there are other defines in wp-config-sample.php, like:

    define(‘AUTH_KEY’, ‘put your unique phrase here’);

    define(‘SECURE_AUTH_KEY’, ‘put your unique phrase here’);

    define(‘LOGGED_IN_KEY’, ‘put your unique phrase here’);

    define(‘NONCE_KEY’, ‘put your unique phrase here’);

    define(‘AUTH_SALT’, ‘put your unique phrase here’);

    define(‘SECURE_AUTH_SALT’, ‘put your unique phrase here’);

    define(‘LOGGED_IN_SALT’, ‘put your unique phrase here’);

    define(‘NONCE_SALT’, ‘put your unique phrase here’);

    As the instructions didn’t say anything about these, I didn’t alter them.

    It seems very likely that the values ‘put your unique phrase here’ need to be changed to some ‘my unique phrase value’ but, again, as the instructions didn’t say anything about these, they remain defined as ‘put your unique phrase here’

    Are the instructions incomplete, or what?
    Thanks for all your help.

    Thread Starter ccot

    (@ccot)

    Ok, I discovered the problem. I was using the user name ‘root’ instead of ‘admin’ (I am a very experienced windows programmer and have years of experience with SQL Server, but am a total novice when it comes to WordPress and MySQL. In the MySQL admin screen, the user is called ‘root’ and not admin, so please forgive my boo-boo.

    But now I am getting this error:
    +++
    Can’t select database

    We were able to connect to the database server (which means your username and password is okay) but not able to select the wordpress database.

    Are you sure it exists?
    Does the user admin have permission to use the wordpress database?
    On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?
    +++

    I have created the wordpress database, and it has no prefix. It is called ‘wordpress’

    Thread Starter ccot

    (@ccot)

    Ok, everything works now … I changed the user back to ‘root’ and now the installation worked. I guess my first attempt at creating the wp-config.php file failed. I was using windows notepad which displays php files as one giant block of text. No fun! Now I am using Visual Studio 2013 to edit the php files and it not only can properly display them but saves them with the correct eol characters.

    Thanks for the help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Unable to Install WordPress’ is closed to new replies.