( ! ) 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.0007415520{main}( ).../index.php:0
20.06834720824Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.399717165976Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.399917166032Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.400017166408Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.400017166408Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.400317166504Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.400717206424require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.405617503696GKTemplate->__construct( ).../component.php:31
100.412517688080GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.413417732936require_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.0007415520{main}( ).../index.php:0
20.06834720824Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.399717165976Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.399917166032Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.400017166408Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.400017166408Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.400317166504Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.400717206424require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.405617503696GKTemplate->__construct( ).../component.php:31
100.415517861264GKTemplateMenu->getMenuType( ).../gk.framework.php:85
Notice: Undefined variable 的解决方法
Logo
Print this page

Notice: Undefined variable 的解决方法

这是PHP警告信息,是由于未定义变量引起的。

比如:你未设置变量,却在php中用echo $varstr 了,就会出显这种情况,

解决方法:

修改php.ini

将: error_reporting = E_ALL


修改为:error_reporting = E_ALL & ~E_NOTICE


如果什么错误都不想让显示,直接修改:




display_errors = Off


如果你没有php.ini的修改权限,可在php头部加入


ini_set("error_reporting","E_ALL & ~E_NOTICE");

即可

Last modified onSaturday, 05 January 2013 13:21

( ! ) 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.0007415520{main}( ).../index.php:0
20.06834720824Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.06834720824Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.255812449120Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.256412473640Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.257012528968Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.257312557792require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.265112993200K2ControllerItem->execute( ).../k2.php:64
90.265112993200K2ControllerItem->display( ).../BaseController.php:710
100.274713718400K2ControllerItem->display( ).../item.php:78
110.274713718400K2ControllerItem->display( ).../controller.php:19
120.278714114768Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.280214135136K2ViewItem->display( ).../ViewController.php:102
140.389317067752K2ViewItem->display( ).../view.html.php:742
150.389317067752K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.393317247952include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in 主机
  • Read 3780 times

( ! ) 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.0007415520{main}( ).../index.php:0
20.06834720824Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.06834720824Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.255812449120Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.256412473640Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.257012528968Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.257312557792require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.265112993200K2ControllerItem->execute( ).../k2.php:64
90.265112993200K2ControllerItem->display( ).../BaseController.php:710
100.274713718400K2ControllerItem->display( ).../item.php:78
110.274713718400K2ControllerItem->display( ).../controller.php:19
120.278714114768Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.280214135136K2ViewItem->display( ).../ViewController.php:102
140.389317067752K2ViewItem->display( ).../view.html.php:742
150.389317067752K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.393317247952include( '/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.