I have initially tried to update the new version OJS 3.3.0.3 from OJS 3.2.1.3 without adding the quoted 'engine' => 'InnoDB', line but failed by command line or by web.
However, by adding the quoted line, I have managed to update by command line but I have not tried through web installation.
I have tried to update another journal from OJS 3.2.1.3 to OJS 3.3.0.3 but failed through the command line adding as well as web based even āengineā => āInnoDBā,
Server Information
Setting Name
Setting Value
OS platform
Linux
PHP version
7.4.15
Apache version
Apache/2.4.6 (CentOS)
Database driver
mysqli
Database server version
5.5.60-MariaDB
Command line update Errors
A submission file was expected but not found at journals/1/articles/1381/submission/1381-1-7929-1-2-20200304.docx.
Removing orphaned review_files entry with review_id ID 1817 and submission_file_id 6048
Removing orphaned review_files entry with review_id ID 1857 and submission_file_id 6048
ERROR: Upgrade failed: DB: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (ejournal3303b.#sql-16c9_4c412d, CONSTRAINT review_files_submission_file_id_foreign FOREIGN KEY (submission_file_id) REFERENCES submission_files (submission_file_id)) (SQL: alter table review_files add constraint review_files_submission_file_id_foreign foreign key (submission_file_id) references submission_files (submission_file_id))
web based installation errors Fatal error : Uncaught Error: Call to a member function getConnection() on null in /home/ojs/feb7/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php:74 Stack trace: #0 /home/ojs/feb7/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php(200): Illuminate\Database\Capsule\Manager::connection() #1 /home/ojs/feb7/lib/pkp/classes/db/DAO.inc.php(65): Illuminate\Database\Capsule\Manager::__callStatic() #2 /home/ojs/feb7/lib/pkp/classes/plugins/PluginSettingsDAO.inc.php(106): DAO->retrieve() #3 /home/ojs/feb7/lib/pkp/classes/plugins/PluginSettingsDAO.inc.php(86): PluginSettingsDAO->getPluginSettings() #4 /home/ojs/feb7/lib/pkp/classes/cache/GenericCache.inc.php(63): PluginSettingsDAO->_cacheMiss() #5 /home/ojs/feb7/lib/pkp/classes/plugins/PluginSettingsDAO.inc.php(57): GenericCache->get() #6 /home/ojs/feb7/lib/pkp/classes/plugins/Plugin.inc.php(463): PluginSettingsDAO->getSetting() #7 /home/ojs/feb7/lib/pkp/classes/plugins/LazyLoadPlugin.inc.php(68): Plugin->getSetting() #8 in /home/ojs/feb7/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php on line 74
SELECT DISTINCT rf.file_id FROM review_files rf LEFT JOIN submission_files sf ON (rf.file_id = sf.file_id) WHERE sf.file_id IS NULL;
9581
9582
9583
9584
9585
Then I removed these rows by;
DELETE FROM review_files WHERE file_id IN (9581, 9582, 9583, 9584, 9585);
The last few lines of php-error.log file are as follows and contain no errors;
[07-Feb-2021 22:07:01 Europe/Istanbul] A submission file was expected but not found at journals/1/articles/1421/submission/proof/1421-16-7997-1-10-20200530.pdf.
[07-Feb-2021 22:07:01 Europe/Istanbul] A submission file was expected but not found at journals/1/articles/1421/submission/proof/1421-16-7998-1-10-20200530.pdf.
[07-Feb-2021 22:09:05 Europe/Istanbul] A submission file was expected but not found at journals/1/articles/1507/submission/review/revision/1507-17-9900-1-15-20210207.docx.
[07-Feb-2021 22:09:49 Europe/Istanbul] Removing orphaned review_files entry with review_id ID 1156 and submission_file_id 8013
[07-Feb-2021 22:09:49 Europe/Istanbul] Removing orphaned review_files entry with review_id ID 1162 and submission_file_id 8048
[07-Feb-2021 22:09:49 Europe/Istanbul] Removing orphaned review_files entry with review_id ID 1167 and submission_file_id 8192
[07-Feb-2021 22:09:49 Europe/Istanbul] Removing orphaned review_files entry with review_id ID 1168 and submission_file_id 8025
[07-Feb-2021 22:09:49 Europe/Istanbul] Removing orphaned review_files entry with review_id ID 1171 and submission_file_id 8325
I try to understand whether the issue is specific to my database, or some other people has experienced the same error eventhough after applying the SQL command above. But I still get the same error during upgrade via command line.
Although not urgent, I am looking for a solution as I am considering to upgrade soon.
Hi @juanito
Thank you for your suggestion. Unfortunately, when I run the SQL query on that page (on a clean database), I get an error message.
SQL query;
SELECT submission_file_id FROM review_round_files LEFT JOIN submission_files USING (submission_file_id) WHERE submission_files.submission_file_id IS NULL
Result:
Error
SQL query:
SELECT submission_file_id FROM review_round_files LEFT JOIN submission_files USING (submission_file_id) WHERE submission_files.submission_file_id IS NULL LIMIT 0, 25
MySQL said:
#1054 - Unknown column āsubmission_file_idā in āfrom clauseā
So, I canāt go further. I will keep on watching the forum and Github topics till I find a solution.
Regards,
Hi @juanito
I wish it would help, but all tables are already InnoDB for a long time.
Nevertheless, I will retry with your suggestion tomorrow and share the result.
Regards,
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.6 (CentOS) Server at journals.iium.edu.my Port 443