Announcement

  •  » Extensions
  •  » Google2Piwigo - a few bugs ?

#1 2014-10-01 19:00:39

ficici
Member
2014-07-27
4

Google2Piwigo - a few bugs ?

Hi mistic100,

So much thanks for such a wonderful plugin.
I noticed some bugs (?) (Google2Piwigo 1.2.0).

1- ws_categories_add: is not defined in ws_functions.inc.php
    safer to use create_virtual_category

2-
'all_elements' => $all_photos,
->
'all_elements' => json_encode($all_photos),

Otherwise [Array, Array,...] in javascript

3-
        $photo = array(
          'id' => $id,
          'album' => $photo,
          );
which outputs integers in javascript while
->

        $photo = array(
          'id' => ''.$id,
          'album' => $photo,
          );
which outputs quoted strings in javascript.
otherwise there are huge ids like 1011485443202
which are 'rounded' by javascript (which thinks that this is a number if not quoted) like 1011485443000 and the import can not be done.

4-
  var all_elements = [{if !empty($all_elements)}{','|@implode:$all_elements}{/if}];
  ->
  var all_elements = {if !empty($all_elements)}{$all_elements}{/if};

Thanks again.

Offline

 

#2 2014-10-01 19:05:50

ficici
Member
2014-07-27
4

Re: Google2Piwigo - a few bugs ?

Hi again mistic100,

Flickr2Piwigo too has the same problem:

modify
'id' => $id,

to

'id' => ''.$id,

Thanks

Offline

 
  •  » Extensions
  •  » Google2Piwigo - a few bugs ?

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact