Page 1 of 1

[SOLVED] XML File Size Discrepancy Weird Issue

Posted: Thu Jan 15, 2015 2:05 pm
by applejack
I would be very grateful if anyone can figure this out or has any idea at all.

If I export a Formbuilder form using CMS 1.11.10 the xml file is 12KB.
If I export a Formbuilder form using CMS 1.11.11 the xml file is 3KB and won't import.
Using a plain text editor checking contents of both files they are identical.
If I copy the content of the 3KB file to the 12KB this will now import.
If I copy the content of the 12KB file to the 3KB this will not import.

This is specific to my server as I setup a test site on another server and it is fine. The only issue that I can see with my server is that the version of cURL is 7.15.5 rather than the minimum recommended version of 7.19.7 but as far as I know this shouldn't have any bearing on this issue though of course I could be wrong.

System Info

Code: Select all

Cms Version: 1.11.11
Installed Modules:
CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.5
MenuManager: 1.8.6
MicroTiny: 1.2.7
ModuleManager: 1.5.8
News: 2.14.4
Search: 1.7.11
ThemeManager: 1.1.8
FormBuilder: 0.7.3

Config Information:
php_memory_limit: 
process_whole_template: 
max_upload_size: 96000000
url_rewriting: none
page_extension: 
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale: 
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:
phpversion: 5.4.32
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 256M
max_execution_time: 60
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 96M
upload_max_filesize: 96M
session_save_path: /var/lib/php/session (0770)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.40
Server Db Grants: Could not find a suitable "GRANT ALL" permission. This may mean you could have problems installing or removing modules. Or even adding and deleting items, including pages
Server Time Diff: No filesystem time difference found

Re: XML File Size Discrepancy Weird Issue

Posted: Thu Jan 15, 2015 3:16 pm
by velden
Could it have something to do with the File Encoding?

Some text editors show you that information (UTF8, ANSI, UCS-2) and some let you change it too (even Windows Notepad).

You could try to compare both files regarding the encoding which might point you/us in a direction.

Re: XML File Size Discrepancy Weird Issue

Posted: Fri Jan 16, 2015 2:48 pm
by applejack
Hi Velden

No the encoding is the same. I have enclosed a copy of both files.

Re: [SOLVED] XML File Size Discrepancy Weird Issue

Posted: Fri Jan 23, 2015 1:33 am
by applejack
This has been solved with the help of JoMorg who worked out that the small file is compressed and so by zipping then uncompressing creates the correct file size and then can import.