0

While installing the wordpress site with zip files code and database i have loaded admin but frontend is empty and showing following errors. with empty home page.

Please find the screenshot http://prntscr.com/fp2ycu

Please find the code on functions.php on 872 line:

function get_blog_id_assign_to_js() { $site_info = get_site(); if(isset($site_info)) { $blog_Id = $site_info->blog_id; } } Thanks

  • I suspect that there are missing files in the WordPress installation because the function get_site() is part of the core WP installation. Try recopying the the core files to your server. – Dave Romsey Jun 28 '17 at 9:14
0

The problem is due to the 'purple-event' theme.

on functions.php line 872
  • I can help you send the code on functions.php on line 872 – Elizbar Yousuf Jun 28 '17 at 9:12
  • You need to write the code here – Elizbar Yousuf Jun 28 '17 at 9:37
  • function get_blog_id_assign_to_js() { $site_info = get_site(); if(isset($site_info)) { $blog_Id = $site_info->blog_id; } – shivashankar m Jun 28 '17 at 9:41
  • which code i have to write here – shivashankar m Jun 28 '17 at 9:51
  • Try running a different theme to figure out why – Elizbar Yousuf Jun 28 '17 at 10:04
0

try checking for the function get_site() it will check if the function exists
replace

function get_blog_id_assign_to_js() {
$site_info = get_site();
  if(isset($site_info)) {
     $blog_Id = $site_info->blog_id;
  }
}

with this code

function get_blog_id_assign_to_js() {
    if(function_exists('get_sites')){
        $site_info = get_site();
        if(isset($site_info)) {
        $blog_Id = $site_info->blog_id;
        }
     }
}
  • iam getting following errors:screenshot:prntscr.com/fp3xg8 – shivashankar m Jun 28 '17 at 10:26
  • I have commented the code in wp-config.php /* Multisite */ /*define( 'WP_ALLOW_MULTISITE', true ); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', '10.0.0.70'); define('PATH_CURRENT_SITE', '/entervent/entervent-live/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);*/ – shivashankar m Jun 28 '17 at 10:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.