Gitify icon indicating copy to clipboard operation
Gitify copied to clipboard

errors when installing package in MODX3

Open devtendenz opened this issue 2 years ago • 1 comments

Summary

errors when installing package in MODX3

Step to reproduce

gitify package:install pdoResources or just gitify package:install

Observed behavior

It does not install the package and gives this error: [2022-05-17 16:58:19] (WARN @ /var/www/html/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 526) Could not load package metadata for package modx.transport. Upgrade your model. Cannot load Provider to install pdoResources

Expected behavior

It should download and install the package

Environment

Gitify version 2.0.0-alpha3, MODX version 3.0.1, Operating System Debian 11.3 , MySQL version 5.7.38, PHP version 8.0.19

devtendenz avatar May 17 '22 15:05 devtendenz

I experienced the same. I tried different versions. I tested 2.0.0-alpha1, 2.0.0-alpha2, 2.0.0-alpha3 and 1.1.2 with MODX 3.0.0 and 3.0.1. To no avail, same error message as stated above has been shown. The installation of MODX through Gitify works fine in these cases. With 2,8.4 package install for Gitify 2.0.0-alpha3 works fine.

Environment: Apache/2.4.38 (Debian), MySQL 5.7.35 and PHP 7.4.20 (I should note that this is inside a docker container)

PZ31k0nauT avatar Jul 16 '22 23:07 PZ31k0nauT

I confirm the issue with MODX3

Spheerys avatar Nov 21 '22 22:11 Spheerys

There are some strict type checks that need to be addressed for 3.0. Thanks for reporting.

Mark-H avatar Nov 22 '22 00:11 Mark-H

A bit more refactoring is going to be needed with this, partly due to different request objects being returned from the provider. MODX 2.x had modRestResponse, whereas 3.x has a PSR response object.

muzzwood avatar Dec 09 '22 08:12 muzzwood