Skip to content

[bug]: breaking section in module.xml #155

@vsc55

Description

@vsc55

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:

<module>
	<rawname>module</rawname>
	.....
	<breaking>
		<module>
			<rawname>cdr</rawname>
	        	<type>conflict</type>
		</module>
	</breaking>
	...
</module>

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

I have made some bugs for $conflicterrors and $module.
These are the data.

$conflicterrors = $FreePBX->Modules->checkConflicts($modules[$module]);

$module => endpointman
$conflicterrors =>

 Array
(
    [breaking] => 1
    [issues] => Array
        (
            [cdr] => Array
                (
                    [0] => The currently installed module CDR Reports [cdr] conflicts with OSS PBX End Point Manager [endpointman]. Having both installed may cause issues with the functionality of your system.
                )

        )

    [replacements] => Array
        (
        )

)


If more modules are added in the brocket section, $conflicterrors is null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions