Skip to main content

ZIP.BAD_OPTION

Error code ZIP.BAD_OPTION, raised by packages. Area: ZIP.

What it means​

  • only_newer works only when adding to an existing archive
  • Files cannot be added to an existing archive with a password
  • The archive … is password-protected; files cannot be added to it

What to do​

  • Turn on add_to_existing, or turn off only_newer.
  • Leave the password out, or write a new archive.
  • Write a new archive instead.

In a Try block, a Catch can match this code. An internal error shows a reference such as ERR-…: an administrator finds the details beside it in the server log.

Search words: ZIP BAD_OPTION bad option