installPluginVersion PHP error

Working on updating a working install from 3.3.0-14 to 3.3.0-15. Upgrade script ran smoothly. Four plugins are set up as git submodules. Running php lib/pkp/tools/installPluginVersion.php path/to/plugin/version.xml produces:

PHP Fatal error: Uncaught Error: Call to a member function getName() on bool in /usr/local/hnetojs/lib/pkp/tools/installPluginVersion.php:71

Plugins involved are hypothesis, crossref, piwik, quickSubmit.

PHP 7.4

Bump. xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi @drboone,

If you’re upgrading an install that already had those plugins present, it shouldn’t be necessary to run installPluginVersion.php. You can check by looking in the versions table:

SELECT * FROM versions WHERE product IN ('hypothesis', 'crossref', 'piwik', 'quickSubmit');

Regards,
Alec Smecher
Public Knowledge Project Team

Well, I see them all in the table:

hnetojs=# SELECT * FROM versions WHERE product IN ('hypothesis', 'crossref', 'piwik', 'quickSubmit');
 major | minor | revision | build |   date_installed    | current |     product_
type     |   product   | product_class_name | lazy_load | sitewide 
-------+-------+----------+-------+---------------------+---------+-------------
---------+-------------+--------------------+-----------+----------
     2 |     1 |        0 |     0 | 2018-06-13 14:30:57 |       1 | plugins.impo
rtexport | crossref    |                    |         0 |        0
     3 |     0 |        0 |     0 | 2023-08-18 17:45:35 |       1 | plugins.gene
ric      | crossref    |                    |         0 |        0
     1 |     0 |        6 |     0 | 2022-02-25 12:41:49 |       0 | plugins.impo
rtexport | quickSubmit |                    |         0 |        0
     1 |     0 |        7 |     1 | 2023-08-18 17:45:41 |       1 | plugins.impo
rtexport | quickSubmit |                    |         0 |        0
     1 |     0 |        5 |     0 | 2023-08-18 17:45:09 |       1 | plugins.gene
ric      | hypothesis  | HypothesisPlugin   |         1 |        0
     1 |     0 |        4 |     0 | 2022-10-07 14:15:13 |       0 | plugins.gene
ric      | piwik       | PiwikPlugin        |         1 |        0
     1 |     0 |        5 |     0 | 2023-08-18 17:45:28 |       1 | plugins.gene
ric      | piwik       | PiwikPlugin        |         1 |        0
(7 rows)

but they’re not showing up in the system or journal plugin pages.

Not sure why the system is saying this will autoclose in 12 hours. It’s not solved yet.

Hi @drboone,

Are the submodules set up on the stable-3_3_0 branches?

Regards,
Alec Smecher
Public Knowledge Project Team

Ah, that plus cache clear fixed the ones for which there’s a 3_3_0 branch. The Crossref plugin seems to only have main and 3_4_0. Is there an older repo for Crossref?

Hi @drboone,

For the CrossRef plugin, prior to 3.4.0 the plugin was included in the application’s repository.

Regards,
Alec Smecher
Public Knowledge Project Team

Oh, I see. I must have cleaned it up thinking it was an older version I had placed there. Thanks!

1 Like

This topic was automatically closed after 4 days. New replies are no longer allowed.