PKP Bugzilla – Bug 5843
PHP fatal error on Supplementary file upload
Last modified: 2011-07-21 12:00:02 PDT
I'm getting a blank page and the following errors on trying to upload a supplementary file. The file does not upload. [Mon Aug 30 15:10:29 2010] [error] [client 127.0.0.1] ojs2 has produced an error\n Message: WARNING: Missing argument 1 for SubmitHandler::submitUploadSuppFile(), called in /Users/jmacgreg/git/ojs/pages/author/SubmitHandler.inc.php on line 148 and defined\n In file: /Users/jmacgreg/git/ojs/pages/author/SubmitHandler.inc.php\n At line: 205\n Stacktrace: \n Server info:\n OS: Darwin\n PHP Version: 5.3.1\n Apache Version: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 PHP/5.3.1 mod_fastcgi/2.4.2\n DB Driver: mysql\n DB server version: 5.1.38, referer: http://git/ojs/index.php/demo/author/submit/4?articleId=17 [Mon Aug 30 15:10:29 2010] [error] [client 127.0.0.1] ojs2 has produced an error\n Message: WARNING: Missing argument 2 for SubmitHandler::submitUploadSuppFile(), called in /Users/jmacgreg/git/ojs/pages/author/SubmitHandler.inc.php on line 148 and defined\n In file: /Users/jmacgreg/git/ojs/pages/author/SubmitHandler.inc.php\n At line: 205\n Stacktrace: \n Server info:\n OS: Darwin\n PHP Version: 5.3.1\n Apache Version: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 PHP/5.3.1 mod_fastcgi/2.4.2\n DB Driver: mysql\n DB server version: 5.1.38, referer: http://git/ojs/index.php/demo/author/submit/4?articleId=17 [Mon Aug 30 15:10:29 2010] [error] [client 127.0.0.1] NOTICE: Undefined variable: request (/Users/jmacgreg/git/ojs/pages/author/SubmitHandler.inc.php:206), referer: http://git/ojs/index.php/demo/author/submit/4?articleId=17 [Mon Aug 30 15:10:29 2010] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function getUserVar() on a non-object in /Users/jmacgreg/git/ojs/pages/author/SubmitHandler.inc.php on line 206, referer: http://git/ojs/index.php/demo/author/submit/4?articleId=17
Created attachment 3209 [details] Patch against OJS pre-2.3.3
Also fixed for OCS: http://github.com/pkp/ocs/commit/0dd32d390726b091b88974debd53496a95b86616
Hi Alec, this still seems to be borked in OCS. I'm getting the following errors now when trying to upload a supplementary file (after recently pulling and running the upgrade script): [Tue Aug 31 11:56:50 2010] [error] [client 127.0.0.1] NOTICE: Undefined variable: request (/Users/jmacgreg/git/ocs/pages/author/SubmitHandler.inc.php:166), referer: http://git/ocs/index.php/one/schedone/author/submit/4?paperId=8 [Tue Aug 31 11:56:50 2010] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function getUserVar() on a non-object in /Users/jmacgreg/git/ocs/pages/author/SubmitHandler.inc.php on line 234, referer: http://git/ocs/index.php/one/schedone/author/submit/4?paperId=8
Gah, this is what happens when you back-port things out of sequence. Try again?
Fixed, thanks!
Created attachment 3601 [details] Patch against OCS 2.3.3-1
Supplementary files upload problem https://github.com/pkp/ocs/commit/6f93087d7ad8ee93d0f137877b0df1515cf89396