Jump to content

added language problem


Recommended Posts

Hello everyone, sorry for my bad English,

 

I have a problem I can not figure out what comes when I try to add a language in prestashop version 1.6, going the localization translations I have this message "Unable to connect to the site to get the list of PrestaShop languages." I contacted the hosting service asking to open any doors of communication but they respond that the doors are open, so I wonder why I still have this error message?

 

thanks for your help

Link to comment
Share on other sites

this may be because php.ini is not allow_url_open

 

you can check your php.ini using this free module

https://www.prestashop.com/forums/topic/278164-free-module-display-php-environment-phpinfo-back-office/

 

 

another option is to download the language pack from here

https://www.prestashop.com/en/translations

then ftp to your prestashop translations folder

Link to comment
Share on other sites

this may be because php.ini is not allow_url_open

 

you can check your php.ini using this free module

https://www.prestashop.com/forums/topic/278164-free-module-display-php-environment-phpinfo-back-office/

 

 

another option is to download the language pack from here

https://www.prestashop.com/en/translations

then ftp to your prestashop translations folder

 

thanks for your reply but it all seems ok


PHP Core

Directive	Local Value	Master Value
allow_call_time_pass_reference	On	On
allow_url_fopen	On	On
allow_url_include	Off	Off
always_populate_raw_post_data	Off	Off
arg_separator.input	&	&
arg_separator.output	&	&
asp_tags	Off	Off
auto_append_file	no value	no value
auto_globals_jit	On	On
auto_prepend_file	no value	no value
browscap	no value	no value
default_charset	utf-8	no value
default_mimetype	text/html	text/html
define_syslog_variables	Off	Off
disable_classes	no value	no value
disable_functions	no value	no value
display_errors	Off	On
display_startup_errors	On	On
doc_root	no value	no value
docref_ext	no value	no value
docref_root	no value	no value
enable_dl	On	On
error_append_string	no value	no value
error_log	no value	no value
error_prepend_string	no value	no value
error_reporting	30711	30711
exit_on_timeout	Off	Off
expose_php	Off	Off
extension_dir	/usr/local/php-5.3.28/lib/php/20090626	/usr/local/php-5.3.28/lib/php/20090626
file_uploads	On	On
highlight.bg	#FFFFFF	#FFFFFF
highlight.comment	#FF8000	#FF8000
highlight.default	#0000BB	#0000BB
highlight.html	#000000	#000000
highlight.keyword	#007700	#007700
highlight.string	#DD0000	#DD0000
html_errors	On	On
ignore_repeated_errors	Off	Off
ignore_repeated_source	Off	Off
ignore_user_abort	Off	Off
implicit_flush	Off	Off
include_path	.:/usr/local/php-5.3.28/share/pear	.:/usr/local/php-5.3.28/share/pear
log_errors	Off	Off
log_errors_max_len	1024	1024
magic_quotes_gpc	Off	Off
magic_quotes_runtime	Off	Off
magic_quotes_sybase	Off	Off
mail.add_x_header	Off	Off
mail.force_extra_parameters	no value	no value
mail.log	no value	no value
max_execution_time	30	30
max_file_uploads	20	20
max_input_nesting_level	64	64
max_input_time	-1	-1
max_input_vars	1000	1000
memory_limit	128M	128M
open_basedir	no value	no value
output_buffering	no value	no value
output_handler	no value	no value
post_max_size	20M	20M
precision	12	12
realpath_cache_size	16K	16K
realpath_cache_ttl	120	120
register_argc_argv	On	On
register_globals	Off	Off
register_long_arrays	On	On
report_memleaks	On	On
report_zend_debug	On	On
request_order	no value	no value
safe_mode	Off	Off
safe_mode_exec_dir	no value	no value
safe_mode_gid	Off	Off
safe_mode_include_dir	no value	no value
sendmail_from	no value	no value
sendmail_path	/usr/local/bin/sendmail -oi -t	/usr/local/bin/sendmail -oi -t
serialize_precision	100	100
short_open_tag	On	On
SMTP	localhost	localhost
smtp_port	25	25
sql.safe_mode	Off	Off
track_errors	Off	Off
unserialize_callback_func	no value	no value
upload_max_filesize	5M	5M
upload_tmp_dir	/tmp	/tmp
user_dir	no value	no value
user_ini.cache_ttl	300	300
user_ini.filename	.user.ini	.user.ini
variables_order	EGPCS	EGPCS
xmlrpc_error_number	0	0
xmlrpc_errors	Off	Off
y2k_compliance	On	On
zend.enable_gc	On	On

Link to comment
Share on other sites

Looked a code a bit, the only two things I can think to do is 1) check with hosting to make sure curl is enabled,

 

(also look at your phpinfo from module)

 

if it is enabled open this file

classes/Tools.php

 

find this line of code

	public static function file_get_contents($url, $use_include_path = false, $stream_context = null, $curl_timeout = 5)

change $curl_timeout timeout to higher value...

Link to comment
Share on other sites

thanks again for your support, but nothing, the problem persists, have increased but nothing, I again contacted the hosting service of my client, I assure you there is not no problem

 

I do not know what to check, to solve this problem

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...