andriusr / OpenQuotesAndContracts

GNU General Public License v3.0
5 stars 12 forks source link

Error: PCLZIP_ERR_BAD_FORMAT #2

Open clukin opened 9 years ago

clukin commented 9 years ago

Error: PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

andriusr commented 9 years ago

Could you provide more details what the problem is?

clukin commented 9 years ago

When using module loader to install OpenQuotesAndContracts-oqc-2.2RC3.zip, after browsing for local zip file the module loader starts and then comes back a few seconds later with Error: PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature.

SugarCRM: Version 6.5.20 (Build 1001)

PHP Version => 5.3.3

Directive => Local Value => Master Value allow_call_time_pass_reference => Off => Off allow_url_fopen => On => On allow_url_include => Off => Off always_populate_raw_post_data => Off => Off arg_separator.input => & => & arg_separator.output => & => & asp_tags => Off => Off auto_append_file => no value => no value auto_globals_jit => On => On auto_prepend_file => no value => no value browscap => no value => no value default_charset => no value => no value default_mimetype => text/html => text/html define_syslog_variables => Off => Off disable_classes => no value => no value disable_functions => no value => no value display_errors => Off => Off display_startup_errors => Off => Off doc_root => no value => no value docref_ext => no value => no value docref_root => no value => no value enable_dl => Off => Off error_append_string => no value => no value error_log => no value => no value error_prepend_string => no value => no value error_reporting => 22527 => 22527 exit_on_timeout => Off => Off expose_php => On => On extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules file_uploads => On => On highlight.bg => #FFFFFF => #FFFFFF highlight.comment => #FF8000 => #FF8000 highlight.default => #0000BB => #0000BB highlight.html => #000000 => #000000 highlight.keyword => #007700 => #007700 highlight.string => #DD0000 => #DD0000 html_errors => Off => Off ignore_repeated_errors => Off => Off ignore_repeated_source => Off => Off ignore_user_abort => Off => Off implicit_flush => On => On include_path => .:/usr/share/pear:/usr/share/php => .:/usr/share/pear:/usr/share/php log_errors => On => On log_errors_max_len => 1024 => 1024 magic_quotes_gpc => Off => Off magic_quotes_runtime => Off => Off magic_quotes_sybase => Off => Off mail.add_x_header => On => On mail.force_extra_parameters => no value => no value mail.log => no value => no value max_execution_time => 0 => 0 max_file_uploads => 20 => 20 max_input_nesting_level => 64 => 64 max_input_time => -1 => -1 max_input_vars => 1000 => 1000 memory_limit => 256M => 256M open_basedir => no value => no value output_buffering => 0 => 0 output_handler => no value => no value post_max_size => 120M => 120M precision => 14 => 14 realpath_cache_size => 16K => 16K realpath_cache_ttl => 120 => 120 register_argc_argv => On => On register_globals => Off => Off register_long_arrays => Off => Off report_memleaks => On => On report_zend_debug => Off => Off request_order => GP => GP safe_mode => Off => Off safe_mode_exec_dir => no value => no value safe_mode_gid => Off => Off safe_mode_include_dir => no value => no value sendmail_from => no value => no value sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i serialize_precision => 100 => 100 short_open_tag => Off => Off SMTP => localhost => localhost smtp_port => 25 => 25 sql.safe_mode => Off => Off track_errors => Off => Off unserialize_callback_func => no value => no value upload_max_filesize => 60M => 60M upload_tmp_dir => no value => no value user_dir => no value => no value user_ini.cache_ttl => 300 => 300 user_ini.filename => .user.ini => .user.ini variables_order => EGPCS => EGPCS xmlrpc_error_number => 0 => 0 xmlrpc_errors => Off => Off y2k_compliance => On => On zend.enable_gc => On => On

clukin commented 9 years ago

Actually on: SugarCRM Community Edition: Version 6.5.20 (Build 1001)

dszego commented 9 years ago

I'm getting this too... It's a generic Zip error meaning "Can't find the end of the zip file". Going to try re-zipping it.

dszego commented 9 years ago

...except then it says it's missing a manifest file, even though it has one. Argh.

clukin commented 9 years ago

any updates ... I am looking to load module ASAP to import products

dszego commented 9 years ago

So here’s the fix…

Unzip the file you download from Sourceforge. Go into that directory, and re-zip the files recursively, to a zip file outside of that directory. i.e.

cd ~/Downloads/OpenQuotesAndContracts-master zip -r ../OQC-fixed *

That will make sure the files are all from the root of the zip you create, and not included in an OpenQuotesAndContracts-master directory within the zip - this is why you get the “missing manifest.php” problem.

Upload the OQC-fixed.zip you created. All will be good.

…except that the whole project is over a year old since the last update. That’s a different problem.

On Apr 21, 2015, at 11:48 am, clukin notifications@github.com wrote:

any updates ... I am looking to load module ASAP to import products

— Reply to this email directly or view it on GitHub https://github.com/andriusr/OpenQuotesAndContracts/issues/2#issuecomment-94847786.

andriusr commented 9 years ago

Indeed there is issues that Github creates extra folder when using standard release method. I added Releases folder to the master, and from now all zip files will be hosted there. They should install without the problems described above.

tartarux commented 8 years ago

dszego, thanks for your advice. Was totally usefull.