<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — The file is damaged and could not be repaired]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=263&amp;type=atom" />
	<updated>2008-08-15T03:21:57Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=263</id>
		<entry>
			<title type="html"><![CDATA[Re: The file is damaged and could not be repaired]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=942#p942" />
			<content type="html"><![CDATA[<p>OK, got that one figured out, by accident,</p><p>The problem is in that php.ini file above,&nbsp; you see at one time I had a script that required I have access to my php.ini file on my hosted, so what they do is move it to your cgi folder so you have access to it.&nbsp; When I discovered that my scripts worked fine under another domain on the same server I started to look a little closer, I renamed my php.ini file that is in my cgi folder and all is fine at least for fa,&nbsp; I will look more at is later,&nbsp; but if anyone sees anything in that file above let me know?&nbsp; But no big deal. If I use the script that needs that php.ini file I will just put it in a sub domain.</p><p>Thanks for all the help.</p><p>AM</p>]]></content>
			<author>
				<name><![CDATA[alvin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=176</uri>
			</author>
			<updated>2008-08-15T03:21:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=942#p942</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The file is damaged and could not be repaired]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=874#p874" />
			<content type="html"><![CDATA[<p>Janusz</p><p>I looked over the php.ini and did a text diff with the php.ini on my local, everything seems normal to me.&nbsp; Take a quick look and and see if you can spot something:</p><p>[PHP]<br />&nbsp; engine = 1<br />&nbsp; zend.ze1_compatibility_mode = <br />&nbsp; short_open_tag = 1<br />&nbsp; asp_tags = <br />&nbsp; precision = 14<br />&nbsp; y2k_compliance = 1<br />&nbsp; output_buffering = 4096<br />&nbsp; zlib.output_compression = <br />&nbsp; implicit_flush = <br />&nbsp; unserialize_callback_func = <br />&nbsp; serialize_precision = 100<br />&nbsp; allow_call_time_pass_reference = <br />&nbsp; safe_mode = <br />&nbsp; safe_mode_gid = 1<br />&nbsp; safe_mode_include_dir = <br />&nbsp; safe_mode_exec_dir = <br />&nbsp; safe_mode_allowed_env_vars = PHP_<br />&nbsp; safe_mode_protected_env_vars = LD_LIBRARY_PATH<br />&nbsp; disable_functions = <br />&nbsp; disable_classes = <br />&nbsp; highlight.string = #DD0000<br />&nbsp; highlight.comment = #FF9900<br />&nbsp; highlight.keyword = #007700<br />&nbsp; highlight.bg = #FFFFFF<br />&nbsp; highlight.default = #0000BB<br />&nbsp; highlight.html = #000000<br />&nbsp; expose_php = 1<br />&nbsp; max_execution_time = 600<br />&nbsp; max_input_time = 600<br />&nbsp; memory_limit = 64M<br />&nbsp; error_reporting = 6135<br />&nbsp; display_errors = <br />&nbsp; display_startup_errors = <br />&nbsp; log_errors = 1<br />&nbsp; log_errors_max_len = 1024<br />&nbsp; ignore_repeated_errors = <br />&nbsp; ignore_repeated_source = <br />&nbsp; report_memleaks = 1<br />&nbsp; track_errors = <br />&nbsp; html_errors = <br />&nbsp; error_log = /hsphere/local/var/httpd/logs/php_error.log<br />&nbsp; variables_order = GPCS<br />&nbsp; register_globals = off<br />&nbsp; register_long_arrays = 1<br />&nbsp; register_argc_argv = 1<br />&nbsp; post_max_size = 16M<br />&nbsp; magic_quotes_gpc = off<br />&nbsp; magic_quotes_runtime = off <br />&nbsp; magic_quotes_sybase = <br />&nbsp; auto_prepend_file = <br />&nbsp; auto_append_file = <br />&nbsp; default_mimetype = text/html<br />&nbsp; always_populate_raw_post_data = 1</p><br /><p>;***** Added by go-pear<br />include_path=&quot;.:/hsphere/shared/php5/share/pear:/hsphere/shared/apache/libexec/php5ext/php/&quot;<br />;*****</p><p>&nbsp; doc_root = <br />&nbsp; user_dir = <br />&nbsp; extension_dir = /hsphere/shared/apache/libexec/php5ext/<br />&nbsp; cgi.fix_pathinfo = 1<br />&nbsp; file_uploads = 1<br />&nbsp; upload_tmp_dir = <br />&nbsp; upload_max_filesize = 16M<br />&nbsp; allow_url_fopen = 1<br />&nbsp; default_socket_timeout = 60<br />&nbsp; auto_detect_line_endings = 1<br />[Syslog]<br />&nbsp; define_syslog_variables = <br />[mail function]<br />&nbsp; sendmail_path = /usr/sbin/sendmail -t -i<br />&nbsp; mail.force_extra_parameters = <br />[SQL]<br />&nbsp; sql.safe_mode = <br />[ODBC]<br />&nbsp; odbc.allow_persistent = <br />&nbsp; odbc.check_persistent = 1<br />&nbsp; odbc.max_persistent = -1<br />&nbsp; odbc.max_links = -1<br />&nbsp; odbc.defaultlrl = 4096<br />&nbsp; odbc.defaultbinmode = 1<br />[MySQL]<br />&nbsp; mysql.allow_persistent = <br />&nbsp; mysql.max_persistent = -1<br />&nbsp; mysql.max_links = -1<br />&nbsp; mysql.default_port = 3306<br />&nbsp; mysql.default_socket = /var/lib/mysql/mysql.sock<br />&nbsp; mysql.default_host = localhost<br />&nbsp; mysql.default_user = <br />&nbsp; mysql.default_password = <br />&nbsp; mysql.connect_timeout = 60<br />&nbsp; mysql.trace_mode = <br />[PostgresSQL]<br />&nbsp; pgsql.allow_persistent = <br />&nbsp; pgsql.auto_reset_persistent = <br />&nbsp; pgsql.max_persistent = -1<br />&nbsp; pgsql.max_links = -1<br />&nbsp; pgsql.ignore_notice = 0<br />&nbsp; pgsql.log_notice = 0<br />[dbx]<br />&nbsp; dbx.colnames_case = lowercase<br />[bcmath]<br />&nbsp; bcmath.scale = 0<br />[Session]<br />&nbsp; session.save_handler = files<br />&nbsp; session.use_cookies = 1<br />&nbsp; session.name = PHPSESSID<br />&nbsp; session.auto_start = 0<br />&nbsp; session.cookie_lifetime = 0<br />&nbsp; session.cookie_path = /<br />&nbsp; session.cookie_domain = <br />&nbsp; session.serialize_handler = php<br />&nbsp; session.gc_probability = 1<br />&nbsp; session.gc_divisor = 10<br />&nbsp; session.gc_maxlifetime = 1440<br />&nbsp; session.bug_compat_42 = 0<br />&nbsp; session.bug_compat_warn = 1<br />&nbsp; session.referer_check = <br />&nbsp; session.entropy_length = 0<br />&nbsp; session.entropy_file = <br />&nbsp; session.cache_limiter = nocache<br />&nbsp; session.cache_expire = 180<br />&nbsp; session.use_trans_sid = off<br />&nbsp; session.hash_function = 0<br />&nbsp; session.hash_bits_per_character = 5<br />&nbsp; url_rewriter.tags = &quot;a=href,area=href,frame=src,input=src,form=fakeentry&quot;<br />[Assertion]<br />&nbsp; assert.active = 1<br />&nbsp; assert.warning = 1<br />&nbsp; assert.bail = <br />&nbsp; assert.callback = <br />&nbsp; assert.quiet_eval = 0<br />[Sockets]<br />&nbsp; sockets.use_system_read = 1<br />[mbstring]<br />&nbsp; mbstring.language = Japanese<br />&nbsp; mbstring.internal_encoding = EUC-JP<br />&nbsp; mbstring.http_input = auto<br />&nbsp; mbstring.http_output = SJIS<br />&nbsp; mbstring.encoding_translation = <br />&nbsp; mbstring.detect_order = auto<br />&nbsp; mbstring.substitute_character = <br />&nbsp; mbstring.func_overload = 7<br />[exif]<br />&nbsp; exif.encode_unicode = ISO-8859-15<br />&nbsp; exif.decode_unicode_motorola = UCS-2BE<br />&nbsp; exif.decode_unicode_intel = UCS-2LE<br />&nbsp; exif.encode_jis = <br />&nbsp; exif.decode_jis_motorola = JIS<br />&nbsp; exif.decode_jis_intel = JIS<br />[soap]<br />&nbsp; soap.wsdl_cache_enabled = 1<br />&nbsp; soap.wsdl_cache_dir = /tmp<br />&nbsp; soap.wsdl_cache_ttl = 86400</p><br /><p>[Zend]<br />zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0<br />zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0<br />zend_optimizer.version=3.3.0a<br />zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so<br />zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so</p>]]></content>
			<author>
				<name><![CDATA[alvin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=176</uri>
			</author>
			<updated>2008-08-02T02:10:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=874#p874</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The file is damaged and could not be repaired]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=872#p872" />
			<content type="html"><![CDATA[<p>Hello Alvin,</p><p>We have checked this and all seems work right everywhere but on your installation. If all the source is intact with CVS, all idea I have is any error in site configuration. <br />So please play with the mentioned php.ini file.</p><p>Janusz</p><p>PS One thing just have been eliminated - this is not&nbsp; browser side problem.</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2008-08-01T11:17:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=872#p872</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The file is damaged and could not be repaired]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=862#p862" />
			<content type="html"><![CDATA[<p>Janusz</p><p>I have just gotten word back from tech support on this issue (see bellow)&nbsp; I could also send you a copy of the php.ini file, if that would help.</p><p>Please let me know what you think, thanks, AM</p><p>Dear Alvin Martin,</p><p>Thanks for using our services.</p><p>I&#039;ve just checked your issue and it seems to be a coding issue. Because it seems your php application cannot read full pdf file and therefore showing error message. Please try to contact with your developers and ask them to check this from their end and if something need to be changed in php configuration, you can edit php.ini file, which located inside your cgi-bin folder.</p><p>Should you have any further questions, please feel free to contact us anytime, we are available 24/7.<br />Kind regards,</p><p>Alex Karamushko</p>]]></content>
			<author>
				<name><![CDATA[alvin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=176</uri>
			</author>
			<updated>2008-07-31T12:13:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=862#p862</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The file is damaged and could not be repaired]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=848#p848" />
			<content type="html"><![CDATA[<p>It seems you have broken something in apache or php configuration - all pdf reports are truncated to&nbsp; about 1667 bytes. Check the respective logs. Anyway it is not FA related issue.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2008-07-25T19:42:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=848#p848</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The file is damaged and could not be repaired]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=847#p847" />
			<content type="html"><![CDATA[<p>OK I am back today, with problems, my error is back,&nbsp; After a script reload I was able to print a report fine, that was it, back to the error, the reports are generated just fine and stored in the company pdf folder, they are good files, as I can go get them manually, </p><p>I have tried this with FF, IE, and two different computers, the result is the same.</p><p>What do you think I should try here?</p><p>AM</p>]]></content>
			<author>
				<name><![CDATA[alvin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=176</uri>
			</author>
			<updated>2008-07-25T14:58:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=847#p847</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The file is damaged and could not be repaired]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=845#p845" />
			<content type="html"><![CDATA[<p>Well it worked for just one report, now it quit working again, and I can not dupe what it just did to print a good report.</p><p>OK back again, I don&#039;t know what the problem was, but I deleted all my scripts and uploaded a new set, and all is working for know.</p>]]></content>
			<author>
				<name><![CDATA[alvin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=176</uri>
			</author>
			<updated>2008-07-24T22:57:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=845#p845</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The file is damaged and could not be repaired]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=844#p844" />
			<content type="html"><![CDATA[<p>Wow that was weird, after turning on debug and getting my print, then going back and turning it off, the report prints just fine.</p><p>Who knew!</p>]]></content>
			<author>
				<name><![CDATA[alvin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=176</uri>
			</author>
			<updated>2008-07-24T22:42:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=844#p844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The file is damaged and could not be repaired]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=841#p841" />
			<content type="html"><![CDATA[<p>No idea. You can turn debug on and check if there are some errors or warnings in the PDF source sent.</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2008-07-24T21:56:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=841#p841</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The file is damaged and could not be repaired]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=840#p840" />
			<content type="html"><![CDATA[<p>I reloaded the reporting folder and got the Rep303, and Rep301 sorted out</p><p>But I still get the (The file is damaged and could not be repaired) message, but I do not get it on your demo, or on my local using wamp5.</p><p>Could there be something with my host?</p>]]></content>
			<author>
				<name><![CDATA[alvin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=176</uri>
			</author>
			<updated>2008-07-24T21:51:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=840#p840</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[The file is damaged and could not be repaired]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=836#p836" />
			<content type="html"><![CDATA[<p>I get this message from acrobat, when I try to print a report in Reports and Analysis, Stock Check Sheets. Your demo http://fa2.iron.from.pl/ works fine, However when I use the demo it uses Rep303, and when I use the same report on my system, it uses Rep301<br />What do you think my problem is?</p><p>I have loaded the latest code, but maybe I messed something?</p><p>AM</p>]]></content>
			<author>
				<name><![CDATA[alvin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=176</uri>
			</author>
			<updated>2008-07-24T21:33:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=836#p836</id>
		</entry>
</feed>
