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

Enabling a module from the marketplace throw "The requested resource could not be found." on HumHub 1.16 #6978

Closed
marc-farre opened this issue Apr 30, 2024 · 3 comments
Assignees

Comments

@marc-farre
Copy link
Collaborator

What steps will reproduce the problem?

  1. Install HumHub 1.16.0-beta.2
  2. Go to the marketplace page: /marketplace/browse
  3. Click "Install" on any module
  4. Click "Enable now" in the modal box

What is the expected result?

The module is enabled and no error is thrown.

What do you get instead?

The module is enabled but this error is thrown:

The requested resource could not be found.

{
    "url": "/marketplace/browse/enable",
    "status": 404,
    "response": {
        "error": true,
        "message": "Could not find the requested module!"
    },
    "textStatus": "error",
    "xhr": {
        "readyState": 4,
        "responseText": "{\"error\":true,\"message\":\"Could not find the requested module!\"}",
        "responseJSON": {
            "error": true,
            "message": "Could not find the requested module!"
        },
        "status": 404,
        "statusText": "Not Found"
    },
    "dataType": "json",
    "error": true,
    "message": "Could not find the requested module!",
    "errorThrown": "Not Found",
    "validationError": false
}

Additional info

Q A
HumHub version 1.16.0-beta.2
@marc-farre
Copy link
Collaborator Author

@yurabakhtin Additional, but certainly linked issue: the initial module migration is not done.
I need to do it manually: php yii migrate/up --includeModuleMigrations=1

@yurabakhtin
Copy link
Contributor

@marc-farre @luke- Fixed in the PR #6978.
It didn't work for modules without migration or if a module has a redeclared method enable() with returned null or void.

@marc-farre
Copy link
Collaborator Author

@yurabakhtin thanks for your quick fix!
@luke- PR tested, works perfectly.

@luke- luke- closed this as completed May 1, 2024
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

3 participants