[wp-trac] [WordPress Trac] #17090: Multisite 3.1.1 Upgrade Redirect Loop Network Admin & Plugins
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 8 22:34:10 UTC 2011
#17090: Multisite 3.1.1 Upgrade Redirect Loop Network Admin & Plugins
-----------------------------+------------------------------
Reporter: theshadowfan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 3.1
Severity: normal | Resolution:
Keywords: |
-----------------------------+------------------------------
Comment (by theshadowfan):
When we moved the blog I did encounter redirection issues. When someone
tried to access the old blog post URL it did not automatically redirect
them to the new blog post URL. My host figured out whatever the issue was.
I just checked right now and if I go a new blog post via the old blog
directory URL, it was redirect me to the new blog directory URL.
When I added that code to my wp-admin/network/admin.php file and tried to
access the Network Admin file, I received this error:
Parse error: syntax error, unexpected T_ECHO in /home/stuffwel/public_html
/wp-admin/network/admin.php on line 28
This is where I inserted the code, is this correct?:
<?php
/**
* WordPress Network Administration Bootstrap
*
* @package WordPress
* @subpackage Multisite
* @since 3.1.0
*/
define( 'WP_NETWORK_ADMIN', TRUE );
/** Load WordPress Administration Bootstrap */
require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
if ( ! is_main_site() ) {
wp_redirect( network_admin_url() );
exit;
}
global $wpdb;
var_dump( $wpdb->get_row( "SELECT * FROM $wpdb->blogs WHERE blog_id = 1" )
);
var_dump( $wpdb->get_row( "SELECT * FROM $wpdb->site WHERE site_id = 1" )
);
foreach ( array( 'DOMAIN_CURRENT_SITE', 'PATH_CURRENT_SITE',
'SITE_ID_CURRENT_SITE', 'BLOG_ID_CURRENT_SITE', 'BLOGID_CURRENT_SITE' ) as
$constant ) {
if ( defined( $constant )
echo "$constant is " . constant( $constant ) . "\n";
}
?>
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17090#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list