Company logo being loaded over http and not https so not loading

hello
I have Invoice ninja installed through Cpanel, Installatron on shared hosting and the company logo says it is uploaded but isn’t shown anywhere in the invoice ninja web app or in the pdfs generated.

I have tried to see if there are any errors reported and found the following in the console for chrome

Mixed Content: The page at ‘https://invoiceninja.sundaylaunch.co.uk/invoicing/index.php’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://invoiceninja.sundaylaunch.co.uk/invoicing/storage/p5FPQbYlZ5hN6YgYjsXiOdOca0gRkczu/UZkVjPw7bQFIxxM60yxHmjbMHzNznDNqDu0hb5cg.png’. This request has been blocked; the content must be served over HTTPS.
(anonymous) @ main.foss.dart.js?v=5.7.52:137884

The invoice ninja version is 5.7.52

the latest written in the larvel log file is
[2023-11-30 06:20:02] production.INFO: Performing Autobilling 2023-11-30 06:20:02

in the .env file I have https in the app_url so I’m not fully understanding why this isnt working?

Are you using a proxy? It may help to add TRUSTED_PROXIES=* to the .env file.

Alternatively, you can try adding LOCAL_DOWNLOAD=true.

Hello, thank you, the proxies setting is already in the .env file
I am trying the local download setting nowand it looks to have included the logo, albeit quite large, in the pdf but not anywhere else at the moment.
Thank you for your help, It’s good that it is in the pdf for now.
thanks
Dean

@david do you have any suggestions?

Hello, I am sorry to say that since getting the logo to load in the invoice creation I can now no longer login to the app on my hosting account. I have emailed them to check as it either simply does not load or give an internal server error 500.

they have come back with the following:-

We can only see the following in the error_log of invoiceninja.sundaylaunch.co.uk:

[01-Dec-2023 06:25:32 UTC] PHP Notice:  require(): Read of 7557976 bytes failed with errno=14 Bad address in /home/slhost/invoiceninja.sundaylaunch.co.uk/invoicing/vendor/composer/autoload_real.php on line 31
[01-Dec-2023 15:43:40 UTC] PHP Notice:  require(): Read of 1014 bytes failed with errno=12 Cannot allocate memory in /home/slhost/invoiceninja.sundaylaunch.co.uk/invoicing/vendor/composer/autoload_real.php on line 41

The memory limit is already set to a high value (512MB), but it seems that the domain still requires more. Due to this, we recommend checking the dependencies/scripts used by the application. It might not work properly on cPanel or shared servers, for example.

So, would any of those changes to the .env file have any effect on this do you know?
thanks

I suggest increasing the PHP memory limit to see if it helps.

Hello, thanks, the hosting company have said that 512 is the max for the shared hosting I am on, is there anything else I should be checking as they said:

But once again, we recommend checking the dependencies/scripts used by the application. Something might not work correctly, I also strongly suggest talking to the web developer.

thanks

@david do you have any suggestions?