Hi!
After upgrade from 3.0.2 to 3.1.0.1, the navigation menu is missing:
3.0.2:
3.1.0.1:
3.0.2:
3.1.0.1:
I noticed that the tables:
navigation_menu_item_assignments
,
navigation_menu_item_assignment_settings
,
navigation_menu_items
,
navigation_menu_item_settings
,
navigation_menus
were added after version 3.0.2, and all of them are empty in the database (I’ve tryed to upgrad just to 3.1.0.0 and get the same error)
Output from upgrade command:
[homolog] > sed -i -- 's/installed = On/installed = Off/g' {baseURL}/shared/config.inc.php
[homolog] > php {baseURL}/tools/upgrade.php upgrade
[homolog] < [pre-install]
[homolog] < [load: upgrade.xml]
[homolog] < [version: 3.1.0.1]
[homolog] < [data: dbscripts/xml/upgrade/3.1.0_preupdate_review_assignments.xml (skipped)]
[homolog] < [data: dbscripts/xml/upgrade/3.1.0_preupdate_notes.xml (skipped)]
[homolog] < [data: dbscripts/xml/upgrade/3.1.0_preupdate_payments.xml (skipped)]
[homolog] < [schema: lib/pkp/xml/schema/common.xml]
[homolog] < [schema: lib/pkp/xml/schema/log.xml]
[homolog] < [schema: lib/pkp/xml/schema/announcements.xml]
[homolog] < [schema: lib/pkp/xml/schema/scheduledTasks.xml]
[homolog] < [schema: lib/pkp/xml/schema/temporaryFiles.xml]
[homolog] < [schema: lib/pkp/xml/schema/metadata.xml]
[homolog] < [schema: lib/pkp/xml/schema/reviews.xml]
[homolog] < [schema: lib/pkp/xml/schema/reviewForms.xml]
[homolog] < [schema: lib/pkp/xml/schema/controlledVocab.xml]
[homolog] < [schema: lib/pkp/xml/schema/submissions.xml]
[homolog] < [schema: lib/pkp/xml/schema/submissionFiles.xml]
[homolog] < [schema: lib/pkp/xml/schema/notes.xml]
[homolog] < [schema: lib/pkp/xml/schema/views.xml]
[homolog] < [schema: lib/pkp/xml/schema/genres.xml]
[homolog] < [schema: lib/pkp/xml/schema/tombstone.xml]
[homolog] < [schema: lib/pkp/xml/schema/rolesAndUserGroups.xml]
[homolog] < [schema: lib/pkp/xml/schema/metrics.xml]
[homolog] < [schema: lib/pkp/xml/schema/views.xml]
[homolog] < [schema: lib/pkp/xml/schema/libraryFiles.xml]
[homolog] < [schema: lib/pkp/xml/schema/navigationMenus.xml]
[homolog] < [schema: dbscripts/xml/ojs_schema.xml]
[homolog] < [data: dbscripts/xml/indexes.xml]
[homolog] < [code: Installer Installer::installEmailTemplate]
[homolog] < [data: dbscripts/xml/upgrade/3.1.0_update_a.xml]
[homolog] < [code: Installer Installer::fixGenreIdInFileNames]
Many of this errors, but the files really were not there:
(I assume that at some point they were deleted, but they still have some kind of reference in the database)
[homolog] < PHP Warning: rename(files/journals/20//articles/1705//submission/final/1705-1-15394-1-6-20151201.docx,files/journals/20//articles/1705//submission/final/1705-193-15394-1-6-20151201.docx): Arquivo ou diretório não encontrado in {baseURL}/classes/install/Upgrade.inc.php on line 2490
[homolog] < Unable to move "files/journals/20//articles/1705//submission/final/1705-1-15394-1-6-20151201.docx" to "files/journals/20//articles/1705//submission/final/1705-193-15394-1-6-20151201.docx".
Continuing the output:
[homolog] < [code: Installer Installer::repairKeywordsAndSubjects]
[homolog] < [code: Installer Installer::enabledSitePlugins]
[homolog] < [code: Installer Installer::moveCSSFiles]
[homolog] < PHP Notice: unserialize(): Error at offset 1011 of 1040 bytes in /srv/www/periodicos/releases/8/lib/pkp/classes/db/DAO.inc.php on line 352
[homolog] < [code: Installer Installer::repairSuppFilesFilestage]
More file not fount in repairSuppFilesFilestage:
[homolog] < PHP Warning: rename(files/journals/4//articles/31//submission/31-36-77-1-2-20091030.doc,files/journals/4//articles/31//submission/proof/31-36-77-1-10-20091030.doc): Arquivo ou diretório não encontrado in {baseURL}/classes/install/Upgrade.inc.php on line 2586
[homolog] < Unable to move "files/journals/4//articles/31//submission/31-36-77-1-2-20091030.doc" to "files/journals/4//articles/31//submission/proof/31-36-77-1-10-20091030.doc".
Continuing the output:
[homolog] < [code: Installer Installer::moveReviewerFiles]
[homolog] < <h1>There are no readable files in this directory tree. Are safe mode or open_basedir active?</h1>
[homolog] < ojs2: There are no readable files in this directory tree. Are safe mode or open_basedir active?
[homolog] > sed -i -- 's/installed = Off/installed = On/g' /srv/www/periodicos/shared/config.inc.php
database updated
As you can see [homolog] < [schema: lib/pkp/xml/schema/navigationMenus.xml]
didn’t show any errors.
The upgrade was done direct from git with tag ojs-3_1_0-1