Install a new plugin on OJS 3.0

Hi! I want to add a new plugin on my OJS 3.0. I’m using the https://pkp.sfu.ca/wiki/index.php?title=Writing_a_Block_Plugin to do it and i use the basics things og Custom Block Manager . But i can register the plugin. I try upgrading with ‘php tools/upgrade.php ugrade’ but this is my result:

[pre-install]
[load: upgrade.xml]
[version: 3.0.0.0]

[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]
ERROR: Upgrade failed: DB: Table ‘issue_galleys_stats_migration’ already exists

There is another way to register a new plugin?

Sorry for my terrible English! :slight_smile:

Julieta

Hi @julietavuan,

Hmm, what do you get if you run…

php tools/upgrade.php check

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec! this is the screenshot of the console:

it seems that i didn’t upgrade de database but i did…

I don’t know hwhat is happening… :sob:

Hi @julietavuan,

It looks like the upgrade didn’t complete successfully. You should’ve received error messages – do you have anything like that? Otherwise the best idea is to restore from pre-upgrade backup and try the upgrade again.

Regards,
Alec Smecher
Public Knowledge Project Team