fatal error get_page_permastruct()
This happens because plugins_loaded fires before the global variable $wp_rewrite exists. From wp-settings.php: // Load active plugins. foreach ( wp_get_active_and_valid_plugins() as $plugin ) include_once( $plugin ); unset( $plugin ); // Load pluggable functions. require( ABSPATH . WPINC . ‘/pluggable.php’ ); require( ABSPATH . WPINC . ‘/pluggable-deprecated.php’ ); // Set internal encoding. wp_set_internal_encoding(); // Run wp_cache_postload() … Read more