Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to import a modified module.
#1
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?
Reply
#2
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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)