Warning message when run upgrade in OJS - failed to open stream

I ran the upgrade function and everything was fine, but a warning message appeared at the top of my page, after the upgrade completion:

“ojs2 has produced an error Message: WARNING: fopen(plugins/generic/statistics/schema.xml): failed to open stream: Arquivo ou diretório não encontrado In file: ///////public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php At line: 1890 Stacktrace: Server info: OS: Linux PHP Version: 5.6.37 Apache Version: N/A DB Driver: mysql”

OJS is looking for a non existing file. How can I fix that?

Thanks

Hi @ctgraham / @franms let me know if you can help…

I ran the upgrade by using Putty. Here’s the results:

[XXXX@XXXXXXX public_html]$ php tools/upgrade.php upgrade
[pre-install]
[load: upgrade.xml]
[version: 2.4.8.3]
[schema: lib/pkp/xml/schema/signoff.xml]
[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]
[data: dbscripts/xml/indexes.xml]

[code: Installer Installer::addPluginVersions]
[post-install]
ojs2 has produced an error
Message: WARNING: fopen(plugins/generic/statistics/schema.xml): failed to open stream: Arquivo ou diretório não encontrado
In file: /xxxx/xxxx/xxxx/xxxx/xxxx/xxxx/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php
At line: 1890
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.6.37
Apache Version: N/A
DB Driver: mysql

ojs2 has produced an error
Message: WARNING: fopen(plugins/generic/statistics/schema.xml): failed to open stream: Arquivo ou diretório não encontrado
In file: /xxxx/xxxx/xxxx/xxxx/xxxx/xxxx/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php
At line: 1890
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.6.37
Apache Version: N/A
DB Driver: mysql
Successfully upgraded to version 2.4.8.3
[xxxx@xxxx public_html]$

It looks a file called schema.xml is missing in the statistics plugin, but indeed, this file is not in the original one:

I was running the upgrade in order to register a new custom block plugin that I created. I did all the changes recommended, in order to avoid a duplicate plugin register, but, for some reason, the plugin is only being shown when I go to Setup page Step 5. When I go to home page, the plugin is not being displayed… Is there anything else that I need to do to fix ? Does the error above is denying the plugin to be registered properly?

Thanks!

Hi @sergiobm
Have you contacted the author of this plugin?

I’m not an expert here, but the plugin contains the call to the schema, that is not present in the release: statistics/StatisticsPlugin.inc.php at master · franmanez/statistics · GitHub

I don’t see that it is used anywhere. Maybe you can just delete that method?

Hi @franms, can you please help us? It looks a file missing in your plugin.

Thanks

I’m afraid that don’t know the author of the plugin.

Edit: ah, you found him among registered users.