I try installing with uploading a zip and seems to work bc is in the plugin list , but, if i try to install with installPluginVersion.php, i get this error:
/var/www/html # php lib/pkp/tools/installPluginVersion.php plugins/apiExtension.tar.gz
PHP Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found in /var/www/html/lib/pkp/classes/site/VersionCheck.php on line 93
PHP Warning: SimpleXMLElement::__construct(): in /var/www/html/lib/pkp/classes/site/VersionCheck.php on line 93
PHP Warning: SimpleXMLElement::__construct(): ^ in /var/www/html/lib/pkp/classes/site/VersionCheck.php on line 93
PHP Fatal error: Uncaught Exception: String could not be parsed as XML in /var/www/html/lib/pkp/classes/site/VersionCheck.php:93
Stack trace:
#0 /var/www/html/lib/pkp/classes/site/VersionCheck.php(93): SimpleXMLElement->__construct()
#1 /var/www/html/lib/pkp/lib/vendor/elcobvg/laravel-opcache/src/Repository.php(25): PKP\site\VersionCheck::PKP\site\{closure}()
#2 /var/www/html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(408): ElcoBvg\Opcache\Repository->remember()
#3 /var/www/html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Illuminate\Cache\CacheManager->__call()
#4 /var/www/html/lib/pkp/classes/site/VersionCheck.php(109): Illuminate\Support\Facades\Facade::__callStatic()
#5 /var/www/html/lib/pkp/tools/installPluginVersion.php(61): PKP\site\VersionCheck::parseVersionXML()
#6 /var/www/html/lib/pkp/tools/installPluginVersion.php(111): InstallPluginVersionTool->execute()
#7 {main}
thrown in /var/www/html/lib/pkp/classes/site/VersionCheck.php on line 93
/var/www/html #
Seems like the file is empty idk… maybe is a docker related problem?
The plugin installs well with installPluginVersion.php,and the template hooks works well, but addEndpoints seems never called :
And I have tried different ways, one at a time… Maybe I’m miss spelling something?, I need to reboot the server? sorry for the inconvenience, thanks
Does your plugin show up in the versions table, and are the product and product_class_name columns set appropriately (the plugin’s immediate pathname and PHP class name, respectively)?
Regards,
Alec Smecher
Public Knowledge Project Team