On Install: HTTP 500 – PHP Fatal Error in wp-settings
-
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_prefixinwp-config.phpcan 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
The topic ‘On Install: HTTP 500 – PHP Fatal Error in wp-settings’ is closed to new replies.