TPhpErrorException

Description

[Warning] strstr(): Empty needle (@line 463 in file /home/express/public_html/protected/pages/ProductList.php).

Source File

/home/express/public_html/protected/pages/ProductList.php (463)

0452: 
0453: 
0454:     public function PremiumItemCreated($sender , $param)
0455:     {
0456: 
0457:         $item = $param->Item;
0458:         if ($item->ItemType === 'Item' || $item->ItemType === 'AlternatingItem')
0459:         {
0460:             $item->txtPremiumDesc->Text = $item->DataItem['PremiumCardDescription'];
0461:             $item->txtPremiumName->Text = $item->DataItem['PremiumCardName'];
0462:             $item->txtPremiumName->NavigateUrl = $item->DataItem['PremiumCardURL'];
0463: if (strstr( $item->DataItem['PremiumCardURL'], "" ))
0464: $item->txtPremiumName->NavigateUrl = $item->DataItem['PremiumCardURL']; 0465: else 0466: $item->txtPremiumName->NavigateUrl = "" . $item->DataItem['PremiumCardURL']; 0467: $item->txtPremiumUrl->Target = "Blank"; 0468: if (! empty( $item->DataItem['PremiumCardImage'] ) && file_exists( $this->Application->Parameters['ImagesDocumentRoot'] . '/PremiumCards/' . $item->DataItem['PremiumCardImage'] ) && is_file( 0469: $this->Application->Parameters['ImagesDocumentRoot'] . '/PremiumCards/' . $item->DataItem['PremiumCardImage'] )) 0470: { 0471: $item->txtPremiumImage->ImageUrl = '/phpThumb.php?src=/PremiumCards/' . $item->DataItem['PremiumCardImage'] . '&w=150&h=210&q=95'; 0472: if (strstr( $item->DataItem['PremiumCardURL'], "" )) 0473: $item->txtPremiumUrl->NavigateUrl = $item->DataItem['PremiumCardURL']; 0474: else 0475: $item->txtPremiumUrl->NavigateUrl = "" . $item->DataItem['PremiumCardURL'];

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'strstr(): Empty...', '/home/express/p...', 463, Array)
#1 /home/express/public_html/protected/pages/ProductList.php(463): strstr('http://invitati...', '')
#2 /home/express/framework/TComponent.php(374): ProductList->PremiumItemCreated(Object(TRepeater), Object(TRepeaterItemEventParameter))
#3 /home/express/framework/Web/UI/WebControls/TRepeater.php(726): TComponent->raiseEvent('OnItemCreated', Object(TRepeater), Object(TRepeaterItemEventParameter))
#4 /home/express/framework/Web/UI/WebControls/TRepeater.php(499): TRepeater->onItemCreated(Object(TRepeaterItemEventParameter))
#5 /home/express/framework/Web/UI/WebControls/TRepeater.php(681): TRepeater->createItemWithDataInternal(0, 'Item', Array)
#6 /home/express/framework/Web/UI/WebControls/TDataBoundControl.php(354): TRepeater->performDataBinding(Object(TMap))
#7 /home/express/public_html/protected/pages/ProductList.php(147): TDataBoundControl->dataBind()
#8 /home/express/framework/Web/UI/TControl.php(1286): ProductList->onLoad(NULL)
#9 /home/express/framework/Web/UI/TPage.php(215): TControl->loadRecursive()
#10 /home/express/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#11 /home/express/framework/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#12 /home/express/framework/Web/Services/TPageService.php(444): TPageService->runPage(Object(ProductList), Array)
#13 /home/express/framework/TApplication.php(1095): TPageService->run()
#14 /home/express/framework/TApplication.php(382): TApplication->runService()
#15 /home/express/public_html/index.php(21): TApplication->run()
#16 {main}
2017-06-24 20:46 Apache/2.4.18 (Ubuntu) PRADO/3.1.7