Buenas a todos,
Llevo unos días peleándome con una migración que hice de producción a local.
Utilizo MAMP en MacOS con una versión de php 7.3.1 y versión de PS 1.7
Aquí lo que sucede, a ver si podéis echarme un cable. Gracias!
Cuando accedo al sitio web migrado con modo DEBUG DESACTIVADO:
- Home carga pero sin imágenes ni estilo de texto ni personalizaciones.
- Página de contenido, error: The requested URL /index.php was not found on this server.
- Intento acceder al backoffice: La página localhost no puede procesar esta solicitud ahora. // HTTP ERROR 500
Cuando accedo al sitio web migrado con modo DEBUG ACTIVADO (desde el archivo defines.inc.php lo activo):
- Cuando accedo al backoffice, aparece la página de "whoops, looks like something went wrong..":
(1/1) ContextErrorException
Notice: Constant _PS_DISPLAY_COMPATIBILITY_WARNING_ already defined
in defines.inc.php line 32
at require_once('/Applications/MAMP/htdocs/sbrand/config/defines.inc.php')
in autoload.php line 31
at require_once('/Applications/MAMP/htdocs/sbrand/autoload.php')
in index.php line 87
- Cuando accedo a la Home, aparece la página de "whoops, looks like something went wrong..":
(1/1) ContextErrorException
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
in MessageFactory.php line 197
at ErrorHandler->handleError(2, '"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?', '/Applications/MAMP/htdocs/shaper-brand/vendor/guzzlehttp/guzzle/src/Message/MessageFactory.php', 197, array('class' => 'GuzzleHttp\\Message\\MessageFactory', 'e' => 32767, 'file' => '/Applications/MAMP/htdocs/shaper-brand/vendor/composer/../guzzlehttp/guzzle/src/Message/MessageFactory.php', 'wasCached' => false))
in DebugClassLoader.php line 146
at require()
in DebugClassLoader.php line 146
at DebugClassLoader->loadClass('GuzzleHttp\\Message\\MessageFactory')
at spl_autoload_call('GuzzleHttp\\Message\\MessageFactory')
in Client.php line 78
at Client->__construct(array('base_url' => 'https://api-addons.prestashop.com', 'defaults' => array('timeout' => '5.0'), 'headers' => array('Accept' => 'application/json')))
in ModuleManagerBuilder.php line 159
at ModuleManagerBuilder->__construct()
in ModuleManagerBuilder.php line 77
at ModuleManagerBuilder::getInstance()
in Link.php line 782
at LinkCore->getImageLink('', 'es-default', 'large_default')
in ImageRetriever.php line 226
at ImageRetriever->getNoPictureImage(object(Language))
in FrontController.php line 1517
at FrontControllerCore->getTemplateVarUrls()
in FrontController.php line 501
at FrontControllerCore->assignGeneralPurposeVariables()
in FrontController.php line 544
at FrontControllerCore->initContent()
in IndexController.php line 37
at IndexControllerCore->initContent()
in Controller.php line 255
at ControllerCore->run()
in Dispatcher.php line 428
at DispatcherCore->dispatch()
in index.php line 28