Forum Replies Created

Viewing 1 replies (of 1 total)
  • Ye error WordPress multisite setup me subsite delete karne ke baad aa rahi hai. Iska reason hai ki sunrise.php file me $current_site ya $current_blog variable null hai, jisme “domain” property assign ho rahi hai.

    Solution:

    1. wp-config.php me SUNRISE define hai ya nahi check karein:phpCopyEditdefine( 'SUNRISE', 'on' );
    2. sunrise.php file me line 22 pe assignment se pehle $current_site ya $current_blog ko check karein:phpCopyEditif ( isset( $current_site ) ) { $current_site->domain = 'example.com'; }
    3. Database me wp_blogs aur wp_site tables check karein, koi orphaned entry to nahi.

    Agar issue persist kare, to multisite mapping plugin ya sunrise.php ka koi custom code check karein.

Viewing 1 replies (of 1 total)