-
Notifications
You must be signed in to change notification settings - Fork 63
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
[bug]: breaking section in module.xml #155
Comments
…on of the module.xml file. FreePBX#155 Fix error on the views page where the data collected by checkConflicts() was not accessed correctly. FreePBX#155
By the way, there is no information regarding this option in the wiki documentation. Adding something like this would be nice. <module>
<rawname>reset</rawname>
<name>Reset Module</name>
<breaking>
<module>
<rawname>target_module_1</rawname>
<type>conflict</type>
<version>1.0.0</version>
<errormessage>The module RESET conflicts with TARGET_MODULE_1. Having both installed may cause issues with the functionality of your system.</errormessage>
</module>
<module>
<rawname>target_module_2</rawname>
<type>conflict</type>
<version>2.0.0</version>
<errormessage>The module RESET conflicts with TARGET_MODULE_2. Having both installed may cause issues with the functionality of your system.</errormessage>
</module>
<module>
<rawname>target_module_3</rawname>
<type>conflict</type>
<!-- No version or errormessage provided -->
</module>
</breaking>
</module> |
We have callback logic to check the conflict module during the install time so why you like to add into the module.xml ? Ref - https://github.com/FreePBX/ucp/blob/release/16.0/install.inc.php#L8 |
Hi @kguptasangoma, |
FreePBX Version
FreePBX 17
Issue Description
I am adding a breaking section to the modele.xml to be able to add a conflict condition with another module but the following error is generated.
This would be an example of the modification:
I tested it by enabling and disabling the module to which I added the previous code in the module.xml file, so the exception occurs in the 'enable' section. However, the same code is in install/uninstall/etc., so I assume it will give the same error.
I tested this on FreePBX 17, but I understand that the same happens in version 16.
Operating Environment
Whoops\Exception\ErrorException thrown with message "Undefined array key "OSS PBX End Point Manager""
Stacktrace:
#2 Whoops\Exception\ErrorException in /usr/src/freepbx/framework/amp_conf/htdocs/admin/page.modules.php:645
#1 Whoops\Run:handleError in /usr/src/freepbx/framework/amp_conf/htdocs/admin/page.modules.php:645
#0 include in /usr/src/freepbx/framework/amp_conf/htdocs/admin/config.php:481
Relevant log output
The text was updated successfully, but these errors were encountered: