Using OJS 3.1.1 with php 7.1, when I click on “Plugin Gallery” I get a spinning wheel forever. In the error log:
[Wed Dec 19 14:44:04.862937 2018] [php7:error] [pid 27540] [client 132.66.11.1:38433] PHP Fatal
error: Uncaught Error: Class ‘DOMDocument’ not found in /var/www/html/ojs/lib/pkp/classes/plugi
ns/PluginGalleryDAO.inc.php:55\nStack trace:\n#0 /var/www/html/ojs/lib/pkp/classes/plugins/Plugi
nGalleryDAO.inc.php(33): PluginGalleryDAO->_getDocument()\n#1 /var/www/html/ojs/lib/pkp/controll
ers/grid/plugins/PluginGalleryGridHandler.inc.php(127): PluginGalleryDAO->getNewestCompatible(Ob
ject(Application), NULL, NULL)\n#2 /var/www/html/ojs/lib/pkp/classes/controllers/grid/GridHandle
r.inc.php(311): PluginGalleryGridHandler->loadData(Object(Request), Array)\n#3 /var/www/html/ojs
/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1034): GridHandler->getGridDataElements(Ob
ject(Request))\n#4 /var/www/html/ojs/lib/pkp/classes/controllers/grid/GridHandler.inc.php(927):
GridHandler->renderGridBodyPartsInternally(Object(Request))\n#5 /var/www/html/ojs/lib/pkp/classe
s/controllers/grid/GridHandler.inc.php(642): GridHandler->doSpecificFetchGridActions(Array, Obje
ct(Request), Object(TemplateManager))\n#6 /var/www/html/ojs/lib/pkp/classes/core in /var/www/htm
l/ojs/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 55
I have just installed OJS 3.1.2-1 and also have the problem that the plugin gallery is empty. I see the heading and then “No Items”.
In the log I get many times
PHP Notice: Undefined property: DOMElement::$tagName in /var/www/html/ojs/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 86
Again, maybe this is late but may as new directives like PUTS and DAO COM-XML are added to versions, that list of requirements can go into the Upgrade.php and check just like the “writeable directories” checks?
I have checked SSL on this server and it seems that this is the root cause of the issue…
fsockopen(): unable to connect to ssl://pkp.sfu.ca:443
I noticed when I used wget to get the latest version of the code, I got the following:
Resolving pkp.sfu.ca (pkp.sfu.ca)… 204.187.13.80
Connecting to pkp.sfu.ca (pkp.sfu.ca)|204.187.13.80|:443… connected.
ERROR: cannot verify pkp.sfu.ca’s certificate, issued by ‘/C=US/O=Let’s Encrypt/CN=R3’:
Issued certificate has expired.
To connect to pkp.sfu.ca insecurely, use `–no-check-certificate’.
This is a problem with an expired certificate on your server; you’ll need to update the server’s certificate list. This will affect many sites using Let’s Encrypt certificates, not just PKP’s. See for example:
Thanks. For the record: If there is a certificate problem, the plugin gallery may(will) not load. In our case, we cloned the production VPS and broke the SSL chain. We should have seen this when we saw that we had to force the connection to earlier WGETs of OJS code.