Question: Hi I Cannot Download Xl Reports On Digitalocean

Hi I Cannot Download Xl Reports On Digitalocean

Hi I Can't download xl format reports, my website hosted on Digital-Ocean LAMP. Getting the below error ! Thanks This site can’t be reached The webpage at https://nbinventory.com/admin/repo

PB

P Blue

Asked
Hi I Can't download xl format reports, my website hosted on Digital-Ocean LAMP. Getting the below error ! Thanks

This site can’t be reached The webpage at https://nbinventory.com/admin/reports/getSalesReport/0/xls/?v=1 might be temporarily down or it may have moved permanently to a new web address.
ERR_INVALID_RESPONSE
  • MS

    Mian Saleem

    Answered
    Hello,

    Please check your server error logs and let me know the error details so that I can suggest.

    You can try to enable app logs by changing the `log_threshold` to 1 in `app/config/config.php` and try to export the report again to re-produce errors. Lastly check the latest error log in the `app/logs/` folder.

    Thank you
  • PB

    P Blue

    Answered
    App log shows the error below, thanks.

    ERROR - 2021-01-12 17:32:42 --> Severity: error --> Exception: Class 'ZipArchive' not found /var/www/nbinventory/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php 210
  • PB

    P Blue

    Answered
    I hosted on LAMP 18.04, Digital ocean, If you can reply with PHP & ZIP version as well, thanks.
  • PB

    P Blue

    Answered
    PHP version 7.3.21
  • MS

    Mian Saleem

    Answered
    Hello,

    I have very limited experience of server and use third-party server. As I remember you can install php extensions as following

    ```sh
    sudo apt-get install php-xml php-zip
    ```

    You can google to know more.

    Thank you
  • PB

    P Blue

    Answered
    sudo apt-get install php7.2-zip
    Solved. Many thanks.
  • Login to Reply