Voui, je m'en doute bien...Ou alors il y a un grand pervers polymorphe dans l'équipe ! :) :)
Bon je plaisante bien sûr. Et je ne suis pas pressé, pas de soucis
++
Hors ligne
Salut !
Je viens de ré-installer et réactiver ce plugin sur ma galerie de test et à l'activation, j'ai un warning php :
PHP Warning: [mysql error 1146] Table 'test.phpwebgallery_translator_users' doesn't exist
SELECT pu.username as name, pui.adviser, ptu.*, ptul.lang as spoken_language, floor((datediff(now(), ptu.birthdate))/365) as age
FROM phpwebgallery_users pu,
phpwebgallery_user_infos pui,
phpwebgallery_translator_users ptu LEFT OUTER JOIN
phpwebgallery_translator_users_langs ptul
ON ptu.id = ptul.id
WHERE ptu.id = pu.id
AND pu.id = pui.user_id AND ptu.id = 1 ORDER BY ptu.country, pu.username, ptul.lang in E:\www\test\phpwebgallery\include\functions.inc.php on line 918
Et après, si je vais dans le panneau de gestion du plugin :
PHP Warning: [mysql error 1146] Table 'test.phpwebgallery_translator_files' doesn't exist
SELECT * FROM phpwebgallery_translator_files
ORDER BY type, name, file, language in E:\www\test\phpwebgallery\include\functions.inc.php on line 918
PHP Warning: [mysql error 1146] Table 'test.phpwebgallery_translator_langs' doesn't exist
SELECT code FROM phpwebgallery_translator_langs
ORDER BY code in E:\www\test\phpwebgallery\include\functions.inc.php on line 918
PHP Warning: [mysql error 1146] Table 'test.phpwebgallery_translator_langs' doesn't exist
SELECT code FROM phpwebgallery_translator_langs
ORDER BY code in E:\www\test\phpwebgallery\include\functions.inc.php on line 918
PHP Warning: [mysql error 1146] Table 'test.phpwebgallery_translator_files' doesn't exist
SELECT DISTINCT type, name, file FROM phpwebgallery_translator_files
ORDER BY type, name, file in E:\www\test\phpwebgallery\include\functions.inc.php on line 918
Pour info, je tourne sous WampServer 2.0h et Grum Plugins Classes.2 est bien installé et actif.
Hors ligne
Bonjour !
J'ai commencé à regarder ces deux problèmes.
J'installe et désinstalle le plugin sans problèmes chez moi (à noter que pour l'installer sur piwigo 2.0.1 j'ai du faire une légère modif que je n'ai pas encore mise en ligne) o_O?
makno a écrit:
Fatal error: Cannot redeclare class Template in /var/www/virtual/instants-de-scenes.com/htdocs/PhpMyGallery/include/template.class.php on line 37
sur ce point, j'ai du mal à comprendre : le fichier en question n'est pas directement appellé par le plugin, mais par piwigo.
Eric a écrit:
Je viens de ré-installer et réactiver ce plugin sur ma galerie de test et à l'activation, j'ai un warning php :
Sur ces divers message, il y a du y avoir un problème pendant l'installation du plugin, à priori aucune table n'a été créée pendant l'installation !
Peux-tu vérifier les tables réellement présentes sur ta base de données, et s'il y a présence de table avec "translator" dedans, me fournir leurs noms exact ?
Hors ligne
grum a écrit:
Eric a écrit:
Je viens de ré-installer et réactiver ce plugin sur ma galerie de test et à l'activation, j'ai un warning php :
Sur ces divers message, il y a du y avoir un problème pendant l'installation du plugin, à priori aucune table n'a été créée pendant l'installation !
Peux-tu vérifier les tables réellement présentes sur ta base de données, et s'il y a présence de table avec "translator" dedans, me fournir leurs noms exact ?
J'aimerai bien mais, pour une raison inconnue, je ne parviens plus à activer le plugin :
Le plugin n'est pas adapté à votre version de PWG !
Je suis pourtant en Piwigo 2.0.1 et Grum Plugins Classes.2 v2.0.1. Dans le maintain.inc.php j'ai vu :
// need GPC release greater or equal than 2.0.1 if(checkGPCRelease(2,0,1)) { @include_once("translator_install.class.inc.php"); $gpc_installed=true; }
J'ai tenté de re-télécharger le plugin manuellement et automatiquement sans plus de succès...
[edit] J'ai trouvé le fichier où tu fais le test de version et j'ai modifié la version minimale de Piwigo à 2.0.1 uniquement pour les tests.
Et à l'activation du plugin, j'ai ceci (attention les yeux !):
[30-Apr-2009 21:06:16] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:16] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:16] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:16] PHP Notice: Undefined index: Email addresse in E:\www\test\phpwebgallery\language\de_DE\common.lang.php on line 88
[30-Apr-2009 21:06:16] PHP Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's support and see how you could switch to PHP 5 by yourself.',
'3',
' at line 2
INSERT INTO phpwebgallery_translator_keys VALUES (
'You may referer to your hosting provider's support and see how you could switch to PHP 5 by yourself.',
'3',
'1',
'2009-04-30 21:06:16',
'1',
'valide_it',
'Sie können sich beziehen auf Ihrem Hosting-Anbieter die Unterstützung und sehen wie Sie könnte Umstellung auf PHP 5 von Ihnen.',
'0',
'0000-00-00 00:00:00',
'65dac2207fa8668e07a49d81bc1f6b70'
) in E:\www\test\phpwebgallery\include\functions.inc.php on line 918
[30-Apr-2009 21:06:17] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:17] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:17] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:17] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:17] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:17] PHP Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's support and see how you could switch to PHP 5 by yourself.',
'7',
' at line 2
INSERT INTO phpwebgallery_translator_keys VALUES (
'You may referer to your hosting provider's support and see how you could switch to PHP 5 by yourself.',
'7',
'1',
'2009-04-30 21:06:17',
'1',
'valide_it',
'You may referer to your hosting provider\'s support and see how you could switch to PHP 5 by yourself.',
'0',
'0000-00-00 00:00:00',
'46a3d01afa4f07f228d5966ad32eee34'
) in E:\www\test\phpwebgallery\include\functions.inc.php on line 918
[30-Apr-2009 21:06:17] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:17] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:17] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:18] PHP Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's support and see how you could switch to PHP 5 by yourself.',
'11',
' at line 2
INSERT INTO phpwebgallery_translator_keys VALUES (
'You may referer to your hosting provider's support and see how you could switch to PHP 5 by yourself.',
'11',
'1',
'2009-04-30 21:06:18',
'1',
'valide_it',
'Usted debe ponerse en contacto con su hébergeur con el fin de saber cómo configurar PHP 5',
'0',
'0000-00-00 00:00:00',
'414a1c51f523bc24a0588d38fbaaf645'
) in E:\www\test\phpwebgallery\include\functions.inc.php on line 918
[30-Apr-2009 21:06:18] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:18] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:18] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:18] PHP Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's support and see how you could switch to PHP 5 by yourself.',
'15',
' at line 2
INSERT INTO phpwebgallery_translator_keys VALUES (
'You may referer to your hosting provider's support and see how you could switch to PHP 5 by yourself.',
'15',
'1',
'2009-04-30 21:06:18',
'1',
'valide_it',
'Vous devez contacter votre hébergeur afin de savoir comment configurer PHP 5.',
'0',
'0000-00-00 00:00:00',
'5934e89f7b7a9afc16e1f71b5c25b744'
) in E:\www\test\phpwebgallery\include\functions.inc.php on line 918
[30-Apr-2009 21:06:18] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:18] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:18] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:19] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:19] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:19] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:19] PHP Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's support and see how you could switch to PHP 5 by yourself.',
'23',
' at line 2
INSERT INTO phpwebgallery_translator_keys VALUES (
'You may referer to your hosting provider's support and see how you could switch to PHP 5 by yourself.',
'23',
'1',
'2009-04-30 21:06:19',
'1',
'valide_it',
'Dovete contattare il votro provider per chiedere come configurare PHP 5.',
'0',
'0000-00-00 00:00:00',
'8eb3c23184d8a34ac3a001a01d975f98'
) in E:\www\test\phpwebgallery\include\functions.inc.php on line 918
[30-Apr-2009 21:06:19] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:19] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:19] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:20] PHP Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's support and see how you could switch to PHP 5 by yourself.',
'27',
' at line 2
INSERT INTO phpwebgallery_translator_keys VALUES (
'You may referer to your hosting provider's support and see how you could switch to PHP 5 by yourself.',
'27',
'1',
'2009-04-30 21:06:20',
'1',
'valide_it',
'You may referer to your hosting provider\'s support and see how you could switch to PHP 5 by yourself.',
'0',
'0000-00-00 00:00:00',
'c74c3aae2c4a10ce176352e8d296a90b'
) in E:\www\test\phpwebgallery\include\functions.inc.php on line 918
[30-Apr-2009 21:06:20] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:20] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:20] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:20] PHP Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's support and see how you could switch to PHP 5 by yourself.',
'31',
' at line 2
INSERT INTO phpwebgallery_translator_keys VALUES (
'You may referer to your hosting provider's support and see how you could switch to PHP 5 by yourself.',
'31',
'1',
'2009-04-30 21:06:20',
'1',
'valide_it',
'Możesz skontaktować się z działem wsparcia Twojego providera aby dowiedzieć się jak włączyć PHP 5.',
'0',
'0000-00-00 00:00:00',
'bea51005bf5841abf478062347bce65d'
) in E:\www\test\phpwebgallery\include\functions.inc.php on line 918
[30-Apr-2009 21:06:20] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:20] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:20] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:22] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:22] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:22] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:23] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:23] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:23] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:23] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:23] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:23] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:24] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:24] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:24] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:24] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:25] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\www\test\phpwebgallery\include\functions.inc.php on line 629
[30-Apr-2009 21:06:25] PHP Warning: Cannot modify header information - headers already sent by (output started at E:\www\test\phpwebgallery\include\functions.inc.php:918) in E:\www\test\phpwebgallery\include\page_header.php on line 98
[/edit]
Dernière modification par Eric (2009-04-30 21:13:35)
Hors ligne
Eric a écrit:
[edit] J'ai trouvé le fichier où tu fais le test de version et j'ai modifié la version minimale de Piwigo à 2.0.1 uniquement pour les tests.
Et à l'activation du plugin, j'ai ceci (attention les yeux !):
[/edit]
vi je sais, c'est pour ce genre de choses que je bride mes plugins sur une version de piwigo : on ne sait jamais ce qui peut arriver dans la suivante et là pouf, c'est tout le bazard.
bref, si tu veux tenter l'expérience de translator avec la 2.0.1 il faut modifier ce petit bout de code dans le fichier translator_root.class.inc.php dans la fonction insert_lang_key à la ligne 247 tu écris
'".addslashes($key)."',
et tu passeras la difficile étape pour les yeux ! ;))
jusqu'à présent il n'y avait pas de clef dans le tableau $lang comportant des apostrophes..... pas très malin ce genre de clefs je trouve ! ;o))
de mon côté tout fonctionne, je suis juste très lent sur mes mises à jour ^^; (çà devrait aller un peu mieux, car j'ai enfin fini de mettre à jour ma galerie avec mes 1600photos du japon que j'invite tout le monde à aller voir ^^; http://photos.grum.fr)
bref, tiens moi au courant si après application de la correction, le plugin se porte mieux.
Dernière modification par grum (2009-04-30 23:02:41)
Hors ligne
Avec la correction çà passe mieux :p
J'ai tout de même eu un curieux message : "Plugin déjà installé". Alors que j'avais tout désinstallé manuellement (tables translator et config). J'ai essayé de reproduire en revirant tout y compris le plugin proprement dit et en réinstallant mais pas moyen. Je mets çà sur le dos d'un pb passager de mon WampServer.
Pour répondre à ta question initiale :
grum a écrit:
Peux-tu vérifier les tables réellement présentes sur ta base de données, et s'il y a présence de table avec "translator" dedans, me fournir leurs noms exact ?
Que ce soit avant les ajustements pour Piwigo 2.0.1 comme maintenant, toutes les tables se créent bien. Voici leurs noms chez moi :
phpwebgallery_translator_countries_codes
phpwebgallery_translator_files
phpwebgallery_translator_keys
phpwebgallery_translator_langs
phpwebgallery_translator_langs_codes
phpwebgallery_translator_users
phpwebgallery_translator_users_langs
A priori, tout à l'air de fonctionner maintenant. Je t'en dirais plus lorsque j'aurais joué en profondeur avec quelques traductions.
[HS]
Très sympa, tes photos du Japon. Par contre, je suis tombé sur un vilain message au cours de la visualisation de la photo Accueil / Randonnées & vacances / Japon / Tōkyō (東京) / Baseball / Pom-pom girls (http://photos.grum.fr/picture.php?/4392/category/231) :
Notice: Undefined index: lmt_redirect_url- in /home2/grumfr/ibays/albumphoto/plugins/lmt/lmt_pip.class.inc.php on line 85
Notice: Undefined index: lmt_redirect_url- in /home2/grumfr/ibays/albumphoto/plugins/lmt/lmt_pip.class.inc.php on line 88
Le problème ne s'est pas produit pour d'autres photos.[/HS]
Hors ligne
Eric a écrit:
Avec la correction çà passe mieux :p
J'ai tout de même eu un curieux message : "Plugin déjà installé". Alors que j'avais tout désinstallé manuellement (tables translator et config). J'ai essayé de reproduire en revirant tout y compris le plugin proprement dit et en réinstallant mais pas moyen. Je mets çà sur le dos d'un pb passager de mon WampServer.
Pour répondre à ta question initiale :grum a écrit:
Peux-tu vérifier les tables réellement présentes sur ta base de données, et s'il y a présence de table avec "translator" dedans, me fournir leurs noms exact ?
Que ce soit avant les ajustements pour Piwigo 2.0.1 comme maintenant, toutes les tables se créent bien. Voici leurs noms chez moi :
phpwebgallery_translator_countries_codes
phpwebgallery_translator_files
phpwebgallery_translator_keys
phpwebgallery_translator_langs
phpwebgallery_translator_langs_codes
phpwebgallery_translator_users
phpwebgallery_translator_users_langs
A priori, tout à l'air de fonctionner maintenant. Je t'en dirais plus lorsque j'aurais joué en profondeur avec quelques traductions.
ok.
tu vas avoir un problème lors de l'édition d'une traduction (çà t'affichera un msg d'erreur au lieu de t'afficher la proposition d'une aide à la traduction avec google => ce pb est corrigé chez moi)
Eric a écrit:
[HS]
Très sympa, tes photos du Japon. Par contre, je suis tombé sur un vilain message au cours de la visualisation de la photo Accueil / Randonnées & vacances / Japon / Tōkyō (東京) / Baseball / Pom-pom girls (http://photos.grum.fr/picture.php?/4392/category/231) :Notice: Undefined index: lmt_redirect_url- in /home2/grumfr/ibays/albumphoto/plugins/lmt/lmt_pip.class.inc.php on line 85
Notice: Undefined index: lmt_redirect_url- in /home2/grumfr/ibays/albumphoto/plugins/lmt/lmt_pip.class.inc.php on line 88Le problème ne s'est pas produit pour d'autres photos.[/HS]
ah mince...
merci de la remarque ! j'ai corrigé le truc :)
Dernière modification par grum (2009-05-01 00:24:55)
Hors ligne