kosik
Počet tovarov: 0
Cena: 0,00 € 0








• všetky
• satelitná technika
Catchable fatal error

Catchable fatal error

Argument 1 passed to NewsService::_fillNewsFromResultSetRow() must be an array, boolean given, called in /www/s/a/u12512/public_html/services/NewsService.php on line 73 and defined

Source file ▼

File: /www/s/a/u12512/public_html/services/NewsService.php   Line: 138

Line 133:    		if (array_key_exists('hidden',$post)) { $news->setHidden(1); } else { $news->setHidden(0); }
Line 134:    		if (array_key_exists('action',$post)) { $news->setAction($post['action']); } else { $news->setActi...
Line 135:    		return $news;
Line 136:    	}
Line 137:    
Line 138:    	private static function _fillNewsFromResultSetRow(array $rsrow) {
Line 139:    		$news = new News();
Line 140:    		$news->setID		($rsrow[TablesDef::cNewsID()]);
Line 141:    		$news->setProductID	($rsrow[TablesDef::cNewsProductID()]);
Line 142:    		$news->setDate		($rsrow[TablesDef::cNewsDate()]);

Call stack ▼

  1. services/NewsService.php (73) source ▶   NewsService:: _fillNewsFromResultSetRow (arguments ▶)

    $rsrow
    bool(false)
    
    Line 68:    		$news = new News();
    Line 69:    		$sql= "SELECT * FROM ".TablesDef::tNews()
    Line 70:    			. " WHERE ".TablesDef::cNewsID()."=$id";
    Line 71:    		$rs = self::$db->dbQuery($sql);
    Line 72:    		$row = mysql_fetch_array($rs);
    Line 73:    		$news = self::_fillNewsFromResultSetRow($row);
    Line 74:    		self::$db->dbFreeResult($rs);
    Line 75:    		return $news;
    Line 76:    	}
    Line 77:    
    
  2. public_html/main_novinky.php (26) source ▶   NewsService:: getNewsByID (arguments ▶)

    $id
    int(310)
    
    Line 21:    
    Line 22:    <?
    Line 23:    
    Line 24:    if (isset($_GET['flag']) && $_GET['flag']=='detail') {
    Line 25:    	$id = intval($_GET['id']);
    Line 26:    	$news = NewsService::getNewsByID($id);
    Line 27:    	NewsView::renderNewsDetail($news);
    Line 28:    } else {
    Line 29:    	$newsList = NewsService::getActiveNews($typ);
    Line 30:    	if (empty($newsList)) {
    
  3. public_html/index.php (91) source ▶   include (arguments ▶)

    #0
    string(44) "/www/s/a/u12512/public_html/main_novinky.php"
    
    Line 86:        </div>
    Line 87:      </div> <!-- id='header' -->
    Line 88:      <div class='clear'></div>
    Line 89:    
    Line 90:      <div id='main'>
    Line 91:    	<?if (!empty($inc_file_main)) { include($inc_file_main); }?>
    Line 92:    	<div class="clear"></div>
    Line 93:      </div> <!-- id='main' -->
    Line 94:      <div class="clear"></div>
    Line 95:    
    

Environment ▶

Constants ▼

DIRSEP
string(1) "/"
DEFAULTLANG
string(2) "sk"
SITE_PATH
string(38) "/www/satelitnatechnika.sk/public_html/"
DEVELOPMENT_ENVIRONMENT
bool(true)
DOC_ROOT
string(28) "/www/s/a/u12512/public_html/"
WWW_ROOT
string(0) ""

Included files ▶

/www/s/a/u12512/public_html/index.php
/www/s/a/u12512/public_html/init.php
/www/s/a/u12512/public_html/libs/Nette/Debug.php
/www/satelitnatechnika.sk/public_html/libs/Registry.php
/www/s/a/u12512/public_html/libs/Registry.php
/www/s/a/u12512/public_html/TablesDef.php
/www/s/a/u12512/public_html/DbMySQL.php
/www/s/a/u12512/public_html/functions.php
/www/s/a/u12512/public_html/Tools.php
/www/s/a/u12512/public_html/libs/ACL.php
/www/s/a/u12512/public_html/libs/phpmailer/class.phpmailer.php
/www/s/a/u12512/public_html/models/Category.php
/www/s/a/u12512/public_html/models/News.php
/www/s/a/u12512/public_html/models/Basket.php
/www/s/a/u12512/public_html/models/User.php
/www/s/a/u12512/public_html/models/Product.php
/www/s/a/u12512/public_html/models/ProductAttribute.php
/www/s/a/u12512/public_html/models/Referencia.php
/www/s/a/u12512/public_html/services/CategoryService.php
/www/s/a/u12512/public_html/services/NewsService.php
/www/s/a/u12512/public_html/services/ProductService.php
/www/s/a/u12512/public_html/services/ProductAttributesService.php
/www/s/a/u12512/public_html/services/BasketService.php
/www/s/a/u12512/public_html/services/UserService.php
/www/s/a/u12512/public_html/services/ReferencieService.php
/www/s/a/u12512/public_html/views/NewsView.php
/www/s/a/u12512/public_html/views/ProductView.php
/www/s/a/u12512/public_html/views/BasketView.php
/www/s/a/u12512/public_html/views/ReferencieView.php
/www/s/a/u12512/public_html/libs/phpmailer/language/phpmailer.lang-en.php
/www/s/a/u12512/public_html/routing.php
/www/s/a/u12512/public_html/main_novinky.php
/www/s/a/u12512/public_html/libs/Nette/Version.php
/www/s/a/u12512/public_html/libs/Nette/templates/Debug.phtml
/www/s/a/u12512/public_html/libs/Nette/templates/Debug.openpanel.phtml
/www/s/a/u12512/public_html/libs/Nette/templates/Debug.closepanel.phtml

$_SERVER

DOCUMENT_ROOT
string(27) "/www/s/a/u12512/public_html"
GATEWAY_INTERFACE
string(7) "CGI/1.1"
HTTP_ACCEPT
string(83) "text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
HTTP_ACCEPT_CHARSET
string(30) "ISO-8859-1,utf-8;q=0.7,*;q=0.7"
HTTP_ACCEPT_ENCODING
string(4) "gzip"
HTTP_ACCEPT_LANGUAGE
string(14) "en-us,en;q=0.5"
HTTP_CACHE_CONTROL
string(8) "no-cache"
HTTP_CONNECTION
string(5) "close"
HTTP_COOKIE
string(42) "PHPSESSID=101cf11a22baaee1ad35a36b666311fc"
HTTP_HOST
string(24) "www.satelitnatechnika.sk"
HTTP_PRAGMA
string(8) "no-cache"
HTTP_USER_AGENT
string(48) "CCBot/1.0 (+http://www.commoncrawl.org/bot.html)"
HTTP_X_CC_ID
string(8) "ccc04-02"
PATH
string(8) "/usr/bin"
PHPRC
string(26) "/www/s/a/u12512/conf/php52"
PHPSESSDIR
string(8) "/www/tmp"
QUERY_STRING
string(30) "cmd=novinky&flag=detail&id=310"
REDIRECT_STATUS
string(3) "200"
REMOTE_ADDR
string(14) "38.107.191.117"
REMOTE_PORT
string(5) "33282"
REQUEST_METHOD
string(3) "GET"
REQUEST_URI
string(32) "/?cmd=novinky&flag=detail&id=310"
SCRIPT_FILENAME
string(37) "/www/s/a/u12512/public_html/index.php"
SCRIPT_NAME
string(10) "/index.php"
SCRIPT_URI
string(32) "http://www.satelitnatechnika.sk/"
SCRIPT_URL
string(1) "/"
SERVER_ADDR
string(13) "92.240.253.33"
SERVER_ADMIN
string(18) "root@exohosting.sk"
SERVER_NAME
string(24) "www.satelitnatechnika.sk"
SERVER_PORT
string(2) "80"
SERVER_PROTOCOL
string(8) "HTTP/1.1"
SERVER_SIGNATURE
string(69) "<address>Apache Server at www.satelitnatechnika.sk Port 80</address>
"
SERVER_SOFTWARE
string(6) "Apache"
TMPDIR
string(8) "/www/tmp"
PHP_SELF
string(10) "/index.php"
REQUEST_TIME
int(1283953617)
argv
array(1) {
  [0] => string(30) "cmd=novinky&flag=detail&id=310"
}
argc
int(1)

HTTP request ▶

$_GET

cmd
string(7) "novinky"
flag
string(6) "detail"
id
string(3) "310"

$_POST

empty

$_COOKIE

PHPSESSID
string(32) "101cf11a22baaee1ad35a36b666311fc"

HTTP response ▶

Headers

X-Powered-By: PHP/5.2.13
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html
  • PHP version 5.2.13
  • Apache
  • Nette Framework version 0.7 (Revision: $WCREV$, Date: $WCDATE$)
  • Report generated at Wed Sep 8 15:46:57 2010