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
New dependencies installation fails for some Extras (MIGX, SEO tab, SEO Pro) #12666
Comments
I've tested this with Modx 2.4.2 and I've got the same issue. I've dug into the problem and the issue seems to be with spaces in the dependency package name. See issue #55 at the SEO Tab repo for more info: Sterc/SEOTab#55 |
@opengeek I've had a talk with you (on Slack) about this, and as you pointed out it seems to be an issue in the modx extras repository when using dependencies with a space in the package name.. Are there any plans / ideas on fixing this? Would love to help out, but I don't think the Extras repository code is publicly available, is it? |
Closing as this likely needs to be resolved in the provider/extras site. |
Package names never have spaces in them; if you submit them that way, they are cleansed. They have to match the transport filename. I'm a little confused as to what the problem really is here. |
@joeke I recall the conversation but, unfortunately, I don't recall the conversation details. If you can provide more details here that might help. But again, packages should never contain a space in the name. They should always be lowercase and not contain a dash character, just like the transport filename rules. |
@opengeek I've managed to reproduce the issue, here are the steps:
My request URL is Note that when I install SEO Pro before installing my created transport zip (in my clean modx install), the installation works fine. So the issue only occurs when using dependencies that are not installed. |
Could you try the package name (seopro) instead of the extra name (SEO Pro)?
|
@Jako No that won't work. The checkDependencies function (which is used for the 'requires' array in a build) uses the The checkDependencies function is here: https://github.com/modxcms/revolution/blob/2.x/core/model/modx/transport/modtransportpackage.class.php#L468 |
Stupid design decision then. The query should be expanded with an |
@Jako I don't think the problem is with the checkDepencies functions, I believe those are only used when building the package.. and that works fine. I think the problem is somewhere in the dependency download class which is used on the install screen for downloading the package (https://github.com/modxcms/revolution/blob/2.x/core/model/modx/processors/workspace/packages/dependency/download.class.php) |
It was maybe a combination of several issues:
|
@Jako Did you fixed described issue or some point still actual? If all fixed could close the issue as your confirmation? |
It is fixed with that query change. |
When using the new dependencies feature in MODX 2.4.0-pl to install MIGX, SEO Pro or SEO Tab, The extra's get listed but when you click install they do not get installed.
The only way to install them is via the 'normal' way, after this they get listed correctly as installed under dependencies tab.
I tried different names, but no go for these three extras. Others do work fine...
The text was updated successfully, but these errors were encountered: