Hi! I’m trying to upgrade my platform of OJS from 2.4.6 to 2.4.8. I’m doing this before to upgrade to the last version of OJS. When i’m doing the php tools/upgrade upgrade i have this problem
Message: WARNING: Declaration of TimedViewReportForm::execute(&$request) should be compatible with Form::execute($object = NULL)
In file: /var/www/ojs/plugins/reports/timedView/TimedViewReportForm.inc.php
At line: 14
Stacktrace:
Server info:
OS: Linux
PHP Version: 7.2.17-0ubuntu0.18.04.1
Apache Version: N/A
DB Driver: mysqli
DB server version: 5.7.24-0ubuntu0.18.04.1
ojs2 has produced an error
Message: WARNING: Declaration of CustomThemePlugin::manage($verb) should be compatible with PKPPlugin::manage($verb, $args, &$message, &$messageParams, $request = NULL)
In file: /var/www/ojs/plugins/themes/custom/CustomThemePlugin.inc.php
At line: 18
Stacktrace:
Server info:
OS: Linux
PHP Version: 7.2.17-0ubuntu0.18.04.1
Apache Version: N/A
DB Driver: mysqli
DB server version: 5.7.24-0ubuntu0.18.04.1
[pre-install]
[load: upgrade.xml]
[version: 2.4.8.5]
[schema: lib/pkp/xml/schema/signoff.xml]
ojs2 has produced an error
Message: WARNING: Declaration of ADODB2_mysql::_CreateSuffix($fname, $ftype, $fnotnull, $fdefault, $fautoinc, $fconstraint, $funsigned) should be compatible with ADODB_DataDict::_CreateSuffix($fname, $ftype, $fnotnull, $fdefault, $fautoinc, $fconstraint)
In file: /var/www/ojs/lib/pkp/lib/adodb/datadict/datadict-mysql.inc.php
At line: 232
Stacktrace:
Server info:
OS: Linux
PHP Version: 7.2.17-0ubuntu0.18.04.1
Apache Version: N/A
DB Driver: mysqli
DB server version: 5.7.24-0ubuntu0.18.04.1
[schema: lib/pkp/xml/schema/common.xml]
[schema: lib/pkp/xml/schema/groups.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/comments.xml]
[schema: lib/pkp/xml/schema/notes.xml]
[schema: lib/pkp/xml/schema/gifts.xml]
[schema: lib/pkp/xml/schema/mutex.xml]
[schema: lib/pkp/xml/schema/tombstone.xml]
[schema: lib/pkp/xml/schema/metrics.xml]
[schema: dbscripts/xml/ojs_schema.xml]
ERROR: Upgrade failed: DB: Data truncated for column ‘path’ at row 1
Hi @steineres,
Have you manually extended the length of the path
column of the journals
table in your database?
Regards,
Alec Smecher
Public Knowledge Project Team
Thanks for the quick answer!
I’ve just talk with my boss and he told me that in the past they did an alter table.
I going to try it.
Thanks again!
Regards
Hi @steineres,
You’ll need to edit dbscripts/xml/ojs_schema.xml
to ensure that the expanded length is set up there, otherwise the upgrade process will attempt to chop the data field short and you’ll get the message you found above.
Regards,
Alec Smecher
Public Knowledge Project Team
Thanks !!! It’s working !! That was the problem, I had to change dbscripts/xml/ojs_schema.xml
, thats it .
Regards!