schmitzal / tinyimg

TYPO3-Extension which compresses images (png & jpg) uploaded in the backend with the tinypng API
GNU General Public License v3.0
15 stars 11 forks source link

Internal Server Error when uploading file #41

Closed webdev2027 closed 5 years ago

webdev2027 commented 5 years ago

Hi Alessandro, I've installed your extension via EM, include the static TS-template (root), insert the API-key at the settings via Extension Manager. Your installation and configuration hints are very clear. I'm using TYPO3 8.7.22 and PHP 7.1 on a managed Server (1&1).

Unfortunately, I still have an error uploading a file. The upload finishes with an Internal Server Error: bildschirmfoto 2018-12-21 um 16 51 30

But if I reload, I'll can see the file is there, but not compressed. bildschirmfoto 2018-12-21 um 16 51 08

The same picture should be minimized to 240kb. bildschirmfoto 2018-12-21 um 16 20 34

I've read all the closed issues, but I think I'm the first, who have this problems?! Is the fault with me or my configuration? Can you help me?

Thanks, Stefan

schmitzal commented 5 years ago

Happy new year Stefan!

Which version of tinyimg are you using? Could you have a look at the Backend Module "Log" after uploading a file and see if there is any error showing up? Or you could look at the "Network" tab in you browser developer tools and then upload the file. A XHR request should come up and show an error under the "Preview" tab of this request.

webdev2027 commented 5 years ago

Hi Alessandro - happy new year! Thanks for your reply. I'm using TYPO3 8.7 LTSand the latest tinyimg 1.3.0, installed via EM.

There's no error in Log, after uploading file. After checking the Filelist again, I see the uploaded image - but there's not compressed. So the upload is working, but not the compression.

I've checked the developer tools, after uploading the image there's a 200- and 500-status. Is this helpful? bildschirmfoto 2019-01-07 um 13 17 35

Thanks, Stefan edit .. there's a status info "image is getting compressed .. " for a few ms .. after the error message. see: bildschirmfoto 2019-01-07 um 13 29 22

API key is ready bildschirmfoto 2019-01-07 um 13 33 10

schmitzal commented 5 years ago

Hello Stefan, full support for installations via extension manager has been dropped with version 1.3.0. So using this version won't work, without installing the tinify package manually (see README). If you click on the 500 request in the network tool and open up the preview tab it should show an error of a missing tinify class.

ayacoo commented 5 years ago

@schmitzal Maybe its helpful, also for you, to implement an"tinify check"? So you can address such a problem or give a matching error message?

webdev2027 commented 5 years ago

Hello Stefan, full support for installations via extension manager has been dropped with version 1.3.0. So using this version won't work, without installing the tinify package manually (see README). If you click on the 500 request in the network tool and open up the preview tab it should show an error of a missing tinify class.

Hello Alessandro .. uhhh my fault. Excuse me I did not read the documentation carefully. So, my TYPO3-Project is not a Composer-Project, so I have no chance to use your extension, right? You have to install tinify also with composer - that's the problem. And I also use a managed Server from 1&1. Thanks for your patience ...

.. I see the manual installation, so I give it a try : https://tinypng.com/developers/reference/php

schmitzal commented 5 years ago

@schmitzal Maybe its helpful, also for you, to implement an"tinify check"? So you can address such a problem or give a matching error message?

Sure. I'll add this to my roadmap, thanks :)

schmitzal commented 5 years ago

Hello Stefan, full support for installations via extension manager has been dropped with version 1.3.0. So using this version won't work, without installing the tinify package manually (see README). If you click on the 500 request in the network tool and open up the preview tab it should show an error of a missing tinify class.

Hello Alessandro .. uhhh my fault. Excuse me I did not read the documentation carefully. So, my TYPO3-Project is not a Composer-Project, so I have no chance to use your extension, right? You have to install tinify also with composer - that's the problem. And I also use a managed Server from 1&1. Thanks for your patience ...

.. I see the manual installation, so I give it a try : https://tinypng.com/developers/reference/php

If this managed server doesn't come with composer you will have to install the package manually and get it to work. Could be a bit tricky. Even better would be, to build the project on a server with composer (or on a local maschine) and deploy it to the server once builded.

webdev2027 commented 5 years ago

Hi Alessandro, today I've install your extension via composer and It works great. Thank you. You can close this issue.

schmitzal commented 5 years ago

Great to hear. If you experience any further issues with the extension, feel free to open a new issue.