728x90

PHP Fatal error: Uncaught Error: Class 'WP_User' not found

PHP Fatal error:  Cannot redeclare eto_shortcode_image()


These moment is happened. For, WP_User class is not re-declare.  So I shoot trouble the same method as like this, which 


<code>

if(!isset($wpdb))

{

    //the '../' is the number of folders to go up from the current file to the root-map.

    include_once($_SERVER['DOCUMENT_ROOT'].'wp-config.php');

    include_once($_SERVER['DOCUMENT_ROOT'].'wp-includes/wp-db.php');

}

</code>


Also, it is the trouble that below code. 


if( isset($_GET['page']) AND $_GET['page'] == 'eto-settings' ) {

include($eto_base_dir . '/includes/styles.php');

include($eto_base_dir . '/includes/options.php');

include($eto_base_dir . '/includes/functions/eto_functions.php');

include($eto_base_dir . '/includes/scripts.php');

include($eto_base_dir . '/includes/help.php');

}


include($eto_base_dir . '/includes/shortcodes.php');


in easy-theme-option, if you are used to Ajax,  modify  below.



if( isset($_GET['page']) AND $_GET['page'] == 'eto-settings' ) {

include_once($eto_base_dir . '/includes/styles.php');

include_once($eto_base_dir . '/includes/options.php');

include_once($eto_base_dir . '/includes/functions/eto_functions.php');

include_once($eto_base_dir . '/includes/scripts.php');

include_once($eto_base_dir . '/includes/help.php');

}


include_once($eto_base_dir . '/includes/shortcodes.php');


+ Recent posts