• Resolved BillSmart

    (@billsmart)


    On initial install when trying to open w-install.php in my browser I get the following errors:

    Browser Error: HTTP 500

    Server Error: PHP Fatal error: Call to undefined function is_wp_error() in /wordpress/wp-settings.php on line 289

    The function referenced (I think) in wp-settings.php is:

    $prefix = $wpdb->set_prefix($table_prefix);
    if ( is_wp_error($prefix) )
    wp_die(/*WP_I18N_BAD_PREFIX*/’ERROR: $table_prefix in wp-config.php can only contain numbers, letters, and underscores.’/*/WP_I18N_BAD_PREFIX*/);

    The pertinent parts of my wp-config.php file are as follows:

    <?php
    define(‘DB_NAME’, ‘billsmart_com’);
    define(‘DB_USER’, ‘***my db username is here***‘);
    define(‘DB_PASSWORD’, ‘***my password is here***‘);
    define(‘DB_HOST’, ‘www.billsmart.com:3306’);
    (I recently added the port on, but that did not help. I can sign in to this database using MySQL Workbench and these settings)

    define(‘DB_CHARSET’, ‘utf8’);

    define(‘DB_COLLATE’, ”);

    define(‘AUTH_KEY’, ‘ThDA$(RTlUlG6dqD+m)sQC O.$:o<vE1Yc91lxY*Leg]7+_QV0R=}_wX. wnobFo’);
    define(‘SECURE_AUTH_KEY’, ‘xq?Pf?Tko7zKp7*zwV_`j2TF-;t+/IHd5VR}IdmgrFBV5@}VPb}*=pb-hxqXUL8Q’);
    define(‘LOGGED_IN_KEY’, ‘ggfIIgH#Dsr^i+*f3a6?W31m1qCuqgztx.A=qX7ZQXY8lu<ehU_-WCy(_,CQ}Z-G’);
    define(‘NONCE_KEY’, ‘f[+L,3L@O;ap^<-N{-7(}*kT2B.|6 uJdzRmIX|X0=nd}S<%*%_Wbf?t1,21]AA~’);
    define(‘AUTH_SALT’, ‘(8BoM>7M.B<Q{a]$uK/c:~O)5jzKQI@U,PbP5Rr+p@hotzoOP*P(wu:gUPx2qJIe’);
    define(‘SECURE_AUTH_SALT’, ‘0h(_mjz#|VQ5XEgr.lXL&FBkKfvL|n=])$dKa.;U(E45S/`|bCclpuA!zS+SyX74’);
    define(‘LOGGED_IN_SALT’, ‘W?S-3DlSnp<Z-,Ju5.[Bz8~Z#gp830XnAJ`&>+)W]6E?@,Q=MX[=f@|nR+DmGg:=’);
    define(‘NONCE_SALT’, ‘t,HOiCbH+Y2-ChP!{K(qMtPv#fmO2o/U!Yk( MJh F0$Lqaa?}Mr4T0dKNPjs4|-‘);
    (I got the keys and salts from the wp random generator)

    $table_prefix = ‘wp1_’;
    (I added a ‘1’ to this prefix because I’ll eventually want to have another instance of wp, but I’ve tried it with just ‘wp_’ with the same error)

    define (‘WPLANG’, ”);

    define(‘WP_DEBUG’, false);

    /* That’s all, stop editing! Happy blogging. */

    /** Absolute path to the WordPress directory. */
    if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . ‘wp-settings.php’);

    Any help, suggestions or questions would be greatly appreciated.

    Thanks…Bill Smart

Viewing 7 replies - 1 through 7 (of 7 total)
  • define(‘DB_HOST’, ‘www.billsmart.com:3306’);

    that is definitely wrong
    most hosts use localhost but even ones who don’t do not use a url
    look in the database docs or log in to host’s phpmyadmin for correct value

    Thread Starter BillSmart

    (@billsmart)

    Samboll,

    I tried ‘localhost’ and ‘localhost:3306’. I get the same error. Also, when I set up MySQL I used ‘www.billsmart.com’ and it worked okay to set up the connection. My web hosting service is meccahosting.com. The instructions they sent me when they set up the MySQL database are:

    Your MySQL database account login information is:

    Username: (username) (same as my email and works with MySQL Workbench)
    Password: (your account password)
    Database: billsmart_com
    Hostname: http://www.billsmart.com

    I’m not sure this is causing the PHP Fatal Error. The server error on this specifically references a function in wp-setting.php:

    Server Error: PHP Fatal error: Call to undefined function is_wp_error() in /wordpress/wp-settings.php on line 289

    The function referenced (I think) in wp-settings.php is:

    $prefix = $wpdb->set_prefix($table_prefix);
    if ( is_wp_error($prefix) )wp_die(/*WP_I18N_BAD_PREFIX*/’ERROR: $table_prefix in wp-config.php can only contain numbers, letters, and underscores.’/*/WP_I18N_BAD_PREFIX*/);

    It looks to me like the set-prefix function thinks $prefix is a ‘bad’ prefix. In wp-config.php I have set this up to be:

    $table_prefix = ‘wp1_’;

    …but have tried it with just ‘wp_’ and still get the same error.

    Any other suggestions?
    …Bill!

    I’m still fairly certain the host name is wrong but why not copy wp-config-sample.php again and leave out the secret keys until you get it installed
    there is nothing wrong with the prefix line

    Thread Starter BillSmart

    (@billsmart)

    Samboll,

    Thanks, I’ll do what you suggest. By the way I’m trying to install v2.9.2…

    Thread Starter BillSmart

    (@billsmart)

    Samboll,

    That worked!

    I decided to try to do everything as vanilla as possible:
    1. deleted everything both locally and on my web server
    2. re-extracted from the v2.9.2 zip file to my PC
    3. FTP’d everything to my remote web server
    5. DID NOT create a wp-config.php, but let the WP software do it for me
    6. left the DB_HOST as the default: ‘localhost’
    7. left the $table_prefix as the default: ‘wp_’
    8. did not create unique KEYs or SALTs.

    Questions:

    1. How important are the KEYs and SALTs?
    2. Do I have to delete and then reinstall WP to add them? Or is there a way to do that now, after the install?
    3. If I install another instance of WP in this same database (using a different prefix for the tables), do I have to use the same KEYs and SALTs on all instances of WP?

    Thanks…Bill!

    alright – good for you

    How important are the KEYs and SALTs?

    Fairly important
    http://codex.wordpress.org/Editing_wp-config.php#Security_Keys

    Do I have to delete and then reinstall WP to add them? Or is there a way to do that now, after the install?

    No – just download wp-config.php and carefully insert them (use notepad or another plain text editor) – save and upload back to server.

    If I install another instance of WP in this same database (using a different prefix for the tables), do I have to use the same KEYs and SALTs on all instances of WP?

    No – you want to use different keys for each install
    have fun blogging

    Thread Starter BillSmart

    (@billsmart)

    Thanks! …Bill!

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

The topic ‘On Install: HTTP 500 – PHP Fatal Error in wp-settings’ is closed to new replies.