CentOS Linux: Fix bash: ntpdate: command not found centos
- font size decrease font size increase font size
- Print Email
First you have to install ntp:
Run as root:
Then if you run ntpdate again you might get the error again. You can run ntpdate with:
Replace 2.pool.ntp.org with another server if that doesn’t work.
If you get a ntpdate[585863]: the NTP socket is in use, exiting Error, then run:
Took me 10 precious minutes to update the time in a server … That’s a lot!
Last modified onSaturday, 05 January 2013 12:50
( ! ) 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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0008 | 413240 | {main}( ) | .../index.php:0 |
2 | 0.0897 | 4263256 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0897 | 4263256 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3320 | 11454256 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3328 | 11478632 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3335 | 11533960 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3337 | 11561360 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3416 | 11960992 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3416 | 11960992 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3508 | 12611696 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3508 | 12611696 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3551 | 12982736 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3592 | 13003104 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4430 | 15832920 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4430 | 15832920 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4461 | 16005856 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in CentOS 6
- Read 2057 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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0008 | 413240 | {main}( ) | .../index.php:0 |
2 | 0.0897 | 4263256 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0897 | 4263256 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3320 | 11454256 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3328 | 11478632 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3335 | 11533960 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3337 | 11561360 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3416 | 11960992 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3416 | 11960992 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3508 | 12611696 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3508 | 12611696 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3551 | 12982736 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3592 | 13003104 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4430 | 15832920 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4430 | 15832920 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4461 | 16005856 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |