Deprecated: Array and string offset access syntax with curly braces is deprecated in /home10/protege/public_html/tienda/vendor/icanboogie/common/lib/helpers.php on line 306

Warning: Cannot modify header information - headers already sent by (output started at /home10/protege/public_html/tienda/vendor/icanboogie/common/lib/helpers.php:306) in /home10/protege/public_html/tienda/classes/exception/PrestaShopException.php on line 41

[PrestaShopException]

Link to database cannot be established: %s
at line 964 in file classes/Tools.php

959.     * @param bool $htmlentities By default at true for parsing error message with htmlentities
960.     */
961.     public static function displayError($string = 'Fatal error', $htmlentities = true, Context $context = null)
962.     {
963.         if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_) {
964.             throw new PrestaShopException($string);
965.         } else if ('Fatal error' !== $string) {
966.             return $string;
967.         }
968. 
969.         return Context::getContext()->getTranslator()->trans('Fatal error', array(), 'Admin.Notifications.Error');