ValueError

Description

fread(): Argument #2 ($length) must be greater than 0

Source File

${PradoFramework}/I18N/core/TCache_Lite.php (555)

0544:         if ($this->_fileLocking) {
0545:             @flock($fp, LOCK_SH);
0546:         }
0547:         if ($fp) {
0548:             // because the filesize can be cached by PHP itself...
0549:             clearstatcache();
0550:             $length = @filesize($this->_file);
0551:             if ($this->_readControl) {
0552:                 $hashControl = @fread($fp, 32);
0553:                 $length = $length - 32;
0554:             }
0555: $data = @fread($fp, $length);
0556: if ($this->_fileLocking) { 0557: @flock($fp, LOCK_UN); 0558: } 0559: @fclose($fp); 0560: if ($this->_readControl) { 0561: $hashData = $this->_hash($data, $this->_readControlType); 0562: if ($hashData != $hashControl) { 0563: @touch($this->_file, time() - 2 * abs($this->_lifeTime)); 0564: return false; 0565: } 0566: } 0567: return $data;

Stack Trace

#0 ${PradoFramework}/I18N/core/TCache_Lite.php(555): fread()
#1 ${PradoFramework}/I18N/core/TCache_Lite.php(294): Prado\I18N\core\TCache_Lite->_read()
#2 ${PradoFramework}/I18N/core/MessageCache.php(138): Prado\I18N\core\TCache_Lite->get()
#3 ${PradoFramework}/I18N/core/MessageSource.php(188): Prado\I18N\core\MessageCache->get()
#4 ${PradoFramework}/I18N/core/MessageFormat.php(134): Prado\I18N\core\MessageSource->load()
#5 ${PradoFramework}/I18N/core/MessageFormat.php(183): Prado\I18N\core\MessageFormat->loadCatalogue()
#6 ${PradoFramework}/I18N/core/MessageFormat.php(162): Prado\I18N\core\MessageFormat->formatString()
#7 ${PradoFramework}/PradoBase.php(673): Prado\I18N\core\MessageFormat->format()
#8 ${PradoFramework}/TComponent.php(1228) : eval()'d code(1): Prado\PradoBase::localize()
#9 ${PradoFramework}/TComponent.php(1228): eval()
#10 ${PradoFramework}/Web/UI/TCompositeLiteral.php(82): Prado\TComponent->evaluateExpression()
#11 ${PradoFramework}/Web/UI/TControl.php(1367): Prado\Web\UI\TCompositeLiteral->evaluateDynamicContent()
#12 ${PradoFramework}/Web/UI/TControl.php(1365): Prado\Web\UI\TControl->preRenderRecursive()
#13 ${PradoFramework}/Web/UI/TPage.php(234): Prado\Web\UI\TControl->preRenderRecursive()
#14 ${PradoFramework}/Web/UI/TPage.php(209): Prado\Web\UI\TPage->processNormalRequest()
#15 ${PradoFramework}/Web/Services/TPageService.php(527): Prado\Web\UI\TPage->run()
#16 ${PradoFramework}/Web/Services/TPageService.php(464): Prado\Web\Services\TPageService->runPage()
#17 ${PradoFramework}/TApplication.php(1189): Prado\Web\Services\TPageService->run()
#18 ${PradoFramework}/TApplication.php(381): Prado\TApplication->runService()
#19 ${DocumentRoot}/ti-racconto-la-storia/index.php(23): Prado\TApplication->run()
#20 {main}
2026-04-16 13:00 Apache/2.4.29 (Ubuntu) PRADO/4.1.2