Our CrashFix server is now back online and working fine. We do however have another problem.
While the server has been down we have been collecting crash reports by email.
We now want to import these crash reports to the new server but when CrashFix tries to process the zip file the process crashes with the following call stack:-
2015/09/24 13:23:27 [info] [application] Finished checking for new crash report files ready for processing.
2015/09/24 13:23:27 [error] [exception.CException] exception 'CException' with message 'Unable to upload the file "0b74115586b64f50bf197075e1744087.zip" because of an unrecognized error.' in /var/www/html/crashfix/protected/framework/validators/CFileValidator.php:215
Stack trace:
~~~~
2015/09/24 13:23:27 [info] [application] Finished checking for new crash report files ready for processing.
2015/09/24 13:23:27 [error] [exception.CException] exception 'CException' with message 'Unable to upload the file "0b74115586b64f50bf197075e1744087.zip" because of an unrecognized error.' in /var/www/html/crashfix/protected/framework/validators/CFileValidator.php:215
Stack trace:
0 /var/www/html/crashfix/protected/framework/validators/CFileValidator.php(181): CFileValidator->validateFile(Object(CrashReport), 'fileAttachment', Object(CUploadedFile))
1 /var/www/html/crashfix/protected/framework/validators/CValidator.php(201): CFileValidator->validateAttribute(Object(CrashReport), 'fileAttachment')
2 /var/www/html/crashfix/protected/framework/base/CModel.php(159): CValidator->validate(Object(CrashReport), NULL)
3 /var/www/html/crashfix/protected/framework/db/ar/CActiveRecord.php(808): CModel->validate(NULL)
4 /var/www/html/crashfix/protected/components/BatchImporter.php(215): CActiveRecord->save()
5 /var/www/html/crashfix/protected/components/BatchImporter.php(157): BatchImporter->importCrashReports('/var/www/html/c...', '1', '7')
6 /var/www/html/crashfix/protected/components/BatchImporter.php(113): BatchImporter->importProjectFiles('/var/www/html/c...', 'Catalog', 1)
7 /var/www/html/crashfix/protected/components/BatchImporter.php(69): BatchImporter->importFilesOf('/var/www/html/c...', 1)
8 /var/www/html/crashfix/protected/commands/PollCommand.php(45): BatchImporter->importFiles('/var/www/html/c...', 0, 0)
9 /var/www/html/crashfix/protected/framework/console/CConsoleCommandRunner.php(71): PollCommand->run(Array)
10 /var/www/html/crashfix/protected/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run(Array)
11 /var/www/html/crashfix/protected/framework/base/CApplication.php(184): CConsoleApplication->processRequest()
12 /var/www/html/crashfix/protected/framework/yiic.php(33): CApplication->run()
13 /var/www/html/crashfix/protected/yiic.php(7): require_once('/var/www/html/c...')
14 {main}
Any ideas what could be causing this?
Run in same issue.
Changed then CUploadedFile constructor in "..\crashfix\protected\components\BatchImporter.php" on line 209 and line 274.
from:
to:
(Replaced '' by UPLOAD_ERR_OK)
hth