alxtecnology Posted December 2, 2019 Share Posted December 2, 2019 (edited) Buenas tardes. Tengo el siguiente error al intentar entrar a traducciones en el backoffice: Warning: file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 Ya active en CPanel en PHP el allow_url_fopen= on Pero no soluciono. La depuración la tengo activada y esto es lo que arroja: Exception Symfony\Component\Debug\Exception\ContextErrorException in src/Core/Language/Pack/Loader/RemoteLanguagePackLoader.php (line 60) * {@inheritdoc} */ public function getLanguagePackList() { $normalizedLink = str_replace('%ps_version%', $this->version->getVersion(), self::PACK_LINK); $jsonResponse = file_get_contents($normalizedLink); $result = []; if ($jsonResponse) { $result = json_decode($jsonResponse, true); } RemoteLanguagePackLoader->getLanguagePackList()in var/cache/dev/ContainerGyfkpd5/getPrestashop_Core_Form_ChoiceProvider_NonInstalledLocalizationService.php (line 😎 require('/home/systemci/public_html/geteasystore.com/var/cache/dev/ContainerGyfkpd5/getPrestashop_Core_Form_ChoiceProvider_NonInstalledLocalizationService.php')in var/cache/dev/ContainerGyfkpd5/appDevDebugProjectContainer.php (line 1710) appDevDebugProjectContainer->load('getPrestashop_Core_Form_ChoiceProvider_NonInstalledLocalizationService.php')in var/cache/dev/ContainerGyfkpd5/getForm_Type_Translations_AddUpdateLanguageService.php (line 😎 require('/home/systemci/public_html/geteasystore.com/var/cache/dev/ContainerGyfkpd5/getForm_Type_Translations_AddUpdateLanguageService.php')in var/cache/dev/ContainerGyfkpd5/appDevDebugProjectContainer.php (line 1710) appDevDebugProjectContainer->load('getForm_Type_Translations_AddUpdateLanguageService.php')in var/cache/dev/ContainerGyfkpd5/getForm_RegistryService.php (line 105) appDevDebugProjectContainer->{closure}()in vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ServiceLocator.php (line 64) ServiceLocator->get('PrestaShopBundle\\Form\\Admin\\Improve\\International\\Translations\\AddUpdateLanguageType')in vendor/symfony/symfony/src/Symfony/Component/Form/Extension/DependencyInjection/DependencyInjectionExtension.php (line 65) DependencyInjectionExtension->getType('PrestaShopBundle\\Form\\Admin\\Improve\\International\\Translations\\AddUpdateLanguageType')in vendor/symfony/symfony/src/Symfony/Component/Form/FormRegistry.php (line 78) FormRegistry->getType('PrestaShopBundle\\Form\\Admin\\Improve\\International\\Translations\\AddUpdateLanguageType')in vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php (line 74) FormFactory->createNamedBuilder('add_update_language', 'PrestaShopBundle\\Form\\Admin\\Improve\\International\\Translations\\AddUpdateLanguageType', null, array())in vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php (line 101) FormBuilder->create('add_update_language', 'PrestaShopBundle\\Form\\Admin\\Improve\\International\\Translations\\AddUpdateLanguageType', array())in vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php (line 255) FormBuilder->resolveChildren()in vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php (line 202) FormBuilder->getForm()in src/PrestaShopBundle/Form/Admin/Improve/International/Translations/TranslationsSettingsFormHandler.php (line 89) TranslationsSettingsFormHandler->getForm()in src/PrestaShopBundle/Controller/Admin/TranslationsController.php (line 103) TranslationsController->showSettingsAction(object(Request))in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151) HttpKernel->handleRaw(object(Request), 1)in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68) HttpKernel->handle(object(Request), 1, false)in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200) Kernel->handle(object(Request), 1, false)in admin720/index.php (line 86) LOGS 2: LevelChannelMessage DEBUG15:54:16doctrineSELECT name FROM pssa_module WHERE active = 1 INFO15:54:16requestMatched route "admin_international_translations_show_settings". DEBUG15:54:16securityRead existing security token from the session. DEBUG15:54:16securityUser was reloaded from a user provider. DEBUG15:54:17doctrineSELECT p0_.id AS id_0, p0_.id_employee AS id_employee_1, p0_.id_module AS id_module_2, p0_.date_add AS date_add_3, p0_.date_upd AS date_upd_4 FROM pssa_module_history p0_ WHERE p0_.id_employee = ? INFO15:54:17phpUser Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector". CRITICAL15:54:17phpUncaught Warning: file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 CRITICAL15:54:17requestUncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0" at /home/systemci/public_html/geteasystore.com/src/Core/Language/Pack/Loader/RemoteLanguagePackLoader.php line 60 Stack Trace ContextErrorException Symfony\Component\Debug\Exception\ContextErrorException: Warning: file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 at src/Core/Language/Pack/Loader/RemoteLanguagePackLoader.php:60 at PrestaShop\PrestaShop\Core\Language\Pack\Loader\RemoteLanguagePackLoader->getLanguagePackList() (var/cache/dev/ContainerGyfkpd5/getPrestashop_Core_Form_ChoiceProvider_NonInstalledLocalizationService.php:8) at require('/home/systemci/public_html/geteasystore.com/var/cache/dev/ContainerGyfkpd5/getPrestashop_Core_Form_ChoiceProvider_NonInstalledLocalizationService.php') (var/cache/dev/ContainerGyfkpd5/appDevDebugProjectContainer.php:1710) at ContainerGyfkpd5\appDevDebugProjectContainer->load('getPrestashop_Core_Form_ChoiceProvider_NonInstalledLocalizationService.php') (var/cache/dev/ContainerGyfkpd5/getForm_Type_Translations_AddUpdateLanguageService.php:8) at require('/home/systemci/public_html/geteasystore.com/var/cache/dev/ContainerGyfkpd5/getForm_Type_Translations_AddUpdateLanguageService.php') (var/cache/dev/ContainerGyfkpd5/appDevDebugProjectContainer.php:1710) at ContainerGyfkpd5\appDevDebugProjectContainer->load('getForm_Type_Translations_AddUpdateLanguageService.php') (var/cache/dev/ContainerGyfkpd5/getForm_RegistryService.php:105) at ContainerGyfkpd5\appDevDebugProjectContainer->{closure}() (vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ServiceLocator.php:64) at Symfony\Component\DependencyInjection\ServiceLocator->get('PrestaShopBundle\\Form\\Admin\\Improve\\International\\Translations\\AddUpdateLanguageType') (vendor/symfony/symfony/src/Symfony/Component/Form/Extension/DependencyInjection/DependencyInjectionExtension.php:65) at Symfony\Component\Form\Extension\DependencyInjection\DependencyInjectionExtension->getType('PrestaShopBundle\\Form\\Admin\\Improve\\International\\Translations\\AddUpdateLanguageType') (vendor/symfony/symfony/src/Symfony/Component/Form/FormRegistry.php:78) at Symfony\Component\Form\FormRegistry->getType('PrestaShopBundle\\Form\\Admin\\Improve\\International\\Translations\\AddUpdateLanguageType') (vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php:74) at Symfony\Component\Form\FormFactory->createNamedBuilder('add_update_language', 'PrestaShopBundle\\Form\\Admin\\Improve\\International\\Translations\\AddUpdateLanguageType', null, array()) (vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php:101) at Symfony\Component\Form\FormBuilder->create('add_update_language', 'PrestaShopBundle\\Form\\Admin\\Improve\\International\\Translations\\AddUpdateLanguageType', array()) (vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php:255) at Symfony\Component\Form\FormBuilder->resolveChildren() (vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php:202) at Symfony\Component\Form\FormBuilder->getForm() (src/PrestaShopBundle/Form/Admin/Improve/International/Translations/TranslationsSettingsFormHandler.php:89) at PrestaShopBundle\Form\Admin\Improve\International\Translations\TranslationsSettingsFormHandler->getForm() (src/PrestaShopBundle/Controller/Admin/TranslationsController.php:103) at PrestaShopBundle\Controller\Admin\TranslationsController->showSettingsAction(object(Request)) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, false) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200) at Symfony\Component\HttpKernel\Kernel->handle(object(Request), 1, false) (admin720/index.php:86) Edited December 2, 2019 by alxtecnology cambio titulo (see edit history) Link to comment Share on other sites More sharing options...
Luisejo Posted December 3, 2019 Share Posted December 3, 2019 Hola, La versión 1.7.6.0 llegó cargada de errores de traducción. Te recomiendo que si es un proyecto nuevo, borres e instales la versión 1.7.6.1 o la última estable en su momento. Si es un proyecto ya en marcha, migra. Saludos. Link to comment Share on other sites More sharing options...
alxtecnology Posted December 3, 2019 Author Share Posted December 3, 2019 hace 8 horas, Luisejo dijo: Hola, La versión 1.7.6.0 llegó cargada de errores de traducción. Te recomiendo que si es un proyecto nuevo, borres e instales la versión 1.7.6.1 o la última estable en su momento. Si es un proyecto ya en marcha, migra. Saludos. Gracias por su colaboración. Hice la migración a la versión 1.7.6.1, aun así, continúan los errores. De todas maneras gracias Link to comment Share on other sites More sharing options...
David Ortega Posted April 10 Share Posted April 10 Hola, 5 años después, me he encontrado este problema también en mi PS 1.7.8.4. Warning: file_get_contents(http://i18n.prestashop.com/translations/1.7.8.4/available_languages.json): failed to open stream: Connection timed out ExceptionLogs 2Stack Trace Symfony\Component\Debug\Exception\ ContextErrorException in src/Core/Language/Pack/Loader/RemoteLanguagePackLoader.php (line 60) * {@inheritdoc} */ public function getLanguagePackList() { $normalizedLink = str_replace('%ps_version%', $this->version->getVersion(), self::PACK_LINK); $jsonResponse = file_get_contents($normalizedLink); $result = []; if ($jsonResponse) { $result = json_decode($jsonResponse, true); } RemoteLanguagePackLoader->getLanguagePackList() in var/cache/dev/ContainerEwulbcd/getPrestashop_Core_Form_ChoiceProvider_NonInstalledLocalizationService.php (line 8) 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