Virtual URL for the shop is not available after put SSL

Keywords: PrestaShop - Google Cloud Platform - Technical issue - Secure Connections (SSL/HTTPS)
bnsupport ID: 71280c4d-74bf-eb32-7abf-3b4cbfb74176
Description:

  • Deploy from Google cloud deployment manager
  • Access console then setup SSL Letsencript with sudo /opt/bitnami/bncert-tool
  • Set rewrite to www and cast to https
  • Get in administration then enable SSL for all pages and multistore
  • Create new store with virtual URL access

The new store cannot be accessed with virtual URL by yield HTTP error 500

Hi @krid.ji,

Our support tool detected the following issues in your instance

? Resources: Found possible issues
✓ Php: No issues found
? Apache: Found possible issues
✓ Connectivity: No issues found
✓ Mariadb: No issues found

[Resources]

Your instance has little available RAM memory.

 total used free shared buff/cache available Mem: 584 407 56 17 119 69 Swap: 634 176 458

You could try to increase your instance’s memory. Please check your cloud provider’s documentation for more information.

[Apache]

Found recent error or warning messages in the Apache error log.

[Fri Jun 11 05:34:54.541630 2021] [proxy_fcgi:error] [pid 3456:tid 140051082106624] [client 58.11.14.172:53930] AH01071: Got error 'PHP message: PHP Notice: Trying to get property 'precision' of non-object in /bitnami/prestashop/classes/Context.php on line 467PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to PrestaShop\PrestaShop\Core\Localization\CLDR\ComputingPrecision::getPrecision() must be of the type int, null given, called in /bitnami/prestashop/classes/Context.php on line 467 and defined in /bitnami/prestashop/src/Core/Localization/CLDR/ComputingPrecision.php:41
Stack trace:
#0 /bitnami/prestashop/classes/Context.php(467): PrestaShop\PrestaShop\Core\Localization\CLDR\ComputingPrecision->getPrecision(NULL)
#1 /bitnami/prestashop/classes/Cart.php(2142): ContextCore->getComputingPrecision()
#2 /bitnami/prestashop/src/Adapter/Presenter/Cart/CartPresenter.php(327): CartCore->getOrderTotal(false, 1)
#3 /bitnami/prestashop/classes/controller/FrontController.php(501): PrestaShop\PrestaShop\Adapter\Presenter\Cart\CartPresenter->present(Object(Cart))
#4 /bitnami/prestashop/classes/controller/FrontController.php(567): FrontControllerCore->assignGeneralPurposeVariables()
#5 /bitnami/prestashop/controllers/front/IndexController.php(37): FrontC...'
 [Fri Jun 11 05:34:59.167740 2021] [proxy_fcgi:error] [pid 3456:tid 140051199538944] [client 58.11.14.172:53934] AH01071: Got error 'PHP message: PHP Notice: Trying to get property 'precision' of non-object in /bitnami/prestashop/classes/Context.php on line 467PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to PrestaShop\PrestaShop\Core\Localization\CLDR\ComputingPrecision::getPrecision() must be of the type int, null given, called in /bitnami/prestashop/classes/Context.php on line 467 and defined in /bitnami/prestashop/src/Core/Localization/CLDR/ComputingPrecision.php:41
Stack trace:
#0 /bitnami/prestashop/classes/Context.php(467): PrestaShop\PrestaShop\Core\Localization\CLDR\ComputingPrecision->getPrecision(NULL)
#1 /bitnami/prestashop/classes/Cart.php(2142): ContextCore->getComputingPrecision()
#2 /bitnami/prestashop/src/Adapter/Presenter/Cart/CartPresenter.php(327): CartCore->getOrderTotal(false, 1)
#3 /bitnami/prestashop/classes/controller/FrontController.php(501): PrestaShop\PrestaShop\Adapter\Presenter\Cart\CartPresenter->present(Object(Cart))
#4 /bitnami/prestashop/classes/controller/FrontController.php(567): FrontControllerCore->assignGeneralPurposeVariables()
#5 /bitnami/prestashop/controllers/front/IndexController.php(37): FrontC...'
 [Fri Jun 11 05:39:25.747492 2021] [proxy_fcgi:error] [pid 3114:tid 140051115513600] [client 58.11.14.172:54060] AH01071: Got error 'PHP message: PHP Notice: Trying to get property 'precision' of non-object in /bitnami/prestashop/classes/Context.php on line 467PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to PrestaShop\PrestaShop\Core\Localization\CLDR\ComputingPrecision::getPrecision() must be of the type int, null given, called in /bitnami/prestashop/classes/Context.php on line 467 and defined in /bitnami/prestashop/src/Core/Localization/CLDR/ComputingPrecision.php:41
Stack trace:
#0 /bitnami/prestashop/classes/Context.php(467): PrestaShop\PrestaShop\Core\Localization\CLDR\ComputingPrecision->getPrecision(NULL)
#1 /bitnami/prestashop/classes/Cart.php(2142): ContextCore->getComputingPrecision()
#2 /bitnami/prestashop/src/Adapter/Presenter/Cart/CartPresenter.php(327): CartCore->getOrderTotal(false, 1)
#3 /bitnami/prestashop/classes/controller/FrontController.php(501): PrestaShop\PrestaShop\Adapter\Presenter\Cart\CartPresenter->present(Object(Cart))
#4 /bitnami/prestashop/classes/controller/FrontController.php(567): FrontControllerCore->assignGeneralPurposeVariables()
#5 /bitnami/prestashop/controllers/front/IndexController.php(37): FrontC...'

Please check the following guide to troubleshoot server issues:

https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/

Dear Jota,

I have previously used Google cloud instance of this profile for Prestashop for some testing without SSL.

The virtual url for http shop is working fine there.

For sure, I will scale the resource for the instance, but as the virtual url working fine with my same spec instance, this issue may not totally relate to the resource issue.

Maybe there should be some Apache configuration need to be fixed ?

Hi @krid.ji,

The Bitnami support tool also showed app-related error messages

PHP Fatal error: Uncaught TypeError: Argument 1 passed to PrestaShop\PrestaShop\Core\Localization\CLDR\ComputingPrecision::getPrecision() must be of the type int, null given

That’s something related to the application and the extensions you may have. I suggest you check in the Prestashop forums to know more about that error. For example, there is an old thread in its forum talking about a similar problem

https://www.prestashop.com/forums/topic/1039698-1-click-16124-to-1770-prestashopinstallerexception-errors/