-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Marketplace - module files deleted if license key cannot be retrieved #4967
Comments
@funkycram So the problem occurs when updating the module? Can you check if the module download worked correctly? If the module files were removed but not reinstalled, there must be an error in the log about it. In such a case, reinstalling the module should fix the problem. Is the install option displayed when "Browse Online" to the module? |
Difficult to answer to theses questions as the problem occurred to a client, but I don't have any account on his Humhub. But I think I can reproduce the problem that way:
In In the database, in the table If I register again the module in |
If the module's license key is removed from the partner's site then it stands to reason that it would throw an error, but in my opinion, there should be a check for a valid license key that should be checked in this case, am I correct? If it passes the check then an update should be available to install, if not then an update should not be displayed 🤔 |
Fixed here: #4978 |
What steps will reproduce the problem?
What is the expected result?
As the firewall (or temporary loss of internet connection ?) prevents checking the license key on Humhub's server, tell the administrator that the license key cannot be checked, so module cannot be upgraded.
What do you get instead?
The module's files and directory are deleted on the server but the module is not desactivated.
So if you return in the space, Humhub crashes.
Other possibility : if some events are defined in
config.php
, as Humhub's cache is not purged, Humhub tries to readEvents.php
file to execute the functions, but as the file is deleted, Humhub crashes.In both cases, it is not possible to deactivate the module in the marketplace. The only solution is to put back the module's files via FTP.
The text was updated successfully, but these errors were encountered: