Upgrading from 3.1.2.4 to 3.2.0 to 3.2.0-1 errors

while upgrading via console, get some errors:

version of php:
PHP 7.3.14-5+0~20200202.52+debian9~1.gbpa71879 (cli) (built: Feb 2 2020 07:56:57) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.14, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.14-5+0~20200202.52+debian9~1.gbpa71879, Copyright (c) 1999-2018, by Zend Technologies

PHP Warning: Use of undefined constant SCHEMA_PUBLICATION - assumed ‘SCHEMA_PUBLICATION’ (this will throw an Error in a future version of PHP) in /web/sites/uars4/lib/pkp/includes/functions.inc.php on line 223
PHP Warning: Use of undefined constant SCHEMA_PUBLICATION - assumed ‘SCHEMA_PUBLICATION’ (this will throw an Error in a future version of PHP) in /web/sites/uars4/lib/pkp/includes/functions.inc.php on line 223
PHP Warning: Creating default object from empty value in /web/sites/uars4/classes/plugins/PubObjectsExportPlugin.inc.php on line 62

PHP Notice: Array to string conversion in /web/sites/uars4/lib/pkp/classes/install/Installer.inc.php on line 828

No other errors was present. i see all message log about upgrading and string that
“Successfully upgraded to version 3.2.0.0”

After that i clear ALL caches, using “clear data caches” and “clear template cache”

When i try to access “Site Settings” i receive nothing
Piccy.info - Free Image Hosting

and a little bit errors in log file

2020/03/19 18:34:45 [error] 17274#17274: *39688 FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream, client: 127.0.0.1, server: uars.info, request: “GET /code.php HTTP/1.0”, upstream: “fastcgi://unix:/run/php/php7.3-fpm.sock:”, host: “uars.info”
2020/03/19 18:34:46 [error] 17274#17274: *39691 FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream, client: 127.0.0.1, server: uars.info, request: “GET /code.php HTTP/1.0”, upstream: “fastcgi://unix:/run/php/php7.3-fpm.sock:”, host: “uars.info”
2020/03/19 18:34:59 [error] 17274#17274: *39701 FastCGI sent in stderr: “PHP message: PHP Warning: Declaration of PKPSiteSettingsForm::execute() should be compatible with Form::execute(…$functionArgs) in /web/sites/uars4/lib/pkp/classes/admin/form/PKPSiteSettingsForm.inc.php on line 23PHP message: ojs2: Unrecognized DAO SiteSettingsDAO!” while reading response header from upstream, client: 192.168.1.59, server: uars.info, request: “GET /index.php/index/$$$call$$$/tab/settings/admin-settings-tab/show-tab?tab=siteSetup&_=1584635698777 HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.3-fpm.sock:”, host: “uars.info”, referrer: “https://uars.info/index.php/index/admin/settings

Also All DOI was dissapeared.

image
image

rollbacked to 3.1.2.4

tried another way to upgrade:

PHP Warning: Use of undefined constant SCHEMA_PUBLICATION - assumed ‘SCHEMA_PUBLICATION’ (this will throw an Error in a future version of PHP) in /web/sites/uars5/lib/pkp/includes/functions.inc.php on line 223
PHP Warning: Use of undefined constant SCHEMA_PUBLICATION - assumed ‘SCHEMA_PUBLICATION’ (this will throw an Error in a future version of PHP) in /web/sites/uars5/lib/pkp/includes/functions.inc.php on line 223
PHP Warning: Creating default object from empty value in /web/sites/uars5/classes/plugins/PubObjectsExportPlugin.inc.php on line 62
[pre-install]
[load: upgrade.xml]
[version: 3.2.0.0]

[code: Installer Installer::checkPhpVersion]

[code: Installer Installer::migrateSubmissionCoverImages]
[data: dbscripts/xml/upgrade/3.2.0_preupdate_email_templates.xml]
[data: dbscripts/xml/upgrade/3.2.0_preupdate_versioning_articleGalleySettings.xml (skipped)]
[data: dbscripts/xml/upgrade/3.2.0_preupdate_versioning.xml]
[data: dbscripts/xml/upgrade/3.2.0_preupdate_last_activity.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/categories.xml]
[schema: lib/pkp/xml/schema/notes.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]
WARNING: The NavigationMenu (ContextId: 1, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
WARNING: The NavigationMenu (ContextId: 1, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
WARNING: The NavigationMenu (ContextId: 2, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
WARNING: The NavigationMenu (ContextId: 2, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
WARNING: The NavigationMenu (ContextId: 0, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.

[code: Installer Installer::migrateStaticPagesToNavigationMenuItems]

[code: Installer Installer::migrateUserAndAuthorNames (skipped)]
[data: dbscripts/xml/upgrade/3.2.0_stylesheet.xml]
[data: dbscripts/xml/upgrade/3.2.0_archiving_settings.xml]
[data: dbscripts/xml/upgrade/3.2.0_update.xml]
[data: dbscripts/xml/upgrade/3.2.0_navigation_menu_items_locale_change.xml]

[code: Installer Installer::migrateSiteLocales]

[code: Installer Installer::migrateSidebarBlocks]
PHP Notice: Array to string conversion in /web/sites/uars5/lib/pkp/classes/install/Installer.inc.php on line 828

[code: Installer Installer::migrateSiteStylesheet]

[code: Installer Installer::migrateMetadataSettings]

[code: Installer Installer::createLicenseTerms]

[code: Installer Installer::installEmailTemplate]

[code: Installer Installer::changeUserRolesAndStageAssignmentsForStagePermitSubmissionEdit]
[data: dbscripts/xml/upgrade/3.2.0_versioning.xml]
[data: dbscripts/xml/upgrade/3.2.0_versioning_submissionCategories.xml]
[data: dbscripts/xml/upgrade/3.2.0_last_activity.xml]
[data: dbscripts/xml/upgrade/3.2.0_url_path.xml]

[code: Installer Installer::setStatsEmailSettings]

[code: Installer Installer::fixLibraryFiles]

[code: Installer Installer::installEmailTemplate]
[note: docs/release-notes/README-3.2.0]

[code: Installer Installer::addPluginVersions]
[post-install]

Release Notes

OJS 3.2.0 Release Notes
CVS tag: ojs-3_2_0-0

Release date: February 28, 2020

New Features

.
.
.
Successfully upgraded to version 3.2.0.0

now some bugs when i try to fill info not in english. no availible block’s to enter data
image

and in english version it works
image

Sidebar is not working
image
image

I couldn’t watch another language data in submission except LANGUAGE SITE VERSION
image

Hi @redukr,

It might be better to break these issues up into separate posts so that others encountering similar issues don’t get lost. But here are two quick responses:

Server Information

Setting Name Setting Value
OS platform Linux
PHP version 7.3.13-1+ubuntu18.04.1+deb.sury.org+1
Apache version nginx/1.14.2
Database driver mysqli
Database server version 10.1.41-MariaDB-0+deb9u1

Thank’s a lot for your answer.

  1. i tried 3 browsers in incognito mode. In all browsers (opera via VPN, firefox, mozilla) same problem. Caches are deleted in all browsers, and all what i try - i tried over the private mode

  2. about sidebar - i don’t understand how to use git. i amnot stupid, but my mind have limits in which using GIT - more than my abilities.

Hi @redukr,

  1. Is there anything on your browser’s error console?
  2. We’ll be releasing a new build of OJS with this fix included; the easiest fix is probably to wait a few days and then update the code. (No database update required for builds – just the code.)

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher, I want to express to you and your team a huge thank you for the work you do, and especially for not ignoring all the silly questions from users.

  1. no errors were found in error console. But when i turn debug in OJS, - i receive a lot of troubles.
    1.a. also i discovered the next:

if in 3.1.2.4 i run upgrade script from command-promt in the second time, i receive succecfull message.
if in 3.2.0 - i receive a lot of errors like:
ERROR: Upgrade failed: DB: Duplicate entry ‘submissionAgency-1048588-1225’ for key ‘controlled_vocab_symbolic’

  1. Thanks a lot for the patch :slight_smile:

Hi @redukr,

  1. The debug option, when turned on, will dump out all SQL queries to the browser – so yes, it’ll cause a lot of trouble. But I’m wondering about your web browser’s error console, not your PHP log or anything on the server. Did you check that?

  2. I thought you were able to work around these? I thought you got a successful upgrade message.

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher After the third attempt of upgrading :slight_smile:

only one error in error-log. but repetable error )))

2020/03/20 20:44:29 [error] 12471#12471: *51 FastCGI sent in stderr: "PHP message: PHP Notice:  Deprecated call without request object. in /web/sites/uars4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 954PHP message: PHP Notice:  Deprecated call without request object. in /web/sites/uars4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 954PHP message: PHP Notice:  Deprecated call without request object. in /web/sites/uars4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 954PHP message: PHP Notice:  Deprecated call without request object. in /web/sites/uars4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 954PHP message: PHP Notice:  Deprecated call without request object. in /web/sites/uars4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 954PHP message: PHP Notice:  Deprecated call without request object. in /web/sites/uars4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 954PHP message: PHP Notice:  Deprecated call without request object. in /web/sites/uars4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 954PHP message: PHP Notice:  Deprecated call without request object. in /web/sites/uars4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 954PHP message: PHP Notice:  Deprecated call without request object. in /web/sites/uars4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 954PHP message: PHP Notice:  Deprecated call without request object. in /web/sites/uars4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 954PHP message: PHP Notice:  Deprecated call without request object. in /web/sites/uars4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 954PHP message: PHP Notice:  Deprecated call without request object. in /web/sites/uars4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 954PHP message: PHP Notice:  Deprecated call without request object. in /web/sites/uars4/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 954PHP message: PHP Notice:  Deprecated cal

All caches are cleared via settings in website. php-fpm restarted before tests. nginx restarted before tests. google chrome in private mode.

by usage:

  1. very long time to load top bar: from 10to60 seconds
    image

  2. problems with TINYMCE editor. to change some settings, need to change language of website.

  3. for example page with settings for crossref was loading and loading
    image

Server Information

Setting Name Setting Value
OS platform Linux
PHP version 7.3.13-1+ubuntu18.04.1+deb.sury.org+1
Apache version nginx/1.14.2
Database driver mysqli
Database server version 10.1.41-MariaDB-0+deb9u1

used software:
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster

nginx version: nginx/1.14.2

PHP 7.3.15-4+0~20200224.55+debian10~1.gbpbea824 (cli) (built: Feb 24 2020 18:37:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.15, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.15-4+0~20200224.55+debian10~1.gbpbea824, Copyright (c) 1999-2018, by Zend Technologies

@asmecher successful upgrade to 3.2.0-1. But

  1. still present problem with settings in admin-panel.
    but now i can see errors:
    image
    1.a. tryied to use from this comment files: Cannot Display Sidebar in ojs 3.2.0.0 · Issue #5571 · pkp/pkp-lib · GitHub

no result.

  1. still no sidebar at site

when i check item’s in block of sidebar and click “save” - it show’s loading icon and nothing more
and errors to build.js

image

at fully new installation. Sidebar is working… so… i will try ti find what is the problem…

@asmecher i discovered new information:

  1. i install new\clear installation of OJS 3.2.0-1
  2. copy from that install folders “styles” and “js” to my 3.1.2.4->3.2.0->3.2.0-1 folder.
  3. recreate custom blocks
  4. reenable all block’s in language settings for UI\FORMS\SUBMISSIONS
    image
  5. clear all caches

Finaly i receive installation with working sidebar
image

and working settings for journal settings
image

for now i have 3 installs.
working 3.1.2.4
working 3.2.0-1
working fresh install 3.2.0-1
not working 3.2.0