tel8618217223380 / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

T(Active)FileUpload $_errorCode private vs protected #314

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Unknown ...
2.
3.

What is the expected output? What do you see instead?
exception 'TInvalidOperationException' with message 'Component property 
'TActiveFileUpload._errorCode' is not defined.' in 
/var/www/prado/framework/TComponent.php:161
Stack Trace
#0 D:\www\prado\framework\Web\UI\ActiveControls\TActiveFileUpload.php(214): 
TComponent->__set('_errorCode', 2)
#1 D:\www\prado\framework\Web\UI\TControlAdapter.php(111): 
TActiveFileUpload->onPreRender(NULL)
#2 D:\www\prado\framework\Web\UI\TControl.php(1364): 
TControlAdapter->onPreRender(NULL)
#3 D:\www\prado\framework\Web\UI\TControl.php(1372): 
TControl->preRenderRecursive()
#4 D:\www\prado\framework\Web\UI\TControl.php(1372): 
TControl->preRenderRecursive()
#5 D:\www\prado\framework\Web\UI\TControl.php(1372): 
TControl->preRenderRecursive()
#6 D:\www\prado\framework\Web\UI\TControl.php(1372): 
TControl->preRenderRecursive()
#7 D:\www\prado\framework\Web\UI\TControl.php(1372): 
TControl->preRenderRecursive()
#8 D:\www\prado\framework\Web\UI\TControl.php(1372): 
TControl->preRenderRecursive()
#9 D:\www\prado\framework\Web\UI\TControl.php(1372): 
TControl->preRenderRecursive()
#10 D:\www\prado\framework\Web\UI\TControl.php(1372): 
TControl->preRenderRecursive()
#11 D:\www\prado\framework\Web\UI\TPage.php(232): TControl->preRenderRecursive()
#12 D:\www\prado\framework\Web\UI\TPage.php(210): 
TPage->processNormalRequest(Object(THtmlWriter))
#13 D:\www\prado\framework\Web\Services\TPageService.php(568): 
TPage->run(Object(THtmlWriter))
#14 D:\www\prado\framework\Web\Services\TPageService.php(494): 
TPageService->runPage(Object(Profil), Array)
#15 D:\www\prado\framework\TApplication.php(1259): TPageService->run()
#16 D:\www\prado\framework\TApplication.php(420): TApplication->runService()
#17 D:\www\studenti.pub.ro\site\index.php(84): TApplication->run()
#18 {main}

What version of the product are you using? On what operating system?
PRADO - checked out yesterday
SO - Ubuntu Linux 2.6.32-29-server #58-Ubuntu SMP Fri Feb 11 21:06:51 UTC 2011 
x86_64
PHP - Version 5.2.10-2ubuntu6

Please provide any additional information below.
Private member $_errorCode of TFileUpload is used outside scope in 
TActiveFileUpload ( line 214 ). If it was protected instead of private there 
would be no problem.
I couldn't identify the steps to get that line executed, despite the errors 
caught and logged by my application.

Original issue reported on code.google.com by petre.an...@gmail.com on 29 Mar 2011 at 9:19

GoogleCodeExporter commented 9 years ago
patched in r3082

Original comment by ctrlal...@gmail.com on 21 Dec 2011 at 12:55