Jump to content

Recommended Posts

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

  • razaro changed the title to PS 1.7.7.0 PHP 8.1 error

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.

PHP 7.4.PNG

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...