2. Web
If you do not have the PHP CLI installed, you can also upgrade by running a
web-based script. To do so:
- Edit config.inc.php and change "installed = On" to "installed = Off"
- Open a web browser to your OJS site; you should be redirected to the
installation and upgrade page
- Select the "Upgrade" link and follow the on-screen instructions
- Re-edit config.inc.php and change "installed = Off" back to
"installed = On"
I am trying again and again but getting the same error :[21-Jun-2018 07:16:58 America/Chicago] PHP Fatal error: Call to a member function getFileId() on null in /home/threatenedtaxa/public_html/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1029". It is during the [code: Installer Installer::provideSupplementaryFilesForReview] part of the upgrade?
For some reason I could not do command-line upgrade but tried web upgrade. Everything seems to work except the html galley images are not showing up. Please help me solve this. I am working on this for a long and could not able to upgrade.
I have tried many times and got stuck at : PHP Fatal error: Call to a member function getFileId() on null in /home/threatenedtaxa/public_html/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1029". It is during the [code: Installer].
I am trying via localhost and now it seems everything is upgraded and I found a way to correct the html galley images. Now I have only the following 2 errors to rectify. Could you please let me know how to resolve these two?
When I tried to login I am getting "DB Error: Unknown column ‘Array’ in 'field list’” but when I refresh it works.
System Information still says : Current version: 2.4.8.1 (September 22, 2016 - 05:48 PM)
People here didn’t like my prevoius upgrade from 2.4.7.1 to 3.0.1, and I’m trying again now to 3.1.1.2. This time I’m getting:
PHP Fatal error: Call to a member function getFileId() on null in /ojs_temp/rc-3.1.1/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1029
At the [code: Installer Installer::provideSupplementaryFilesForReview] step. The full output of the upgrade is here:
Hi everybody!
We also have the problem "DB Error: Unknown column ‘Array’ in ‘field list’ ". It happens after updating from OJS 3.1.0.1 to 3.1.1.2.
Also we note that it only happens with no admin users. Login with the admin user is working fine.
PHP error log is not clarifying, it shows exactly the same error than browser.
Hi @asmecher
Should I post this topic on a new thread? It looks like it is a little bug that many people is experiencing. If user reload the page the error goes away… at least until he/she logs in again.
Can you try to get a stack trace for this and post the full message? Turn on show_stacktrace in config.inc.php, trigger the error, and you should find the message in the browser and/or the log.
Regards,
Alec Smecher
Public Knowledge Project Team
Is this a stock copy of OJS 3.1.1-0, or are there some modifications or third-party changes to it? For example, I see the same message is appearing with the multilingual author names change discussed here: Translation of the author's name - #45 by vale
Regards,
Alec Smecher
Public Knowledge Project Team
I’ve tried changing all permissions of folders and files inside my rc-3.1.1_files folder to 774 and the ownership to ojs:www-data, but got the same error.
Hi everybody!
Also there is a similar problem when a user inteed to change his password. When they click on the hyperlink that arrives by email, OJS crashes and shows this up:
DB Error: Unknown column 'Array' in 'field list'
Stack Trace:
File: /***/ojs/lib/pkp/classes/user/PKPUserDAO.inc.php line 462
Function: DAO->update("UPDATE users SET username = ?, password = ?, salut...", Array(23))
File: /***/ojs/lib/pkp/pages/login/LoginHandler.inc.php line 241
Function: PKPUserDAO->updateObject(Object(User))
File: /***/ojs/lib/pkp/classes/core/PKPRouter.inc.php line 372
Function: LoginHandler->resetPassword(Array(1), Object(Request))
File: /***/ojs/lib/pkp/classes/core/PKPPageRouter.inc.php line 233
Function: PKPRouter->_authorizeInitializeAndCallRequest(Array(2), Object(Request), Array(1), False)
File: /***/ojs/lib/pkp/classes/core/Dispatcher.inc.php line 134
Function: PKPPageRouter->route(Object(Request))
File: /***/ojs/lib/pkp/classes/core/PKPApplication.inc.php line 247
Function: Dispatcher->dispatch(Object(Request))
File: /***/ojs/index.php line 68
Function: PKPApplication->execute()
Please @asmecher could you guide us to overcome this problem?