( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKBase.class.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0013415432{main}( ).../index.php:0
20.08644720592Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.431217173952Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.431317174008Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.431417174384Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.431417174384Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.431517174480Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.431817214400require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.435617511672GKTemplate->__construct( ).../component.php:31
100.442717696056GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.443217740912require_once( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKMenu.php' ).../helper.menu.php:19

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKHandheld.php on line 76
Call Stack
#TimeMemoryFunctionLocation
10.0013415432{main}( ).../index.php:0
20.08644720592Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.431217173952Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.431317174008Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.431417174384Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.431417174384Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.431517174480Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.431817214400require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.435617511672GKTemplate->__construct( ).../component.php:31
100.445217869240GKTemplateMenu->getMenuType( ).../gk.framework.php:85
[warn] NameVirtualHost *:80 has no VirtualHosts
Logo
Print this page

[warn] NameVirtualHost *:80 has no VirtualHosts

错误:[warn] NameVirtualHost *:80 has no VirtualHosts 

原因:定义了多个NameVirtualHost

解决:Ubuntu之前的版本定义在/etc/apache2/sites-available/default, 8.04后在/etc/apache2/ports.conf

故可以将/etc/apache2/ports.conf中的NameVirtualHost *:80注释掉

这个问题的本质是在没有定义域名是一个端口只能对应一个虚拟主机,将NameVirtualHost *:80改为其他端口也可以解决

如果有多个不同的域名的话,用同样的端口也可以

Last modified onWednesday, 29 May 2013 19:03

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0013415432{main}( ).../index.php:0
20.08644720592Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08644720592Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.318512448840Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.319312473248Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.320112528576Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.320312557400require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.328912992808K2ControllerItem->execute( ).../k2.php:64
90.329012992808K2ControllerItem->display( ).../BaseController.php:710
100.338913718008K2ControllerItem->display( ).../item.php:78
110.338913718008K2ControllerItem->display( ).../controller.php:19
120.343014114376Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.346214134744K2ViewItem->display( ).../ViewController.php:102
140.424017117216K2ViewItem->display( ).../view.html.php:742
150.424017117216K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.425717297416include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0013415432{main}( ).../index.php:0
20.08644720592Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08644720592Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.318512448840Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.319312473248Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.320112528576Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.320312557400require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.328912992808K2ControllerItem->execute( ).../k2.php:64
90.329012992808K2ControllerItem->display( ).../BaseController.php:710
100.338913718008K2ControllerItem->display( ).../item.php:78
110.338913718008K2ControllerItem->display( ).../controller.php:19
120.343014114376Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.346214134744K2ViewItem->display( ).../ViewController.php:102
140.424017117216K2ViewItem->display( ).../view.html.php:742
150.424017117216K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.425717297416include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
Template Design © Joomla Templates | GavickPro. All rights reserved.