<?php /** * bootstrap file for setting the abspath constant * and loading the wp-config.php file. the wp-config.php * file will then load the wp-settings.php file, which * will then set up the wordpress environment. * * if the wp-config.php file is not found then an error * will be displayed asking the visitor to set up the * wp-config.php file. * * will also search for wp-config.php in wordpress' parent * directory to allow the wordpress directory to remain * untouched. * * @package wordpress */ /** define abspath as this file's directory */ if ( ! defined( 'abspath' ) ) { define( 'abspath', __dir__ . '/' ); } /* * the error_reporting() function can be disabled in php.ini. on systems where that is the case, * it's best to add a dummy function to the wp-config.php file, but as this call to the function * is run prior to wp-config.php loading, it is wrapped in a function_exists() check. */ if ( function_exists( 'error_reporting' ) ) { /* * initialize error reporting to a known set of levels. * * this will be adapted in wp_debug_mode() located in wp-includes/load.php based on wp_debug. * @see https://www.php.net/manual/en/errorfunc.constants.php list of known error levels. */ error_reporting( e_core_error | e_core_warning | e_compile_error | e_error | e_warning | e_parse | e_user_error | e_user_warning | e_recoverable_error ); } /* * if wp-config.php exists in the wordpress root, or if it exists in the root and wp-settings.php * doesn't, load wp-config.php. the secondary check for wp-settings.php has the added benefit * of avoiding cases where the current directory is a nested installation, e.g. / is wordpress(a) * and /blog/ is wordpress(b). * * if neither set of conditions is true, initiate loading the setup process. */ if ( file_exists( abspath . 'wp-config.php' ) ) { /** the config file resides in abspath */ require_once abspath . 'wp-config.php'; } elseif ( @file_exists( dirname( abspath ) . '/wp-config.php' ) && ! @file_exists( dirname( abspath ) . '/wp-settings.php' ) ) { /** the config file resides one level above abspath but is not part of another installation */ require_once dirname( abspath ) . '/wp-config.php'; } else { // a config file doesn't exist. define( 'wpinc', 'wp-includes' ); require_once abspath . wpinc . '/version.php'; require_once abspath . wpinc . '/compat.php'; require_once abspath . wpinc . '/load.php'; // check for the required php version and for the mysql extension or a database drop-in. wp_check_php_mysql_versions(); // standardize $_server variables across setups. wp_fix_server_vars(); define( 'wp_content_dir', abspath . 'wp-content' ); require_once abspath . wpinc . '/functions.php'; $path = wp_guess_url() . '/wp-admin/setup-config.php'; // redirect to setup-config.php. if ( ! str_contains( $_server['request_uri'], 'setup-config' ) ) { header( 'location: ' . $path ); exit; } wp_load_translations_early(); // die with an error message. $die = '<p>' . sprintf( /* translators: %s: wp-config.php */ __( "there doesn't seem to be a %s file. it is needed before the installation can continue." ), '<code>wp-config.php</code>' ) . '</p>'; $die .= '<p>' . sprintf( /* translators: 1: documentation url, 2: wp-config.php */ __( 'need more help? <a href="%1$s">read the support article on %2$s</a>.' ), __( 'https://developer.wordpress.org/advanced-administration/wordpress/wp-config/' ), '<code>wp-config.php</code>' ) . '</p>'; $die .= '<p>' . sprintf( /* translators: %s: wp-config.php */ __( "you can create a %s file through a web interface, but this doesn't work for all server setups. the safest way is to manually create the file." ), '<code>wp-config.php</code>' ) . '</p>'; $die .= '<p><a href="' . $path . '" class="button button-large">' . __( 'create a configuration file' ) . '</a></p>'; wp_die( $die, __( 'wordpress &rsaquo; error' ) ); }\'
Fatal error: Uncaught Error: Call to undefined function wp() in /htdocs/ptso.jmkconsulting-ci.com/wp-blog-header.php:16 Stack trace: #0 /htdocs/ptso.jmkconsulting-ci.com/index.php(17): require() #1 {main} thrown in /htdocs/ptso.jmkconsulting-ci.com/wp-blog-header.php on line 16