YunoHost-Apps / piwigo_ynh

Piwigo package for YunoHost
http://piwigo.org/
GNU General Public License v2.0
6 stars 4 forks source link

problem about time zone. #53

Closed madmaxlamenace closed 4 years ago

madmaxlamenace commented 4 years ago

2020-04-15 19:34:38,962: WARNING - parse error: Invalid numeric literal at line 1, column 4 2020-04-15 19:34:38,963: DEBUG - + status='
2020-04-15 19:34:38,963: DEBUG - Warning: date(): Invalid date.timezone value '\''YHTZ'\'', we selected the timezone '\''UTC'\'' for now. in /var/www/piwigo/include/common.inc.php on line 126
2020-04-15 19:34:38,963: DEBUG -
2020-04-15 19:34:38,963: DEBUG - Warning: date(): Invalid date.timezone value '\''YHTZ'\'', we selected the timezone '\''UTC'\'' for now. in /var/www/piwigo/include/common.inc.php on line 126
2020-04-15 19:34:38,963: DEBUG - {"stat":"ok","result":{"username":"mpeny","status":"webmaster","theme":"modus","language":"fr_FR","pwg_token":"c6f4fb1a945035acc338916bc4b6371b","charset":"utf-8","current_datetime":"2020-04-15 19:34:38","version":"2.10.1","available_sizes":["square","thumb","2small","xsmall","small","medium","large","xlarge","xxlarge"],"upload_file_types":"jpg,jpeg,png,gif","upload_form_chunk_size":500}}' 2020-04-15 19:34:38,964: DEBUG - ++ jq --raw-output .result.pwg_token 2020-04-15 19:34:38,964: DEBUG - + pwg_token= 2020-04-15 19:34:38,964: DEBUG - + ynh_exit_properly 2020-04-15 19:34:38,964: DEBUG - + local exit_code=4 2020-04-15 19:34:38,964: DEBUG - + '[' 4 -eq 0 ']' 2020-04-15 19:34:38,964: DEBUG - + trap '' EXIT 2020-04-15 19:34:38,965: DEBUG - + set +eu 2020-04-15 19:34:38,965: DEBUG - + sleep 0.5 2020-04-15 19:34:39,466: DEBUG - + type -t ynh_clean_setup 2020-04-15 19:34:39,466: WARNING - 2020-04-15 19:34:39,467: DEBUG - + ynh_die 2020-04-15 19:34:39,467: DEBUG - + local legacy_args=mc 2020-04-15 19:34:39,467: DEBUG - + args_array=([m]=message= [c]=ret_code=) 2020-04-15 19:34:39,467: DEBUG - + declare -Ar args_array 2020-04-15 19:34:39,467: DEBUG - + local message 2020-04-15 19:34:39,468: DEBUG - + local ret_code 2020-04-15 19:34:39,468: DEBUG - + ynh_handle_getopts_args 2020-04-15 19:34:39,468: DEBUG - + set +x 2020-04-15 19:34:39,468: DEBUG - + echo '' 2020-04-15 19:34:39,468: DEBUG - + exit 1 2020-04-15 19:34:39,609: ERROR - Impossible d'installer piwigo: Une erreur est survenue dans le script d'installation de l'application Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 301, in wrapper curr_v = params[k] KeyError: 'label'

JimboJoe commented 4 years ago

What does grep -R timezone /etc/php/ return?

madmaxlamenace commented 4 years ago

/etc/php/7.3/cli/php.ini:; Defines the default timezone used by the date functions /etc/php/7.3/cli/php.ini:; http://php.net/date.timezone /etc/php/7.3/cli/php.ini:;date.timezone = /etc/php/7.3/fpm/php.ini:; Defines the default timezone used by the date functions /etc/php/7.3/fpm/php.ini:; http://php.net/date.timezone /etc/php/7.3/fpm/php.ini:;date.timezone = /etc/php/7.0/fpm/conf.d/20-movim.ini:date.timezone = "YHTZ" /etc/php/7.0/fpm/php.ini.ucf-dist:; Defines the default timezone used by the date functions /etc/php/7.0/fpm/php.ini.ucf-dist:; http://php.net/date.timezone /etc/php/7.0/fpm/php.ini.ucf-dist:;date.timezone = /etc/php/7.0/fpm/php.ini:; Defines the default timezone used by the date functions /etc/php/7.0/fpm/php.ini:; http://php.net/date.timezone /etc/php/7.0/fpm/php.ini:date.timezone = Europe/Paris /etc/php/7.0/fpm/pool.d/piwigo.conf.bak:php_admin_value[date.timezone] = UTC /etc/php/7.0/cli/php.ini:; Defines the default timezone used by the date functions /etc/php/7.0/cli/php.ini:; http://php.net/date.timezone /etc/php/7.0/cli/php.ini:;date.timezone =

madmaxlamenace commented 4 years ago

I put value in piwigo.conf.bak because i had piwigo before and update doesn't work. I deleted it and try to install again but can't install after delete.

madmaxlamenace commented 4 years ago

Ok solved when put exactly "Europe/Paris" for all date.timezone even for 20-movim.ini because at each test i have the same error with YHTZ error in debug logs and when i modify the value and try again it worked Don't forget to restart service php after each modification