CoreBOSBB
Unable to import a modified module. - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Modules/Extension Support (https://discussions.corebos.org/forumdisplay.php?fid=9)
+--- Thread: Unable to import a modified module. (/showthread.php?tid=2228)



Unable to import a modified module. - javier - 12-07-2021

Hi all!

I'm getting the error "Invalid file provided for module import! Try Again." when trying to import a module after modifiying its fields in CoreBOS and exporting it. Any idea what may be causing the error?


RE: Unable to import a modified module. - javier - 12-14-2021

The accents in the XML file where at fault at the end.

This solved the issue:
Code:
diff
diff --git a/vtlib/Vtiger/PackageExport.php b/vtlib/Vtiger/PackageExport.php
index 28048f74a..bb1eaf91b 100644
--- a/vtlib/Vtiger/PackageExport.php
+++ b/vtlib/Vtiger/PackageExport.php
@@ -463,7 +463,7 @@ class Vtiger_PackageExport {
                        $this->outputNode($fieldresultrow['columnname'], 'columnname');
                        $this->outputNode($fieldresultrow['tablename'], 'tablename');
                        $this->outputNode($fieldresultrow['generatedtype'], 'generatedtype');
-                       $this->outputNode($fieldresultrow['fieldlabel'], 'fieldlabel');
+                       $this->outputNode('<![CDATA['.$fieldresultrow['fieldlabel'].']]>', 'fieldlabel');
                        $this->outputNode($fieldresultrow['readonly'], 'readonly');
                        $this->outputNode($fieldresultrow['presence'], 'presence');
                       $this->outputNode($fieldresultrow['defaultvalue'], 'defaultvalue');

Thanks Joe!