Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined index: Content-Disposition #56

Open
mdawart opened this issue Sep 8, 2024 · 1 comment
Open

Undefined index: Content-Disposition #56

mdawart opened this issue Sep 8, 2024 · 1 comment

Comments

@mdawart
Copy link

mdawart commented Sep 8, 2024

I think this is the same as in #46 and I posted it as a comment there earlier, but I assume this is unwatched - so I add a new issue for this:

  "exception" => ErrorException {
    #message: "Notice: Undefined index: Content-Disposition"
    #code: 0
    #file: "./vendor/ilovepdf/ilovepdf-php/src/Task.php"
    #line: 295
    #severity: E_NOTICE
    trace: {
      ./vendor/ilovepdf/ilovepdf-php/src/Task.php:295 { …}
      ./vendor/ilovepdf/ilovepdf-php/src/Task.php:235 { …}
      ./src/Service/ILovePdfHandler.php:39 {
        App\Service\ILovePdfHandler::compress(Email $email): array^
        › mkdir($compressedPath);
        › $myTaskCompress->download($path . 'compressed/');
        › EmailHandler::unpackFile('output.zip', $compressedPath);
      }

(we are using an older version of the library)

@Melfith
Copy link

Melfith commented Nov 8, 2024

This issue has been fixed in the later version. Your error is certainly due to a response with "content-disposition" within the header instead of "Content-Disposition".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@mdawart @Melfith and others