Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some issues in console with the dependency resolver with UGM #2

Open
BobRay opened this issue Sep 14, 2023 · 4 comments
Open

Some issues in console with the dependency resolver with UGM #2

BobRay opened this issue Sep 14, 2023 · 4 comments

Comments

@BobRay
Copy link

BobRay commented Sep 14, 2023

Everything works, but there are some error messages in red during the install. Not sure if all these are due to the resolver, but they didn't appear in the last version of UGM, and I used your dependency resolve code verbatim.

Here's the console output:

Console running...
Attempting to install package with signature: upgrademodx-2.3.5-pl
Package found...now preparing to install.
Grabbing package workspace...
Workspace environment initiated, now installing package...
Installing dependency Guzzle7 v1.0.0-pl (or higher)...
modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.

  • Downloading guzzle7-7.8.0-pl from modx.com...
    PHP notice: A non well formed numeric value encountered
    --- Installing guzzle7-7.8.0-pl ---
    Grabbing package workspace...
    Workspace environment initiated, now installing package...
  • MODX 2.7+ (minimum): ✔ 2.8.5-pl
  • MODX 2.7+ (minimum per 2019-11-27): ✔ 2.8.5-pl
  • PHP 7.2+ (minimum): ✔ 7.4.33
  • PHP 7.2+ (minimum per 2019-07-01): ✔ 7.4.33
    Installing files from /www/core/packages/guzzle7-7.8.0-pl/xPDOFileVehicle/b7bb588c0c5c1b9e83d1c8ebc2e566a9/ to /www/core/components/guzzle7
    Installing/updating guzzle..
    PHP warning: file_get_contents(/www/core/components/guzzle7/vendor/composer/installed.php): failed to open stream: No such file or directory
    PHP warning: file_get_contents(/www/core/components/guzzle7/vendor/composer/InstalledVersions.php): failed to open stream: No such file or directory
    PHP warning: file_get_contents(/www/core/components/guzzle7/vendor/composer/autoload_namespaces.php): failed to open stream: No such file or directory
    PHP warning: file_get_contents(/www/core/components/guzzle7/vendor/composer/autoload_psr4.php): failed to open stream: No such file or directory
    PHP warning: file_get_contents(/www/core/components/guzzle7/vendor/composer/autoload_classmap.php): failed to open stream: No such file or directory
    PHP warning: file_get_contents(/www/core/components/guzzle7/vendor/composer/autoload_files.php): failed to open stream: No such file or directory
    PHP warning: file_get_contents(/www/core/components/guzzle7/vendor/composer/autoload_static.php): failed to open stream: No such file or directory
    PHP warning: file_get_contents(/www/core/components/guzzle7/vendor/composer/platform_check.php): failed to open stream: No such file or directory
    PHP warning: file_get_contents(/www/core/components/guzzle7/vendor/autoload.php): failed to open stream: No such file or directory
    PHP warning: file_get_contents(/www/core/components/guzzle7/vendor/composer/autoload_real.php): failed to open stream: No such file or directory
    Loading composer repositories with package information
    Info from https://repo.packagist.org: �[37;44m#StandWith�[30;43mUkraine�[39m
    Updating dependencies
    Lock file operations: 8 installs, 0 updates, 0 removals
  • Locking guzzlehttp/guzzle (7.8.0)
  • Locking guzzlehttp/promises (2.0.1)
  • Locking guzzlehttp/psr7 (2.6.1)
  • Locking psr/http-client (1.0.2)
  • Locking psr/http-factory (1.0.2)
  • Locking psr/http-message (2.0)
  • Locking ralouphie/getallheaders (3.0.3)
  • Locking symfony/deprecation-contracts (v2.5.2)
    Writing lock file
    Installing dependencies from lock file
    Package operations: 8 installs, 0 updates, 0 removals
    proc_open is disabled so 'unzip' and '7z' commands cannot be used, zip files are being unpacked using the PHP zip extension.
    This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.
    Enabling proc_open and installing 'unzip' or '7z' (21.01+) may remediate them.
  • Downloading symfony/deprecation-contracts (v2.5.2)
  • Downloading psr/http-message (2.0)
  • Downloading psr/http-client (1.0.2)
  • Downloading ralouphie/getallheaders (3.0.3)
  • Downloading psr/http-factory (1.0.2)
  • Downloading guzzlehttp/psr7 (2.6.1)
  • Downloading guzzlehttp/promises (2.0.1)
  • Downloading guzzlehttp/guzzle (7.8.0)
  • Installing symfony/deprecation-contracts (v2.5.2): Extracting archive
  • Installing psr/http-message (2.0): Extracting archive
  • Installing psr/http-client (1.0.2): Extracting archive
  • Installing ralouphie/getallheaders (3.0.3): Extracting archive
  • Installing psr/http-factory (1.0.2): Extracting archive
  • Installing guzzlehttp/psr7 (2.6.1): Extracting archive
  • Installing guzzlehttp/promises (2.0.1): Extracting archive
  • Installing guzzlehttp/guzzle (7.8.0): Extracting archive
    2 package suggestions were added by new dependencies, use composer suggest to see details.
    Generating optimized autoload files
    4 packages you are using are looking for funding.
    Use the composer fund command to find out more!
    No security vulnerability advisories found
    --- Installed guzzle7-7.8.0-pl in 1.11s ---
    Successfully installed package upgrademodx-2.3.5-pl
@BobRay
Copy link
Author

BobRay commented Sep 14, 2023

These are from the error log.

[2023-09-13 21:46:08] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:08] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:08] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:08] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:08] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:08] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:10] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:10] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:10] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:10] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:17] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:17] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:21] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:21] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:23] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:23] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:23] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:23] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:38] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:46:38] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:47:19] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:47:19] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:47:19] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:47:19] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:47:19] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:47:19] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:58:16] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:58:16] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:58:16] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:58:16] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:58:16] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:58:16] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:58:27] (ERROR @ /www/core/xpdo/xpdo.class.php : 503) Path specified for package guzzle7 is not a valid or accessible directory: /www/core/components/guzzle7/model/
[2023-09-13 21:58:27] (ERROR @ /www/core/xpdo/xpdo.class.php : 644) Could not load class: Guzzle7 from guzzle7.
[2023-09-13 21:58:27] (ERROR @ /www/core/xpdo/xpdo.class.php : 1248) Problem getting service guzzle7, instance of class Guzzle7, from path /www/core/components/guzzle7/model/guzzle7/
[2023-09-13 21:58:28] (ERROR @ /www/core/xpdo/xpdo.class.php : 503) Path specified for package guzzle7 is not a valid or accessible directory: /www/core/components/guzzle7/model/
[2023-09-13 21:58:28] (ERROR @ /www/core/xpdo/xpdo.class.php : 644) Could not load class: Guzzle7 from guzzle7.
[2023-09-13 21:58:28] (ERROR @ /www/core/xpdo/xpdo.class.php : 1248) Problem getting service guzzle7, instance of class Guzzle7, from path /www/core/components/guzzle7/model/guzzle7/
[2023-09-13 21:58:29] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 21:58:29] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 22:33:10] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 22:33:10] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 22:33:27] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 22:33:27] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 22:33:27] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 22:33:27] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 22:34:15] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 22:34:15] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 22:34:15] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 22:34:15] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 22:34:34] (ERROR in xPDO::getService @ /www/core/xpdo/xpdo.class.php : 1235) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2023-09-13 22:34:34] (ERROR in modRestCurlClient::__construct @ /www/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.

@BobRay
Copy link
Author

BobRay commented Sep 14, 2023

None of the errors above occur when viewing the dashboard widget or using UGM to upgrade MODX.

@Mark-H
Copy link
Member

Mark-H commented Jan 15, 2024

I think these happen when doing a clean install regardless of method.

@BobRay
Copy link
Author

BobRay commented Jan 19, 2024

Is there a way for me to prevent them? They make UGM look bad during installation, and they didn't occur with the old method of handling dependencies in extra packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants