Upgrade from 2.4.8 to 3.1.1.0


#17

Thank you. Will wait for the new release.


#18

Hi Alec,

I tried upgrading OJS 3.1.1-1. I got a blank page while upgrading and after that I could not resume the connection.

I checked the log error and find the below errors.

[Wed Jun 06 17:01:09.656460 2018] [ssl:warn] [pid 892] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)

[Wed Jun 06 17:01:09.656714 2018] [ssl:warn] [pid 892] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name

[Wed Jun 06 17:01:09.815955 2018] [ssl:warn] [pid 893] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)

[Wed Jun 06 17:01:09.815985 2018] [ssl:warn] [pid 893] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name

[Wed Jun 06 17:01:09.827011 2018] [lbmethod_heartbeat:notice] [pid 893] AH02282: No slotmem from mod_heartmonitor

[Wed Jun 06 17:01:09.993971 2018] [mpm_prefork:notice] [pid 893] AH00163: Apache/2.4.33 (Unix) OpenSSL/1.0.2o PHP/5.6.36 mod_perl/2.0.8-dev Perl/v5.16.3 configured – resuming normal operations

[Wed Jun 06 17:01:09.994027 2018] [core:notice] [pid 893] AH00094: Command line: '/Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -D SSL -D PHP’

thanks and regards

Latha G. Ravikumar


#19

Hi @latha_ojs,

That log looks like it might be your Apache log, not your PHP log; sometimes they are different files, depending on your server configuration.

Regards,
Alec Smecher
Public Knowledge Project Team


#20

Today I tried via command prompt but don’t know whether the installation is over.

threatenedtaxa@threatenedtaxa.org [~]# php /home/threatenedtaxa/public_html/tools/upgrade.php upgrade

[pre-install]

[load: upgrade.xml]

[version: 3.1.1.1]

[code: Installer Installer::checkPhpVersion]

[code: Installer Installer::syncSeriesAssocType]

[data: dbscripts/xml/upgrade/2.4.0_preupdate_usageStatistics.xml (skipped)]

[data: dbscripts/xml/upgrade/2.4.0_preupdate_usageStatistics2.xml (skipped)]

[code: Installer Installer::removeReviewEntries]

[data: dbscripts/xml/upgrade/3.0.0_preupdate.xml]

[data: dbscripts/xml/upgrade/3.0.0_adaptTimedViews.xml (skipped)]

[data: dbscripts/xml/upgrade/3.0.0_adaptReferrals.xml]

[data: dbscripts/xml/upgrade/3.0.0_adaptBooksForReview.xml]

[data: dbscripts/xml/upgrade/remove_timed_views_bots.xml (skipped)]

[data: dbscripts/xml/upgrade/3.0.0_preupdate_commentsToEditor.xml]

[data: dbscripts/xml/upgrade/3.1.0_preupdate_review_assignments.xml]

[data: dbscripts/xml/upgrade/3.1.0_preupdate_notes.xml]

[data: dbscripts/xml/upgrade/3.1.0_preupdate_payments.xml]

[data: dbscripts/xml/upgrade/3.1.1_preupdate_citations.xml]

[schema: lib/pkp/xml/schema/common.xml]

[schema: lib/pkp/xml/schema/log.xml]

[schema: lib/pkp/xml/schema/announcements.xml]

[schema: lib/pkp/xml/schema/scheduledTasks.xml]

[schema: lib/pkp/xml/schema/temporaryFiles.xml]

[schema: lib/pkp/xml/schema/metadata.xml]

[schema: lib/pkp/xml/schema/reviews.xml]

[schema: lib/pkp/xml/schema/reviewForms.xml]

[schema: lib/pkp/xml/schema/controlledVocab.xml]

[schema: lib/pkp/xml/schema/submissions.xml]

[schema: lib/pkp/xml/schema/submissionFiles.xml]

[schema: lib/pkp/xml/schema/notes.xml]

[schema: lib/pkp/xml/schema/views.xml]

[schema: lib/pkp/xml/schema/genres.xml]

[schema: lib/pkp/xml/schema/tombstone.xml]

[schema: lib/pkp/xml/schema/rolesAndUserGroups.xml]

[schema: lib/pkp/xml/schema/metrics.xml]

[schema: lib/pkp/xml/schema/views.xml]

[schema: lib/pkp/xml/schema/libraryFiles.xml]

[schema: lib/pkp/xml/schema/navigationMenus.xml]

[schema: dbscripts/xml/ojs_schema.xml]

[data: dbscripts/xml/indexes.xml]

[code: Installer Installer::installDefaultNavigationMenus]

[code: Installer Installer::migrateStaticPagesToNavigationMenuItems]

[code: Installer Installer::migrateSRLocale]

[code: Installer Installer::concatenateIntoAbout]

[code: Installer Installer::concatenateIntoMasthead]

[code: Installer Installer::migrateCounterPluginUsageStatistics (skipped)]

[code: Installer Installer::migrateTimedViewsUsageStatistics (skipped)]

[code: Installer Installer::migrateDefaultUsageStatistics (skipped)]

[data: dbscripts/xml/upgrade/2.4.0_postUsageStatsMigration.xml (skipped)]

[data: dbscripts/xml/upgrade/2.4.0_postUsageStatsMigration2.xml (skipped)]

[data: dbscripts/xml/upgrade/2.4.0_postCounterMigration.xml (skipped)]

[data: dbscripts/xml/upgrade/2.4.0_postTimedViewsMigration.xml (skipped)]

[data: dbscripts/xml/upgrade/3.0.0_change_assoc_type.xml]

[data: dbscripts/xml/upgrade/3.0.0_change_assoc_type_metrics.xml]

[data: dbscripts/xml/upgrade/3.0.0_settings.xml]

[code: Installer Installer::installDefaultGenres]

[code: Installer Installer::migrateArticleMetadata]

[data: dbscripts/xml/upgrade/3.0.0_update.xml]

[code: Installer Installer::clearDataCache]

[code: Installer Installer::migrateUserRoles]

[code: Installer Installer::fixReviewForms]

[code: Installer Installer::htmlifyEmailTemplates]

[note: docs/release-notes/README-BEACON]

[code: Installer Installer::installEmailTemplate]

[code: Installer Installer::installEmailTemplate]

[code: Installer Installer::installEmailTemplate]

[code: Installer Installer::installEmailTemplate]

[code: Installer Installer::installEmailTemplate]

[code: Installer Installer::installEmailTemplate]

[data: dbscripts/xml/upgrade/3.0.0_scheduledTasks.xml]

[code: Installer Installer::localizeCustomBlockSettings]

[code: Installer Installer::convertEditorDecisionNotes]

[code: Installer Installer::convertQueries]

[code: Installer Installer::migrateFiles]

[code: Installer Installer::convertSupplementaryFiles]

[code: Installer Installer::provideSupplementaryFilesForReview]

threatenedtaxa@threatenedtaxa.org [~]#


#21

Hi @latha_ojs,

I’d suggest checking your PHP error log to see if something is recorded there. I don’t see the “upgrade succeeded” message, so the upgrade probably isn’t complete.

Regards,
Alec Smecher
Public Knowledge Project Team


#22

Hi,

Here is the php error log. I can able to view the files but html galley image isn’t working. Also the version still says 2.4.8.

Thanks for all your help

with regards

Latha


#23

Hi @latha_ojs,

The log didn’t come through with your response – I believe the forum we use strips attachments.

Regards,
Alec Smecher
Public Knowledge Project Team


#24

Sorry!. I couldn’t send the attachment. Here is the error where the process got stuck.

[15-Jun-2018 06:28:31 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


#25

Hi @latha_ojs,

There have been several changes to the supplementary file migration process since OJS 3.1.0-0 was released – can you try upgrading to the latest release (currently 3.1.1-2) instead?

Regards,
Alec Smecher
Public Knowledge Project Team


#26

Hi,

Today I have tried to upgrade 3.1.1-2 again but got the same error.

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

Kindly help me resolve the issue and upgrade,

Thanks in advance

regards
Latha


#27

Hi @latha_ojs,

Is this still during the [code: Installer Installer::provideSupplementaryFilesForReview] part of the upgrade?

Regards,
Alec Smecher
Public Knowledge Project Team


#28

Hi Alec,

I tried upgrading again with your recent version 3.1.1-2 but getting the same error. It stopped abruptly and getting the following error:

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

Attached is the error log.


#29

I have tried 3.1.1-2 June release only


#30

Hi @latha_ojs,

See my previous question about this: Upgrade from 2.4.8 to 3.1.1.0

It sounds like you attached the log to your reply, but the forum software strips off attachments.

Regards,
Alec Smecher
Public Knowledge Project Team


#31

I don’t think “provideSupplementaryFilesForReview” is part of the process this time.

Here is the shortened error log file for you to check. I have removed the same type of errors so that i can send it to you. regards latha

[21-Jun-2018 07:08:38 America/Chicago] PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/threatenedtaxa/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386

[21-Jun-2018 07:08:39 America/Chicago] PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/threatenedtaxa/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386

[21-Jun-2018 07:08:39 America/Chicago] PHP Strict Standards: Declaration of InstallHandler::validate() should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in /home/threatenedtaxa/public_html/lib/pkp/pages/install/InstallHandler.inc.php on line 118

[21-Jun-2018 07:08:39 America/Chicago] PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/threatenedtaxa/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386

[21-Jun-2018 07:08:44 America/Chicago] PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/threatenedtaxa/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386

[21-Jun-2018 07:09:03 America/Chicago] PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/threatenedtaxa/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386

[21-Jun-2018 07:09:03 America/Chicago] PHP Strict Standards: Declaration of InstallHandler::validate() should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in /home/threatenedtaxa/public_html/lib/pkp/pages/install/InstallHandler.inc.php on line 118

[21-Jun-2018 07:09:03 America/Chicago] PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/threatenedtaxa/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386

[21-Jun-2018 07:09:04 America/Chicago] PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/threatenedtaxa/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386

[21-Jun-2018 07:09:17 America/Chicago] PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/threatenedtaxa/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386

[21-Jun-2018 07:09:17 America/Chicago] PHP Strict Standards: Declaration of InstallHandler::validate() should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in /home/threatenedtaxa/public_html/lib/pkp/pages/install/InstallHandler.inc.php on line 118

[21-Jun-2018 07:09:23 America/Chicago] WARNING: Unable to find a match for “2656-7888-1-RV.docx” in “/home/threatenedtaxa/files-ojs//journals/1//articles/2656/”. Skipping this file.

[21-Jun-2018 07:09:23 America/Chicago] WARNING: Unable to find a match for “2878-9199-1-RV.doc” in “/home/threatenedtaxa/files-ojs//journals/1//articles/2878/”. Skipping this file.

[21-Jun-2018 07:09:23 America/Chicago] WARNING: Unable to find a match for “2483-6870-1-RV.docx” in “/home/threatenedtaxa/files-ojs//journals/1//articles/2483/”. Skipping this file.

[21-Jun-2018 07:09:23 America/Chicago] WARNING: Unable to find a match for “2514-7019-1-RV.docx” in “/home/threatenedtaxa/files-ojs//journals/1//articles/2514/”. Skipping this file.

[21-Jun-2018 07:09:23 America/Chicago] WARNING: Unable to find a match for “1771-3628-1-RV.docx” in “/home/threatenedtaxa/files-ojs//journals/1//articles/1771/”. Skipping this file.

[21-Jun-2018 07:09:23 America/Chicago] WARNING: Unable to find a match for “2516-7025-1-RV.docx” in “/home/threatenedtaxa/files-ojs//journals/1//articles/2516/”. Skipping this file.

[21-Jun-2018 07:09:23 America/Chicago] WARNING: Unable to find a match for “2520-7037-1-RV.docx” in “/home/threatenedtaxa/files-ojs//journals/1//articles/2520/”. Skipping this file.

[21-Jun-2018 07:09:23 America/Chicago] WARNING: Unable to find a match for “2521-7041-1-RV.docx” in “/home/threatenedtaxa/files-ojs//journals/1//articles/2521/”. Skipping this file.

[21-Jun-2018 07:09:23 America/Chicago] WARNING: Unable to find a match for “2509-6998-1-RV.jpg” in “/home/threatenedtaxa/files-ojs//journals/1//articles/2509/”. Skipping this file.

[21-Jun-2018 07:15:44 America/Chicago] PHP Warning: copy(/home/threatenedtaxa/files-ojs//journals/1//articles/1626/attachment/1626-1-3124-1-13-20141027.zip): failed to open stream: No such file or directory in /home/threatenedtaxa/public_html/lib/pkp/classes/file/FileManager.inc.php on line 159

[21-Jun-2018 07:15:44 America/Chicago] PHP Warning: assert(): Assertion failed in /home/threatenedtaxa/public_html/lib/pkp/classes/submission/SubmissionFileDAODelegate.inc.php on line 123

[21-Jun-2018 07:16:58 America/Chicago] PHP Warning: copy(/home/threatenedtaxa/files-ojs//journals/1//articles/1709/submission/proof/1709-12-3409-1-10-20141222.docx): failed to open stream: No such file or directory in /home/threatenedtaxa/public_html/lib/pkp/classes/file/FileManager.inc.php on line 159

[21-Jun-2018 07:16:58 America/Chicago] PHP Warning: assert(): Assertion failed in /home/threatenedtaxa/public_html/lib/pkp/classes/submission/SubmissionFileDAODelegate.inc.php on line 112

[21-Jun-2018 07:16:58 America/Chicago] PHP Warning: copy(/home/threatenedtaxa/files-ojs//journals/1//articles/1709/submission/review/1709-12–1-4-20141222.docx): failed to open stream: No such file or directory in /home/threatenedtaxa/public_html/lib/pkp/classes/file/FileManager.inc.php on line 159

[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


#32

Hi @latha_ojs,

Are you using the command-line upgrade process? It should list upgrade steps as it performs them. In which step of the upgrade process does the message appear?

Regards,
Alec Smecher
Public Knowledge Project Team


#33

I used web based script


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"

#34

Hi @latha_ojs,

Is it an option to use the command-line tool? It provides more debugging information.

Regards,
Alec Smecher
Public Knowledge Project Team


#35

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?


#36

Hi @latha_ojs,

Can you post the full output of the command-line upgrade process?

Regards,
Alec Smecher
Public Knowledge Project Team