TPhpErrorException

Description

[Warning] opendir(/home/papucei/public_html/storage/produse/you could be happy/galery/) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory (@line 81 in file /home/papucei/public_html/protected/Pages/Product.php).

Source File

/home/papucei/public_html/protected/Pages/Product.php (81)

0070: 
0071:             $this->priceText->Text = $product[0]['price'];
0072: 
0073:             $this->oldPriceText->Text = '';
0074:             if (intval($product[0]['old_price']) > 0)
0075:                 $this->oldPriceText->Text = '<strike>'.intval($product[0]['old_price']).' RON</strike>';
0076:             }
0077: 
0078: 
0079:             $path = '/storage/produse/'.$product[0]['dir_name'].'/galery/';
0080: 
0081: if ($handle = opendir(getcwd().$path)) {
0082: $i=0; 0083: while (false !== ($file = readdir($handle)) && $i<3) { 0084: if($file != "." && $file != ".." && $file != ".svn" && $file != "Thumbs.db" && $file != "thumbs.db") { 0085: $gallery[$i]['file'] = $path.$file; 0086: $i++; 0087: } 0088: } 0089: closedir($handle); 0090: 0091: } else { 0092: echo "<h1>Acest produs nu exista!</h1>"; 0093: }

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'opendir(/home/p...', '/home/papucei/p...', 81, Array)
#1 /home/papucei/public_html/protected/Pages/Product.php(81): opendir('/home/papucei/p...')
#2 /home/papucei/public_html/protected/Pages/Product.php(290): Product->loadData()
#3 /home/papucei/public_html/extensions/prado/3_1_0_r2045/Web/UI/TControl.php(1286): Product->onLoad(NULL)
#4 /home/papucei/public_html/extensions/prado/3_1_0_r2045/Web/UI/TPage.php(419): TControl->loadRecursive()
#5 /home/papucei/public_html/extensions/prado/3_1_0_r2045/Web/UI/TPage.php(385): TPage->processNormalRequest(Object(THtmlWriter))
#6 /home/papucei/public_html/extensions/prado/3_1_0_r2045/Web/Services/TPageService.php(472): TPage->run(Object(THtmlWriter))
#7 /home/papucei/public_html/extensions/prado/3_1_0_r2045/Web/Services/TPageService.php(418): TPageService->runPage(Object(Product), Array)
#8 /home/papucei/public_html/extensions/prado/3_1_0_r2045/TApplication.php(1066): TPageService->run()
#9 /home/papucei/public_html/extensions/prado/3_1_0_r2045/TApplication.php(376): TApplication->runService()
#10 /home/papucei/public_html/index.php(5): TApplication->run()
#11 {main}
2010-07-31 21:54 Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PRADO/3.1.0