Joomla K2组件媒体管理器无法打开的解决办法

K2的媒体管理器无法打开,主要原因是k2中加载google的cdn,而google的服务在国内无法正常使用。故,在知道原因后可以改成百度或者微软的cdn服务.

1、打开:administrator/components/com_k2/helpers/html.php文件,第70行左右:

if($mediaManager)
 {
 //$document->addScript('//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js');  //将google的cdn注释掉。加载baidu的。
  $document->addScript('//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js');
 }

  

2、打开:administrator/components/com_k2/views/media/view.html.php文件,第23行:

$document->addStyleSheet('//ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css');
修改成:

$document->addStyleSheet('//apps.bdimg.com/libs/jqueryui/1.10.0/themes/smoothness/jquery-ui.css');
原文地址:https://www.cnblogs.com/kjitboy/p/5505402.html