( ! ) Notice: Undefined offset: 0 in /home/fashionst/domains/tatianael.ru/public_html/modules/jmsadvblog/jmsadvblog.php on line 1626 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0000 | 360808 | {main}( ) | .../index.php:0 |
2 | 0.0262 | 2561760 | Dispatcher->dispatch( ) | .../index.php:28 |
3 | 0.0297 | 2859952 | JMSAdvBlogItemModuleFrontController->run( ) | .../Dispatcher.php:367 |
4 | 0.0351 | 3169408 | JMSAdvBlogItemModuleFrontController->initContent( ) | .../Controller.php:189 |
5 | 0.0351 | 3169408 | JMSAdvBlogItemModuleFrontController->initContent( ) | .../item.php:26 |
6 | 0.0352 | 3169408 | JMSAdvBlogItemModuleFrontController->initContent( ) | .../ModuleFrontController.php:101 |
7 | 0.3505 | 5140424 | HookCore::exec( ) | .../FrontController.php:581 |
8 | 0.3506 | 5143504 | HookCore::coreCallHook( ) | .../Hook.php:548 |
9 | 0.3506 | 5143504 | JmsAdvBlog->hookLeftColumn( ) | .../Hook.php:591 |
( ! ) Notice: Undefined offset: 0 in /home/fashionst/domains/tatianael.ru/public_html/modules/jmsadvblog/controllers/front/item.php on line 30 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0000 | 360808 | {main}( ) | .../index.php:0 |
2 | 0.0262 | 2561760 | Dispatcher->dispatch( ) | .../index.php:28 |
3 | 0.0297 | 2859952 | JMSAdvBlogItemModuleFrontController->run( ) | .../Dispatcher.php:367 |
4 | 0.0351 | 3169408 | JMSAdvBlogItemModuleFrontController->initContent( ) | .../Controller.php:189 |
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY hss.ordering' at line 5
SELECT hss.`cat_id` as cat_id, hssl.`title`
FROM ps_jmsadvblog_cats hss
LEFT JOIN ps_jmsadvblog_cats_lang hssl ON (hss.cat_id = hssl.cat_id)
WHERE hssl.id_lang = 1 AND hss.`cat_id` =
ORDER BY hss.ordering
at line 791 in file classes/db/Db.php
786. if ($webservice_call && $errno) {
787. $dbg = debug_backtrace();
788. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
790. if ($sql) {
791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
792. }
793.
794. throw new PrestaShopDatabaseException($this->getMsgError());
795. }
796. }
420. $this->result = $this->_query($sql);
421. }
422. }
423.
424. if (_PS_DEBUG_SQL_) {
425. $this->displayError($sql);
426. }
427.
428. return $this->result;
429. }
430.
Argument [0] SELECT hss.`cat_id` as cat_id, hssl.`title` FROM ps_jmsadvblog_cats hss LEFT JOIN ps_jmsadvblog_cats_lang hssl ON (hss.cat_id = hssl.cat_id) WHERE hssl.id_lang = 1 AND hss.`cat_id` = ORDER BY hss.ordering
638. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
639. }
640. return $this->execute($sql, $use_cache);
641. }
642.
643. $this->result = $this->query($sql);
644.
645. if (!$this->result) {
646. $result = false;
647. } else {
648. if (!$array) {
Argument [0] SELECT hss.`cat_id` as cat_id, hssl.`title` FROM ps_jmsadvblog_cats hss LEFT JOIN ps_jmsadvblog_cats_lang hssl ON (hss.cat_id = hssl.cat_id) WHERE hssl.id_lang = 1 AND hss.`cat_id` = ORDER BY hss.ordering
80. return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
81. SELECT hss.`cat_id` as cat_id, hssl.`title`
82. FROM '._DB_PREFIX_.'jmsadvblog_cats hss
83. LEFT JOIN '._DB_PREFIX_.'jmsadvblog_cats_lang hssl ON (hss.cat_id = hssl.cat_id)
84. WHERE hssl.id_lang = '.(int)$id_lang.
85. ' AND hss.`cat_id` = '.$cat_id.'
86. ORDER BY hss.ordering'
87. );
88. }
89. public function getItem($item_id)
90. {
Argument [0] SELECT hss.`cat_id` as cat_id, hssl.`title` FROM ps_jmsadvblog_cats hss LEFT JOIN ps_jmsadvblog_cats_lang hssl ON (hss.cat_id = hssl.cat_id) WHERE hssl.id_lang = 1 AND hss.`cat_id` = ORDER BY hss.ordering
46.
47. //getComment
48. $getComment = $getComment->blogcomment($item_id, 5);
49. $count = count($getComment);
50. // list category
51. $cat = $this->getCat($item['cat_id']);
52. $this->context->controller->addCSS($this->module->getPathUri().'views/css/style.css', 'all');
53. $this->context->smarty->assign(array(
54. 'item' => $item,
55. 'cat' => $cat[0],
56. 'count' => $count,
Argument [0]
184. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
185. $this->initHeader();
186. }
187.
188. if ($this->viewAccess()) {
189. $this->initContent();
190. } else {
191. $this->errors[] = Tools::displayError('Access denied.');
192. }
193.
194. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
362. if (isset($params_hook_action_dispatcher)) {
363. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
364. }
365.
366. // Running controller
367. $controller->run();
368. } catch (PrestaShopException $e) {
369. $e->displayMessage();
370. }
371. }
372.
23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24. * International Registered Trademark & Property of PrestaShop SA
25. */
26.
27. require(dirname(__FILE__).'/config/config.inc.php');
28. Dispatcher::getInstance()->dispatch();