[SOLVED] XML File Size Discrepancy Weird Issue

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

[SOLVED] XML File Size Discrepancy Weird Issue

Post 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
Last edited by applejack on Fri Jan 23, 2015 1:30 am, edited 1 time in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: XML File Size Discrepancy Weird Issue

Post 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.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: XML File Size Discrepancy Weird Issue

Post by applejack »

Hi Velden

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

[The extension txt has been deactivated and can no longer be displayed.]

[The extension txt has been deactivated and can no longer be displayed.]

applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: [SOLVED] XML File Size Discrepancy Weird Issue

Post 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.
Post Reply

Return to “Modules/Add-Ons”