sosorio75 Posted April 9, 2023 Share Posted April 9, 2023 Buenas, alguien me puede explicar que puede estar causando el siguiente mensaje: ===================================================================================================== Deprecated: AppKernel implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/gamersperu/gamersperu/app/AppKernel.php on line 33 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/gamersperu/gamersperu/config/bootstrap.php on line 89 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/gamersperu/gamersperu/config/bootstrap.php on line 89 Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, Shop given in /home/gamersperu/gamersperu/src/Adapter/EntityMapper.php:99 Stack trace: #0 /home/gamersperu/gamersperu/src/Adapter/EntityMapper.php(99): array_key_exists('id_shop', Object(Shop)) #1 /home/gamersperu/gamersperu/classes/ObjectModel.php(264): PrestaShop\PrestaShop\Adapter\EntityMapper->load(1, NULL, Object(Shop), Array, NULL, true) #2 /home/gamersperu/gamersperu/classes/shop/Shop.php(128): ObjectModelCore->__construct(1, NULL, NULL) #3 /home/gamersperu/gamersperu/classes/shop/Shop.php(411): ShopCore->__construct(1) #4 /home/gamersperu/gamersperu/config/config.inc.php(118): ShopCore::initialize() #5 /home/gamersperu/gamersperu/index.php(27): require('/home/gamersper...') #6 {main} thrown in /home/gamersperu/gamersperu/src/Adapter/EntityMapper.php on line 99 ===================================================================================================== Ayer todo funcionaba bien. Gracias. Link to comment Share on other sites More sharing options...
ComGrafPL Posted April 9, 2023 Share Posted April 9, 2023 En PS 1.7 deberías usar PHP 7.4. Pruébelo. Actualice prestashop a 1.8 (no se recomienda para la tienda en vivo) o una versión inferior de PHP. 1 Link to comment Share on other sites More sharing options...
ExpertoPrestaShop Posted April 10, 2023 Share Posted April 10, 2023 Aquí el tutorial completo de como verificar los requisitos necesarios de compatibilidad de tu hosting con tu tienda Prestashop: Link to comment Share on other sites More sharing options...
sosorio75 Posted April 11, 2023 Author Share Posted April 11, 2023 Hola, muchas gracias por sus respuestas. La actualización del motor de PHP a 8.1 fue realizada hace meses y mi tienda estaba funcionando con normalidad. El error se presentó de manera súbita. Al cambiar de versión de PHP a PHP 7.4, me saltan todos los mensajes que figuran en el adjunto PHP 7.4.PNG. Pero al cambiar a la versión PHP 8.0 solo me salta este mensaje: ===================================================================================================== Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, Shop given in /home/gamersperu/gamersperu/src/Adapter/EntityMapper.php:99 Stack trace: #0 /home/gamersperu/gamersperu/src/Adapter/EntityMapper.php(99): array_key_exists('id_shop', Object(Shop)) #1 /home/gamersperu/gamersperu/classes/ObjectModel.php(264): PrestaShop\PrestaShop\Adapter\EntityMapper->load('1', NULL, Object(Shop), Array, NULL, true) #2 /home/gamersperu/gamersperu/classes/shop/Shop.php(128): ObjectModelCore->__construct('1', NULL, NULL) #3 /home/gamersperu/gamersperu/classes/shop/Shop.php(411): ShopCore->__construct('1') #4 /home/gamersperu/gamersperu/config/config.inc.php(118): ShopCore::initialize() #5 /home/gamersperu/gamersperu/index.php(27): require('/home/gamersper...') #6 {main} thrown in /home/gamersperu/gamersperu/src/Adapter/EntityMapper.php on line 99 ===================================================================================================== Lo he dejado con la versión 8.0 que es la que menos errores tiene. Si alguien me puede ayudar con ese mensaje por favor. Nota.- phppsinfo.php => https://www.gamersperu.org/phppsinfo.php Gracias. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now