Archives de la liste a​i​d​e​@p​a​h​e​k​o​.c​l​o​u​d​

Renommer le nom du fichier sqlite

Pierre ROGER

17/06/2017 09:19:28

Bonjour,

Le nom du fichier sqlite est par défaut association.sqlite.

Peut-on modifier ce nom ?



*Pierre ROGER*

*pierre.roger@unapeda.fr <pierre.roger@unapeda.fr>*

*UNAPEDA*
www.unapeda.asso.fr

Pour soutenir l'UNAPEDA, adhérez
<http://unapeda.asso.fr/IMG/pdf/UNAPEDA_ADHESION-INDIVIDUELLE.pdf> ou faites
un don <http://unapeda.asso.fr/article.php3?id_article=2328>

Re: Renommer le nom du fichier sqlite

Nicolas Frery

17/06/2017 09:24:03

Le 17/06/2017 à 09:18, Pierre ROGER a écrit :
> Peut-on modifier ce nom ?

C'est possible, en modifiant la ligne 72 du fichier include\init.php
Entre chaque mise à jour de Garradin il ne faudrait pas oublier de
remettre le nom que vous aurez choisi.

Re: Renommer le nom du fichier sqlite

Pierre ROGER

17/06/2017 10:02:16

Merci

Ca marche impec



*Pierre ROGER*


*pierre.roger@unapeda.fr <pierre.roger@unapeda.fr>06 01 91 73 95*

*UNAPEDA*
www.unapeda.asso.fr

Pour soutenir l'UNAPEDA, adhérez
<http://unapeda.asso.fr/IMG/pdf/UNAPEDA_ADHESION-INDIVIDUELLE.pdf> ou faites
un don <http://unapeda.asso.fr/article.php3?id_article=2328>

Le 17 juin 2017 à 09:23, Nicolas Frery <nicolas@zoubi.info> a écrit :

> Le 17/06/2017 à 09:18, Pierre ROGER a écrit :
> > Peut-on modifier ce nom ?
>
> C'est possible, en modifiant la ligne 72 du fichier include\init.php
> Entre chaque mise à jour de Garradin il ne faudrait pas oublier de
> remettre le nom que vous aurez choisi.
>
> --
> . ____
>  / ___|  Liste d'entraide des utilisateurs de Garradin
> | |  _   http://garradin.eu/
> | |_| |
>  \____|  Désinscription : http://garradin.eu/aide/
>

Re: Renommer le nom du fichier sqlite

BohwaZ/Garradin

18/06/2017 13:08:10

On Sat, 17 Jun 2017 09:23:48 +0200 / "Nicolas Frery"
<nicolas@zoubi.info> said :

> Le 17/06/2017 à 09:18, Pierre ROGER a écrit :
> > Peut-on modifier ce nom ?
> 
> C'est possible, en modifiant la ligne 72 du fichier include\init.php
> Entre chaque mise à jour de Garradin il ne faudrait pas oublier de
> remettre le nom que vous aurez choisi.
> 

Non non non !

Le seul endroit pour changer les paramètres de Garradin c'est dans
le fichier config.local.php, ne conseillez pas de modifier les fichiers
internes, après c'est moi qui reçoit des mails avec "mon garradin ne
marche plus" :)

Donc on reprend, si tu veux changer le nom du fichier SQLite, tu peux
indiquer dans le fichier config.local.php :

<?php

define('Garradin\DB_FILE', __ROOT__ . DIRECTORY_SEPARATOR .
'mon_asso.sqlite');

?>

Attention le changement du nom de fichier sqlite n'a pas été testé et
peut tout casser (notamment les sauvegardes peut-être ? je sais pas) :)

Re: Renommer le nom du fichier sqlite

Pierre ROGER

19/06/2017 08:48:27

Le 18 juin 2017 à 13:07, BohwaZ/Garradin <garradin@garradin.eu> a écrit :

> <?php
>
> define('Garradin\DB_FILE', __ROOT__ . DIRECTORY_SEPARATOR .
> 'mon_asso.sqlite');
>
> ?>
>

Bonjour,

J'ai remis le fichier include/init.php à son état initial avec
association.sqlite
Vérifié que garradin n'affiche pas de bug au démarrage avec le nom
association.sqlite. OK

Créé le fichier
fichier config.local.php :

<?php

define('Garradin\DB_FILE', __ROOT__ . DIRECTORY_SEPARATOR .
'mon_asso.sqlite');

?>

Au redémarrage de garradin, j'ai l'erreur sur la page de connexion :

Exception of type ErrorException happened !
>
>
>> 0 - session_start(): Cannot send session cache limiter - headers already
>> sent (output started at /home/unapeda/garradin/config.local.php:17)
>
>
>> In: /include/lib/Garradin/Utils.php:189
>
>
>> http://garradin.unapeda.asso.fr/www/admin/install.php
>
>
>> #0 [internal function]: Garradin\exception_error_handler(2,
>> 'session_start()...', '/home/unapeda/g...', 189,
Array)
>
> #1 /home/unapeda/garradin/include/lib/Garradin/Utils.php(189):
>> session_start()
>
> #2 /home/unapeda/garradin/include/lib/Garradin/Utils.php(196):
>> Garradin\Utils::_sessionStart(true)
>
> #3 /home/unapeda/garradin/include/lib/Garradin/Template.php(46):
>> Garradin\Utils::CSRF_create('install')
>
> #4
>>
/home/unapeda/garradin/cache/compiled/c_6bf31ba67acac73e6649ac961485522f.php(60):
>> Garradin\tpl_csrf_field(Array, Object(Garradin\Template))
>
> #5
>> /home/unapeda/garradin/include/lib/Template_Lite/class.template.php(723):
>> include('/home/unapeda/g...')
>
> #6
>> /home/unapeda/garradin/include/lib/Template_Lite/class.template.php(594):
>> Template_Lite->_fetch_compile('admin/install.t...')
>
> #7
>> /home/unapeda/garradin/include/lib/Template_Lite/class.template.php(554):
>> Template_Lite->fetch('admin/install.t...', NULL, true)
>
> #8 /home/unapeda/garradin/www/admin/install.php(150):
>> Template_Lite->display('admin/install.t...')
>
> #9 {main}
>
> -------------
>
> Garradin version: 0.7.5
>
> Garradin manifest:
>
> PHP version: 5.5.38
>
> Garradin data root: /home/unapeda/garradin
>
> PATH: /usr/local/bin:/usr/bin:/bin
>
> APP_ENGINE_VERSION: 5.5
>
> APP_ENGINE: phpcgi
>
> ENVIRONMENT: production
>
> UNIQUE_ID: WUdvzwoAP6MAAAlWDTMAAAGz
>
> GEOIP_COUNTRY_CODE: FR
>
> GEOIP_COUNTRY_NAME: France
>
> GEOIP_REGION: A8
>
> GEOIP_CITY: XXXXX
>
> GEOIP_DMA_CODE: 0
>
> GEOIP_AREA_CODE: 0
>
> GEOIP_LATITUDE: NN.nnnnn
>
> GEOIP_LONGITUDE: NN.nnnnn
>
> SCRIPT_URL: /www/admin/install.php
>
> SCRIPT_URI: http://garradin.unapeda.asso.fr/www/admin/install.php
>
> CFG_CLUSTER: cluster006
>
> HTTP_REMOTE_IP: 83.152.aa.bb
>
> HTTP_HOST: garradin.unapeda.asso.fr
>
> HTTP_USER_AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36
>> (KHTML, like Gecko) Chrome/53.0.2785.21 Safari/537.36
>
> HTTP_ACCEPT:
>> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
>
> HTTP_ACCEPT_LANGUAGE: fr
>
> HTTP_ACCEPT_ENCODING: gzip, deflate
>
> HTTP_REFERER: http://garradin.unapeda.asso.fr/www/
>
> HTTP_COOKIE:
>> __utma=96718171.1792291131.1462269800.1497534967.1497540132.362;
>>
__utmz=96718171.1493362639.328.22.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided);
>>
__context=eyJTTFQiOiIxNDY3MzIxMzk2NzUzMzg2MTAwNDkxMTUxMTQ0ODIxNjgyNjU4MjcyMjIiLCJVSUQiOiJkYzFlM2RmMzEyOWU2MDdkZGNiZmY4ZjliZGRlY2IxYzI5NmVmZTMyOGYzNzU4YzVjY2E3ZTliMzA4ZjRiYzU4In0=;
>> PHPSESSID=644588daefbf0ade47795154216bcb2e; mediaplanBAK=R129295185;
>> mediaplan=R3721274834
>
> HTTP_DNT: 1
>
> HTTP_UPGRADE_INSECURE_REQUESTS: 1
>
> HTTP_X_FORWARDED_FOR: 83.152.aa.bb
>
> HTTP_X_FORWARDED_PORT: 80
>
> HTTP_X_FORWARDED_PROTO: http
>
> HTTP_X_REMOTE_PORT: 34414
>
> HTTP_X_REMOTE_IP: 83.152.aa.bb
>
> HTTP_X_REMOTE_PROTO: http
>
> HTTP_FORWARDED: for=83.152.aa.bb; proto=http; host=
>> garradin.unapeda.asso.fr
>
> HTTP_REMOTE_PORT: 34414
>
> HTTP_X_CDN_ANY_IP: 213.186.aa.bb
>
> SERVER_SIGNATURE:
>
> SERVER_SOFTWARE: Apache
>
> SERVER_NAME: garradin.unapeda.asso.fr
>
> SERVER_ADDR: 178.33.aa.bb
>
> SERVER_PORT: 80
>
> REMOTE_ADDR: 83.152.aa.bb
>
> DOCUMENT_ROOT: /home/unapeda/garradin
>
> SERVER_ADMIN: postmaster@garradin.unapeda.asso.fr
>
> SCRIPT_FILENAME: /home/unapeda/garradin/www/admin/install.php
>
> REMOTE_PORT: 1548
>
> GATEWAY_INTERFACE: CGI/1.1
>
> SERVER_PROTOCOL: HTTP/1.1
>
> REQUEST_METHOD: GET
>
> QUERY_STRING:
>
> REQUEST_URI: /www/admin/install.php
>
> SCRIPT_NAME: /www/admin/install.php
>
> UID: unapeda
>
> PHP_SELF: /www/admin/install.php
>
> REQUEST_TIME_FLOAT: 1497853903.6635
>
> REQUEST_TIME: 1497853903
>
> argv: ["install.php"]
>
> argc: 1
>
>

Garradin version: 0.7.5
PHP version: 5.5.38



*Pierre ROGER*

*pierre.roger@unapeda.fr <pierre.roger@unapeda.fr>*

*UNAPEDA*
www.unapeda.asso.fr

Pour soutenir l'UNAPEDA, adhérez
<http://unapeda.asso.fr/IMG/pdf/UNAPEDA_ADHESION-INDIVIDUELLE.pdf> ou faites
un don
<http://unapeda.asso.fr/article.php3?id_article=2328>

Re: Renommer le nom du fichier sqlite

BohwaZ/Garradin

19/06/2017 09:06:47

On Mon, 19 Jun 2017 08:47:31 +0200 / "Pierre ROGER"
<pierre.roger@unapeda.fr> said :

> Créé le fichier
> fichier config.local.php :
> 
> <?php
> 
> define('Garradin\DB_FILE', __ROOT__ . DIRECTORY_SEPARATOR .
> 'mon_asso.sqlite');
> 
> ?>

Le souci c'est que tu as des lignes vides après le "?>" dans ton
fichier :)

Enlève le "?>" ou les lignes vides et tout ira bien :)

Re: Renommer le nom du fichier sqlite

Pierre ROGER

19/06/2017 10:05:07

Merci de ta réponse rapide.

Malheureusement il reste des problèmes :

Exception of type Exception happened !
>
>
>> 0 - Unable to open database: unable to open database file
>
>
>> In: /include/lib/Garradin/DB.php:45
>
>
>> http://garradin.unapeda.asso.fr/www/admin/install.php
>
>
>> #0 /home/unapeda/garradin/include/lib/Garradin/DB.php(45):
>> SQLite3->__construct('__ROOT__/una-id...', 6)
>
> #1 /home/unapeda/garradin/include/lib/Garradin/DB.php(29):
>> Garradin\DB->__construct(true)
>
> #2 /home/unapeda/garradin/include/lib/Garradin/Install.php(9):
>> Garradin\DB::getInstance(true)
>
> #3 /home/unapeda/garradin/www/admin/install.php(133):
>> Garradin\Install::install('UNAPEDA Ile-de-...', '',
'pierre.roger@un...',
>> 'pr\xC3\xA9sident', 'ROGER',
'pierre.roger@un...', 'tilleul sel tra...',
>> 'http://garradin...')
>
> #4 {main}
>
> -------------
>
> Garradin version: 0.7.5
>
> Garradin manifest:
>
> PHP version: 5.5.38
>
> Garradin data root: /home/unapeda/garradin
>
> PATH: /usr/local/bin:/usr/bin:/bin
>
> APP_ENGINE_VERSION: 5.5
>
> APP_ENGINE: phpcgi
>
> ENVIRONMENT: production
>
> UNIQUE_ID: WUeENAoAP6MAACeqd-oAAAVo
>
> GEOIP_COUNTRY_CODE: FR
>
> GEOIP_COUNTRY_NAME: France
>
> GEOIP_REGION: A8
>
> GEOIP_CITY: xxxxx
>
> GEOIP_DMA_CODE: 0
>
> GEOIP_AREA_CODE: 0
>
> GEOIP_LATITUDE: xxxxxxx
>
> GEOIP_LONGITUDE: yyyyyyy
>
> SCRIPT_URL: /www/admin/install.php
>
> SCRIPT_URI: http://garradin.unapeda.asso.fr/www/admin/install.php
>
> CFG_CLUSTER: cluster006
>
> HTTP_REMOTE_IP: 83.152.nn.nn
>
> HTTP_HOST: garradin.unapeda.asso.fr
>
> HTTP_USER_AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36
>> (KHTML, like Gecko) Chrome/53.0.2785.21 Safari/537.36
>
> HTTP_ACCEPT:
>> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
>
> HTTP_ACCEPT_LANGUAGE: fr
>
> HTTP_ACCEPT_ENCODING: gzip, deflate
>
> CONTENT_TYPE: application/x-www-form-urlencoded
>
> CONTENT_LENGTH: 378
>
> HTTP_REFERER: http://garradin.unapeda.asso.fr/www/admin/install.php
>
> HTTP_COOKIE:
>> __utma=96718171.1792291131.1462269800.1497534967.1497540132.362;
>>
__utmz=96718171.1493362639.328.22.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided);
>>
__context=eyJTTFQiOiIxNDY3MzIxMzk2NzUzMzg2MTAwNDkxMTUxMTQ0ODIxNjgyNjU4MjcyMjIiLCJVSUQiOiJkYzFlM2RmMzEyOWU2MDdkZGNiZmY4ZjliZGRlY2IxYzI5NmVmZTMyOGYzNzU4YzVjY2E3ZTliMzA4ZjRiYzU4In0=;
>> PHPSESSID=644588daefbf0ade47795154216bcb2e; mediaplan=R3721274834
>
> HTTP_DNT: 1
>
> HTTP_UPGRADE_INSECURE_REQUESTS: 1
>
> HTTP_X_FORWARDED_FOR: 83.152.nn.nn
>
> HTTP_X_FORWARDED_PORT: 80
>
> HTTP_X_FORWARDED_PROTO: http
>
> HTTP_X_REMOTE_PORT: 36376
>
> HTTP_X_REMOTE_IP: 83.152.nn.nn
>
> HTTP_X_REMOTE_PROTO: http
>
> HTTP_FORWARDED: for=83.152.nn.nn; proto=http; host=
>> garradin.unapeda.asso.fr
>
> HTTP_REMOTE_PORT: 36376
>
> HTTP_X_CDN_ANY_IP: 213.186.nn.nn
>
> SERVER_SIGNATURE:
>
> SERVER_SOFTWARE: Apache
>
> SERVER_NAME: garradin.unapeda.asso.fr
>
> SERVER_ADDR: 178.33.nn.nn
>
> SERVER_PORT: 80
>
> REMOTE_ADDR: 83.152.nn.nn
>
> DOCUMENT_ROOT: /home/unapeda/garradin
>
> SERVER_ADMIN: postmaster@garradin.unapeda.asso.fr
>
> SCRIPT_FILENAME: /home/unapeda/garradin/www/admin/install.php
>
> REMOTE_PORT: 28758
>
> GATEWAY_INTERFACE: CGI/1.1
>
> SERVER_PROTOCOL: HTTP/1.1
>
> REQUEST_METHOD: POST
>
> QUERY_STRING:
>
> REQUEST_URI: /www/admin/install.php
>
> SCRIPT_NAME: /www/admin/install.php
>
> UID: unapeda
>
> PHP_SELF: /www/admin/install.php
>
> REQUEST_TIME_FLOAT: 1497859124.16
>
> REQUEST_TIME: 1497859124
>
> argv: ["install.php"]
>
> argc: 1
>
>
>


*Pierre ROGER*


*pierre.roger@unapeda.fr <pierre.roger@unapeda.fr>06 01 91 73 95*

*UNAPEDA*
www.unapeda.asso.fr

Pour soutenir l'UNAPEDA, adhérez
<http://unapeda.asso.fr/IMG/pdf/UNAPEDA_ADHESION-INDIVIDUELLE.pdf> ou faites
un don <http://unapeda.asso.fr/article.php3?id_article=2328>

Le 19 juin 2017 à 09:06, BohwaZ/Garradin <garradin@garradin.eu> a écrit :

>
> On Mon, 19 Jun 2017 08:47:31 +0200 / "Pierre ROGER"
> <pierre.roger@unapeda.fr> said :
>
> > Créé le fichier
> > fichier config.local.php :
> >
> > <?php
> >
> > define('Garradin\DB_FILE', __ROOT__ . DIRECTORY_SEPARATOR .
> > 'mon_asso.sqlite');
> >
> > ?>
>
> Le souci c'est que tu as des lignes vides après le "?>" dans
ton
> fichier :)
>
> Enlève le "?>" ou les lignes vides et tout ira bien :)
>
> --
> . ____
>  / ___|  Liste d'entraide des utilisateurs de Garradin
> | |  _   http://garradin.eu/
> | |_| |
>  \____|  Désinscription : http://garradin.eu/aide/
>

Re: Renommer le nom du fichier sqlite

BohwaZ/Garradin

19/06/2017 10:10:39

Pardon ce n'est pas __ROOT__ qu'il faut mettre mais __DIR__

Désolé de la coquille :)

Re: Renommer le nom du fichier sqlite

Pierre ROGER

19/06/2017 10:31:35

bingo !!!

Ca roule!

Merci



*Pierre ROGER*


*pierre.roger@unapeda.fr <pierre.roger@unapeda.fr>06 01 91 73 95*

*UNAPEDA*
www.unapeda.asso.fr

Pour soutenir l'UNAPEDA, adhérez
<http://unapeda.asso.fr/IMG/pdf/UNAPEDA_ADHESION-INDIVIDUELLE.pdf> ou faites
un don <http://unapeda.asso.fr/article.php3?id_article=2328>

Le 19 juin 2017 à 10:10, BohwaZ/Garradin <garradin@garradin.eu> a écrit :

>
> Pardon ce n'est pas __ROOT__ qu'il faut mettre mais __DIR__
>
> Désolé de la coquille :)
>
> --
> . ____
>  / ___|  Liste d'entraide des utilisateurs de Garradin
> | |  _   http://garradin.eu/
> | |_| |
>  \____|  Désinscription : http://garradin.eu/aide/
>

Re: Renommer le nom du fichier sqlite

Pierre ROGER

19/06/2017 12:38:34

J'ai fait également un test de sauvegarde-restauration.
Pas constaté de problème.



*Pierre ROGER*


*pierre.roger@unapeda.fr <pierre.roger@unapeda.fr>06 01 91 73 95*

*UNAPEDA*
www.unapeda.asso.fr

Pour soutenir l'UNAPEDA, adhérez
<http://unapeda.asso.fr/IMG/pdf/UNAPEDA_ADHESION-INDIVIDUELLE.pdf> ou faites
un don <http://unapeda.asso.fr/article.php3?id_article=2328>

Le 19 juin 2017 à 10:30, Pierre ROGER <pierre.roger@unapeda.fr> a écrit :

> bingo !!!
>
> Ca roule!
>
> Merci
>
>
>
> *Pierre ROGER*
>
>
> *pierre.roger@unapeda.fr <pierre.roger@unapeda.fr>06 01 91 73 95
> <06%2001%2091%2073%2095>*
>
> *UNAPEDA*
> www.unapeda.asso.fr
>
> Pour soutenir l'UNAPEDA, adhérez
> <http://unapeda.asso.fr/IMG/pdf/UNAPEDA_ADHESION-INDIVIDUELLE.pdf> ou
faites
> un don <http://unapeda.asso.fr/article.php3?id_article=2328>
>
> Le 19 juin 2017 à 10:10, BohwaZ/Garradin <garradin@garradin.eu> a écrit
:
>
>>
>> Pardon ce n'est pas __ROOT__ qu'il faut mettre mais __DIR__
>>
>> Désolé de la coquille :)
>>
>> --
>> . ____
>>  / ___|  Liste d'entraide des utilisateurs de Garradin
>> | |  _   http://garradin.eu/
>> | |_| |
>>  \____|  Désinscription : http://garradin.eu/aide/
>>
>
>