Annonce

  •  » Plugins
  •  » Chargement Flickr2Piwigo impossible

#1 2014-02-07 09:02:58

Erun
Membre
2014-02-06
35

Chargement Flickr2Piwigo impossible

Bonjour,

Après avoir installer Piwigo sur mon serveur, je tente de rapatrier mes albums Flickr (soit environ 750 photos) vers Piwigo mais impossible de télécharger l'ensemble... le chargement reste bloqué sur 1/xxx.

Avez vous des idées

Hors ligne

#2 2014-02-07 10:20:57

mistic100
Ex Equipe Piwigo
Lyon
2008-09-27
3561

Re: Chargement Flickr2Piwigo impossible

Bonjour

quel est votre hébergeur ?

il n'y pas un petit popup d'erreur et haut à droite ?

et quelles version du Piwigo et du plugin ?

Hors ligne

#3 2014-02-07 11:02:30

Erun
Membre
2014-02-06
35

Re: Chargement Flickr2Piwigo impossible

Je suis nouveau sur piwigo. J'avais déjà tenté d'installer piwigo mais la configuration m'avais refroidie et j'avais finalement garder l'offre photostation de mon synology.
Mais en ce début d'année, je revois complètement mon organisation et je réessaye piwigo notamment pour me permettre de synchroniser ma galerie avec mon compte flickr.
Vous l'aurez donc compris, piwigo est hébergé sur mon serveur chez moi. Pour l'installation et la configuration de base, pas de problème mais dès qu'il faille chargé des photos et des albums c'est plus compliqué et je commence à perdre beaucoup de temps.... GRUUUUHHHH.

Piwigo est installé dans mon répertoire web. J'accède correctement à l'interface en local ou depuis l'extérieure.... mais gérer les albums et les photos ... j'y comprend rien et pourtant c'est pas faute d'avoir lu la documentation en ligne !

Voilà ce que j'ai fait :
J'ai installer flickr2piwigo, paramétrage, clef, etc... ok, j'accède bien à mes albums flickr via le plugin, 
1 ) quand je sélection " synchroniser tout" , le chargement reste bloqué sur la première photo. J'ai donc essayé le chargement par albums.

2 ) je sélection l’album que je souhaite transférer vers piwigo, après quelques clic un bandeau vert me laisse penser que l'action a réussi. Je clic donc sur visualiser ma galerie, mais 0 photos, je retourne dans l'espace administration, et je constate qu'il indique bien 0 album, 0 photos .... et cela après 4 tentatives.
Je poursuit en essayant de comprendre ou est comment se place les photos.

3) j'ai crée un dossier nommé "test" avec dedans une photo format. jpg nommé "vue". J'ai placé le tt dans le dossier galleries de piwigo sur mon serveur. Je passe par l'interface administrateur pour synchroniser et  là bandeau rouge me disant qu'il y des erreurs. Je test quand même un aperçu de la galerie et je retrouve mes noms de fichier dans la liste mais sans aperçu avec des point d’exclamation bref le bordel.

4) je crée un album depuis l'interface administrateur et je charge une photo depuis ce même interface, bandeau vert.... elle s'affiche bien dans la gallerie mais je comprend toujours rien ! et je commence a être découragé

ma version de piwigo (2.6) et plugin F2P(1.0.8) sont les dernières en date

Dernière modification par Erun (2014-02-07 11:06:39)

Hors ligne

#4 2014-02-07 11:37:55

mistic100
Ex Equipe Piwigo
Lyon
2008-09-27
3561

Re: Chargement Flickr2Piwigo impossible

1.0.8 n'est pas la dernière version pour Piwigo 2.6, mais la 1.1.1 (l'affichage sur le dépôt d'extension n'est pas idéal)

pour vos problèmes de synchro locale (rien à voir avec Flickr) ouvrez un autre sujet avec un maximum de détails (OS, serveur http, etc)

Hors ligne

#5 2014-02-07 13:35:14

Erun
Membre
2014-02-06
35

Re: Chargement Flickr2Piwigo impossible

autant pour moi,
j'ai bien piwigo 2.6.1 et F2P 1.1.1

Hors ligne

#6 2014-02-07 13:37:32

mistic100
Ex Equipe Piwigo
Lyon
2008-09-27
3561

Re: Chargement Flickr2Piwigo impossible

Quand on clique sur "importer" le plugin fait des requetes AJAX sur ws.php
pouvez vous utiliser la console de developpement du navigateur pour voir le contenu de la requete et de la réponse ?

Hors ligne

#7 2014-02-08 11:13:20

Erun
Membre
2014-02-06
35

Re: Chargement Flickr2Piwigo impossible

voilà un extrait de ce que j'obtiens dans la console lorsque j'essaie le chargement total de la galerie//<![CDATA[

jQuery(document).ready(function(){
  jQuery(".addAlbumOpen").colorbox({
    inline: true,
   

(...)
            'fadeIn' : 200,
            'fadeOut' : 200
    });
});
//]]>

Dernière modification par Erun (2014-02-08 11:32:02)

Hors ligne

#8 2014-02-08 11:15:41

mistic100
Ex Equipe Piwigo
Lyon
2008-09-27
3561

Re: Chargement Flickr2Piwigo impossible

non ça c'est le code source de la page, pas la requete sur ws.php

faites comme ceci http://galerie.strangeplanet.fr/upload/ … 0ad713.png
(le lien à l'étape 5 n'est pas le meme évidement)
et pour l'étape 4 ce n'est pas "refresh" mais "cliquer sur importer"

Hors ligne

#9 2014-02-08 11:18:17

mistic100
Ex Equipe Piwigo
Lyon
2008-09-27
3561

Re: Chargement Flickr2Piwigo impossible

et faites ceci sur la page d'import par album

Hors ligne

#10 2014-02-08 11:30:53

mistic100
Ex Equipe Piwigo
Lyon
2008-09-27
3561

Re: Chargement Flickr2Piwigo impossible

en fait j'ai pu voir un bug dans votre code source, plus un autre, corrigé en 1.1.2

Hors ligne

#11 2014-02-08 11:34:16

Erun
Membre
2014-02-06
35

Re: Chargement Flickr2Piwigo impossible

Bon bon pas simple puisque j'utilise chrome ou safari

mais j'ai pu obtenir ceci

Request URL:https://192.168.1.58/piwigo/admin.php?page=plugin-flickr2piwigo-import&action=list_all
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Cookie:pwg_id=3jasekkc7o85f6up240tfks3m6; picture_deriv=medium
DNT:1
Host:192.168.1.58
Referer:https://192.168.1.58/piwigo/admin.php?page=plugin-flickr2piwigo
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36
Query String Parametersview sourceview URL encoded
page:plugin-flickr2piwigo-import
action:list_all
Response Headersview source
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:Keep-Alive
Content-Encoding:gzip
Content-Length:5190
Content-Type:text/html; charset=utf-8
Date:Sat, 08 Feb 2014 10:28:32 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive:timeout=5, max=100
Pragma:no-cache
Server:Apache
Vary:Accept-Encoding

et cela dans l'onglet réponse

Warning: filemtime(): stat failed for ./themes/default/js/plugins/jquery.jGrowl.css in /volume1/web/piwigo/include/template.class.php on line 1863
<!DOCTYPE html>
<html lang="fr" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Piwigo (aka PWG), see piwigo.org">
<title>Galerie photos d'Eric :: Administration de Piwigo</title>
<link rel="shortcut icon" type="image/x-icon" href="themes/default/icon/favicon.ico">
<link rel="stylesheet" type="text/css" href="_data/combined/99owl0.css">
<!--[if lt IE 7]>
    <link rel="stylesheet" type="text/css" href="admin/themes/default/fix-ie5-ie6.css">
<![endif]-->
<!--[if IE 7]>
  <link rel="stylesheet" type="text/css" href="admin/themes/default/fix-ie7.css">
<![endif]-->

<!-- BEGIN get_combined_scripts -->
<script type="text/javascript" src="_data/combined/98olvb.js"></script>
<!-- END get_combined_scripts -->

<!--[if lt IE 7]>
<script type="text/javascript" src="themes/default/js/pngfix.js"></script>
<![endif]-->

<script type="text/javascript">
var theController = window.open("", "mview_controller", "alwaysRaised=yes,dependent=yes,toolbar=no,height=200,width=220,menubar=no,resizable=yes,scrollbars=yes,status=no");
if ( theController.location.toString()=="about:blank" || !theController.location.toString().match(/^(https?.*\/)controller\.php(\?.+)?$/))
{
  theController.location = "plugins/admin_multi_view/controller.php";
}
</script>

</head>

<body id="theAdminPage">

<div id="the_page">


<div id="pwgHead">
  <h1>
    <a href="/piwigo/" title="Visiter la galerie">
            <span class="icon-home" style="font-size:larger"></span>
            Galerie photos d'Eric
    </a>
  </h1>

  <div id="headActions">
    Bonjour administrateur |
    <a class="icon-eye" href="/piwigo/">Visiter la galerie</a> |
    <a class="icon-brush" href="./admin.php?change_theme=1" title="Choisir des couleurs claires ou sombres pour l'administration">Modifier les couleurs de l'administration</a> |
    <a class="icon-help-circled" href="./admin.php?page=help" title="Instructions pour utiliser Piwigo">A l'aide</a> |
    <a class="icon-logout" href="./index.php?act=logout">Déconnexion</a>
  </div>
</div>

<div style="clear:both;"></div>

<div id="pwgMain">
<div id="menubar">
  <div id="adminHome"><a href="./admin.php">Accueil administration</a></div>
    <dl class="first">
        <dt class="rdion"><span class="icon-picture"> </span><span>Photos&nbsp;</span></dt>
        <dd>
            <ul>
                <li><a class="icon-plus-circled" href="./admin.php?page=photos_add">Ajouter</a></li>
                <li><a class="icon-star" href="./admin.php?page=rating">Notation</a></li>
                <li><a class="icon-tags" href="./admin.php?page=tags">Tags</a></li>
                <li><a class="icon-clock" href="./admin.php?page=batch_manager&amp;filter=prefilter-last_import">Photos récentes</a></li>
                <li><a class="icon-pencil" href="./admin.php?page=batch_manager">Gestion par lot</a></li>
            </ul>
        </dd>
    </dl>
    <dl>
        <dt class="rdion"><span class="icon-sitemap"> </span><span>Albums&nbsp;</span></dt>
    <dd>
      <ul>
        <li><a class="icon-folder-open" href="./admin.php?page=cat_list">Gérer</a></li>
        <li><a class="icon-pencil" href="./admin.php?page=cat_options">Propriétés</a></li>
      </ul>
    </dd>
    </dl>
    <dl>
        <dt class="rdion"><span class="icon-users"> </span><span>Utilisateurs&nbsp;</span></dt>
        <dd>
      <ul>
        <li><a class="icon-user-add" href="./admin.php?page=user_list">Gérer</a></li>
        <li><a class="icon-group" href="./admin.php?page=group_list">Groupes</a></li>
                <li><a class="icon-mail-1" href="./admin.php?page=notification_by_mail">Notification</a></li>
      </ul>
        </dd>
    </dl>
    <dl>
        <dt class="rdion"><span class="icon-puzzle"> </span><span>Plugins&nbsp;</span></dt>
        <dd>
      <ul>
        <li><a class="icon-equalizer" href="./admin.php?page=plugins">Gérer</a></li>
      </ul>
      <div id="pluginsMenuSeparator"></div>
      <ul class="scroll">
        <li><a href="admin.php?page=plugin-flickr2piwigo">Flickr2Piwigo</a></li>
        <li><a href="admin.php?page=plugin-Fotorama">Fotorama</a></li>
        <li><a href="admin.php?page=plugin-LocalFilesEditor">LocalFiles Editor</a></li>
        <li><a href="admin.php?page=plugin&amp;section=rv_gmaps%2Fadmin%2Fadmin.php">Maps & Earth</a></li>
        <li><a href="admin.php?page=plugin-UserAdvManager">UserAdvManager</a></li>
      </ul>
        </dd>
    </dl>
    <dl>
        <dt class="rdion"><span class="icon-wrench"> </span><span>Outils&nbsp;</span></dt>
        <dd>
      <ul>
        <li><a class="icon-exchange" href="./admin.php?page=site_update&amp;site=1">Synchroniser</a></li>
        <li><a class="icon-flow-branch" href="./admin.php?page=site_manager">Gestionnaire des sites</a></li>
                <li><a class="icon-signal" href="./admin.php?page=stats">Historique</a></li>
                <li><a class="icon-tools" href="./admin.php?page=maintenance">Maintenance</a></li>
                <li><a class="icon-chat" href="./admin.php?page=comments">Commentaires</a></li>
        <li><a class="icon-arrows-cw" href="./admin.php?page=updates">Mises à jour</a></li>
      </ul>
        </dd>
    </dl>
    <dl class="last">
        <dt class="rdion"><span class="icon-cog"> </span><span>Configuration&nbsp;</span></dt>
        <dd>
      <ul>
        <li><a class="icon-cog-alt" href="./admin.php?page=configuration">Options</a></li>
        <li><a class="icon-menu" href="./admin.php?page=menubar">Menus</a></li>
        <li><a class="icon-code" href="./admin.php?page=extend_for_templates">Templates (modèles)</a></li>
                <li><a class="icon-language" href="./admin.php?page=languages">Langues</a></li>
        <li><a class="icon-brush" href="./admin.php?page=themes">Thèmes</a></li>
      </ul>
    </dd>
  </dl>
</div> <!-- menubar -->

<div id="content" class="content">

  <div id="tabsheet">
<ul class="tabsheet">
  <li class="selected_tab">
    <a href="admin.php?page=plugin-flickr2piwigo-import"><span>Importation</span></a>
  </li>
  <li class="normal_tab">
    <a href="admin.php?page=plugin-flickr2piwigo-config"><span>Configuration</span></a>
  </li>
</ul>
</div>

  <div class="infos">
    <ul>
      <li><a href="admin.php?page=batch_manager&amp;filter=prefilter-flickr">6 photo ne sont pas affichées car elles existent déjà sur la galerie</a></li>
    </ul>
  </div>
 
<div style="display:none">
  <div id="addAlbumForm" style="text-align:left;padding:1em;">
    <form>
      Album parent<br>
      <select id="category_parent" name="category_parent">
      </select>
      <br><br>
     
      Nom de l'album<br>
      <input name="category_name" type="text" maxlength="255"> <span id="categoryNameError"></span>
      <br><br><br>
     
      <input type="submit" value="Créer">
      <span id="albumCreationLoading" style="display:none"><img src="themes/default/images/ajax-loader-small.gif"></span>
    </form>
  </div>
</div>

<div class="titrePage">
    <h2>Flickr2Piwigo</h2>
</div>

<form action="admin.php?page=plugin-flickr2piwigo-import&amp;action=import_set" method="post" id="import_form">

  <fieldset>
    <legend>Sélection</legend>

xxx elements prêts à l'importation
  </fieldset>

  <fieldset>
    <legend>Options d'importation</legend>

    <p>
      <label><input type="radio" name="album_mode" value="identical" checked="checked"> Reproduire les albums Flickr</label><br>
      <label><input type="radio" name="album_mode" value="one_album"> Ajouter toutes les photos à cet album :</label>
    </p>

    <p id="albumSelectWrapper" style="display:none;">
      <select style="width:400px" name="associate" id="albumSelect" size="1">
        <option value="8">Album test</option>
<option value="11">Album test / Décoration</option>

      </select>
      ... ou bien <a href="#" class="addAlbumOpen" title="créer un nouvel album">créer un nouvel album</a>
    </p>

    <p>
      <b>Remplir ces champs à partir des données de Flickr:</b>
      <label><input type="checkbox" name="fill_name" checked="checked"> Nom de la photo</label>
      <label><input type="checkbox" name="fill_author" checked="checked"> Auteur</label>
      <label><input type="checkbox" name="fill_tags" checked="checked"> Tags</label>
      <label><input type="checkbox" name="fill_taken" checked="checked"> Date de création</label>
      <label><input type="checkbox" name="fill_posted"> Date d'ajout</label>
      <label><input type="checkbox" name="fill_description" checked="checked"> Description</label>
      <label><input type="checkbox" name="fill_geotag" checked="checked"> Géolocalisation</label>
      <label><input type="checkbox" name="fill_level" checked="checked"> Niveau de confidentialité</label>
    </p>

    <p>
      <input type="submit" name="import_set" id="beginImport" value="Commencer le transfert" >
      <span id="loader_import" style="display:none;"><img src="admin/themes/default/images/ajax-loader.gif"> <i>En cours...</i> <span id="progress"></span></span>
    </p>
  </fieldset>
</form>


</div>
</div> <!-- pwgMain -->

<div id="footer">
  <div id="piwigoInfos">


  Propulsé par
  <a class="externalLink" href="http://fr.piwigo.org" title="Visiter le site web du projet Piwigo">
  <span class="Piwigo">Piwigo</span></a>
 
  | <a class="externalLink" href="http://fr.piwigo.org/doc" title="Lire la documentation Piwigo">Documentation</a>
  | <a class="externalLink" href="http://fr.piwigo.org/forum" title="Obtenir de l'aide sur le forum Piwigo">Support</a>
  </div> <!-- piwigoInfos -->

  <div id="pageInfos">
  Contacter
  <a href="mailto:xxxxx@yahoo.fr?subject=Un%20commentaire%20sur%20le%20site">Webmestre</a>
  </div> <!-- pageInfos -->

</div> <!-- footer -->
</div> <!-- the_page -->





<!-- BEGIN get_combined_scripts -->
<script type="text/javascript" src="_data/combined/yrxw43.js"></script>
<script type="text/javascript">//<![CDATA[

jQuery(document).ready(function(){
  jQuery(".addAlbumOpen").colorbox({
    inline: true,
    href: "#addAlbumForm",
    onComplete: function() {
      var $albumSelect = jQuery("#albumSelect");

      jQuery("input[name=category_name]").focus();
     
      jQuery("#category_parent").html('<option value="0">------------</option>')
        .append($albumSelect.html())
        .val($albumSelect.val() || 0);
    }
  });

  jQuery("#addAlbumForm form").submit(function() {
      jQuery("#categoryNameError").text("");
     
      var parent_id = jQuery("select[name=category_parent] option:selected").val(),
          name = jQuery("input[name=category_name]").val();

      jQuery.ajax({
        url: "ws.php",
        dataType: 'json',
        data: {
          format: 'json',
          method: 'pwg.categories.add',
          parent: parent_id,
          name: name
        },
        beforeSend: function() {
          jQuery("#albumCreationLoading").show();
        },
        success: function(data) {
          jQuery("#albumCreationLoading").hide();
          jQuery(".addAlbumOpen").colorbox.close();

          var newAlbum = data.result.id,
              newAlbum_name = '';
             
          if (parent_id!=0) {
            newAlbum_name = jQuery("#category_parent").find("option[value="+ parent_id +"]").text() +' / ';
          }
          newAlbum_name+= name;
         
          var new_option = jQuery("<option/>")
              .attr("value", newAlbum)
              .attr("selected", "selected")
              .text(newAlbum_name);

          var $albumSelect = jQuery("#albumSelect");
          $albumSelect.find("option").removeAttr('selected');
         
          if (parent_id==0) {
            $albumSelect.prepend(new_option);
          }
          else {
            $albumSelect.find("option[value="+ parent_id +"]").after(new_option);
          }

          jQuery("#addAlbumForm form input[name=category_name]").val('');
          jQuery("#albumSelection").show();

          return true;
        },
        error: function(XMLHttpRequest, textStatus, errorThrows) {
            jQuery("#albumCreationLoading").hide();
            jQuery("#categoryNameError").text(errorThrows).css("color", "red");
        }
      });

      return false;
  });
});
(function($){
  /* global vars */
  var all_elements = [Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array,Array];
  var import_done = 0;
  var import_selected = 707;
  var queuedManager = $.manageAjax.create('queued', {
    queue: true,
    maxRequests: 1
  });

  /* import queue */
  function performImport(photo, album, fills) {
    queuedManager.add({
      type: 'GET',
      dataType: 'json',
      url: 'ws.php',
      data: {
        method: 'pwg.images.addFlickr',
        id: photo,
        category: album,
        fills: fills,
        format: 'json'
      },
      success: function(data) {
        if (data['stat'] == 'ok') {
          $.jGrowl(data['result'], {
            theme: 'success', life: 4000, sticky: false,
            header: 'Success',
          });
          $("#photo-"+photo.id).fadeOut(function(){ $(this).remove(); });
        }
        else {
          $.jGrowl(data['result'], {
            theme: 'error', sticky: true,
            header: 'ERREUR'
          });
        }

        import_done++;
        $("#progress").html(import_done +"/"+ import_selected);

        if (import_done == import_selected) {
          $("#import_form").append('<input type="hidden" name="done" value="' + import_done + '">');
          $("#import_form").submit();
        }
      },
      error: function(data) {
        $.jGrowl('une erreur est survenue', {
          theme: 'error', sticky: true,
          header: 'ERREUR'
        });
      }
    });
  }

  /* begin import */
  $('#beginImport').click(function() {
    $("#loader_import").fadeIn();

    if ($("input[name='album_mode']:checked").val() == 'identical') {
      var album = 0;
    }
    else {
      var album = $("#albumSelect option:selected").val();
    }

    var fills = '';
    $("input[name^='fill_']:checked").each(function() {
      fills+= $(this).attr("name") +',';
    });

    import_selected = all_elements.length;
    $("#progress").html("0/"+ import_selected);

    for (var i in all_elements) {
      if (album == 0) this_album = all_elements[i]['albums'];
      else            this_album = album;

      performImport(all_elements[i]['id'], this_album, fills);
    }

    return false;
  });

  /* album mode */
  $("input[name='album_mode']").change(function() {
    if ($(this).val() == 'one_album') {
      $("#albumSelectWrapper").slideDown();
    }
    else {
      $("#albumSelectWrapper").slideUp();
    }
  });
}(jQuery));
jQuery(document).ready(function(){
    jQuery('#menubar').accordion({
        header: "dt.rdion",
        event: "click",
        heightStyle: "content",
        active: 3
    });
});
jQuery(document).ready(function() {
    jQuery('#pwgHead A[title], #footer A[title], .themeActions .tiptip, .languageActions .tiptip').tipTip({
            'delay' : 0,
            'fadeIn' : 200,
            'fadeOut' : 200
    });
});
//]]></script>
<!-- END get_combined_scripts -->


<script type='text/javascript'>
  jQuery(document).ready(function() {
    $("a.externalLink").click(function() {
      window.open($(this).attr("href"));
      return false;
    });
  });
</script>



</body>
</html>

Dernière modification par Erun (2014-02-16 12:19:40)

Hors ligne

#12 2014-02-08 11:38:23

mistic100
Ex Equipe Piwigo
Lyon
2008-09-27
3561

Re: Chargement Flickr2Piwigo impossible

j'avais dit "ws.php" ..... enfin c'est pas grave puisque je n'en ai plus besoin

par contre

Code:

Warning: filemtime(): stat failed for ./themes/default/js/plugins/jquery.jGrowl.css in /volume1/web/piwigo/include/template.class.php on line 1863

-//:---\spam qu'il vous manque un fichier (c'est un fichier de Piwigo)
vous devriez retélécharger Piwigo et retransferer les fichiers

Hors ligne

#13 2014-02-08 11:51:28

Erun
Membre
2014-02-06
35

Re: Chargement Flickr2Piwigo impossible

Ok, j'ai procédé à la mise à jour de Flickr2piwigo (F2P), je suis en train de relancer le téléchargement.
Il semble que ça fonctionne maintenant ... merci.

Je profite pour vous poser quelques questions :
- Flickr2piwigo gère t-il les classeurs/albums de flickr comme des albums/sous albums sous Piwigo ?
- Flickr2Piwigo reconnait t'il les photos déjà chargées et existantes dans piwigo lors d'un nouveau chargement ?  (par exemple 3 nouvelles photo postées dans dans un album flickr composé de 50 photos... F2P ne charge que les 3 nouvelles).
- Flickr2Piwigo reconnait t'il la mise à jour des infos flickr (par exemple l'ajout d'une description sous flickr est-elle répercutée par un nouveau téléchargement,(cad une nouvelle photo en plus qui fera doublon) ou est telle directement remplacé.

Le temps de taper ces quelques ligne et je suis à 23/710 photos c'est cool...

Merci !!!! c'est génial si tt fonctionne.

Hors ligne

#14 2014-02-08 11:53:35

mistic100
Ex Equipe Piwigo
Lyon
2008-09-27
3561

Re: Chargement Flickr2Piwigo impossible

- je ne sais pas ce que c'est... l'API Flickr donne une liste d'albums (ce qu'on peut voir sur l'accueil du plugin) et je n'utilise que ça

- oui

- non aucune mise à jour possible, le plugin n'est pas conçu comme un outil de synchro mais de migration

Hors ligne

#15 2014-02-08 11:57:50

Erun
Membre
2014-02-06
35

Re: Chargement Flickr2Piwigo impossible

mistic100 a écrit:

j'avais dit "ws.php" ..... enfin c'est pas grave puisque je n'en ai plus besoin

Oui mais en fait j'avais pas ces lignes au départ dans la console ... mais voilà maintenant au cas ou y a encore un truc à corriger

method=pwg.images.addFlickr&id=11640442894&category=Noces+dOr&fills=fill_name%2Cfill_author%2Cfill_tags%2Cfill_taken%2Cfill_posted%2Cfill_description%2Cfill_geotag%2Cfill_level%2C&format=json
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Encoding:gzip,deflate,sdch
Accept-Language:fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Cookie:pwg_id=3jasekkc7o85f6up240tfks3m6; picture_deriv=medium
DNT:1
Referer:https://homeec2229.org/piwigo/admin.php?page=plugin-flickr2piwigo-import&action=list_all
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36
X-Requested-With:XMLHttpRequest
Query String Parametersview sourceview URL encoded
method:pwg.images.addFlickr
id:11640442894
category:Noces dOr
fills:fill_name,fill_author,fill_tags,fill_taken,fill_posted,fill_description,fill_geotag,fill_level,
format:json
Response Headersview source
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:Keep-Alive
Content-Encoding:gzip
Content-Length:71
Content-Type:text/plain; charset=utf-8
Date:Sat, 08 Feb 2014 10:54:31 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive:timeout=5, max=67
Pragma:no-cache
Server:Apache
Vary:Accept-Encoding

réponse
{"stat":"ok","result":"Photo \"Noces d'Or\" imported"}

mistic100 a écrit:

par contre

Code:

Warning: filemtime(): stat failed for ./themes/default/js/plugins/jquery.jGrowl.css in /volume1/web/piwigo/include/template.class.php on line 1863

-//:---\spam qu'il vous manque un fichier (c'est un fichier de Piwigo)
vous devriez retélécharger Piwigo et retransferer les fichiers

Il faut refaire toute l'installation en supprimant le dossier ?

Dernière modification par Erun (2014-02-08 12:00:36)

Hors ligne

  •  » Plugins
  •  » Chargement Flickr2Piwigo impossible

Pied de page des forums

Propulsé par FluxBB

github twitter newsletter Faire un don Piwigo.org © 2002-2024 · Contact