Piwigo Bugtracker

Piwigo bug tracker has moved to Github

This bugtracker is kept to provide history on old issues.


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003164Piwigoweb APIpublic2014.10.23 10:502014.10.26 10:39
Reporternerve 
Assigned Toplg 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformApache / PHPOSgentoo linuxOS Version
Product Version2.7.1 
Target Version2.7.2Fixed in Version 
Summary0003164: PHP warnings befor json or xml output renders output unusable
DescriptionIf you have configured php to display warnings and errors like I have,
and you are using the the web API pwg.categories.getList,
with some parameter combinations, you have output like this one i have posted in Additional Information. The problem is that this renders the json unusable.
Steps To Reproduce1. Go to piwigo web api
2. Go to pwg.categories.getList
3. Select recursive = true
4. Select tree_output = true
5. insert a cat_id with is not the top most (see example link)
6. klick on invoke --> see the output

Here i have an example link with demonstrate the problem:

http://www.ipwar.ch/piwigo/ws.php?format=json&method=pwg.categories.getList&cat_id=144&recursive=true&tree_output=true [^]
Additional Information

Notice: Undefined offset: 8 in /var/www/localhost/htdocs/piwigo/include/ws_functions.inc.php on line 244



Notice: Undefined offset: 8 in /var/www/localhost/htdocs/piwigo/include/ws_functions.inc.php on line 246



Notice: Undefined offset: 8 in /var/www/localhost/htdocs/piwigo/include/ws_functions.inc.php on line 250



Notice: Undefined index: id in /var/www/localhost/htdocs/piwigo/include/ws_functions.inc.php on line 236

{"stat":"ok","result":[{"sub_categories":[{"id":144,"name":"Daniel & Corinne 2014","comment":"","permalink":null,"uppercats":"8,144","global_rank":"1.1","id_uppercat":"8","nb_images":0,"total_nb_images":873,"representative_picture_id":"49342","date_last":null,"max_date_last":"2014-10-15 00:04:58","nb_categories":10,"url":"http:\/\/www.ipwar.ch\/piwigo\/index.php?\/category\/144","tn_url":"http:\/\/www.ipwar.ch\/piwigo\/_data\/i\/upload\/2014\/03\/16\/20140316104624-6dbeac90-th.jpg","sub_categories":[{"id":150,"name":"Saskia im 2014","comment":"","permalink":null,"uppercats":"8,144,150","global_rank":"1.1.1","id_uppercat":"144","nb_images":18,"total_nb_images":18,"representative_picture_id":"49342","date_last":"2014-10-14 23:48:20","max_date_last":"2014-10-14 23:48:20","nb_categories":0,"url":"http:\/\/www.ipwar.ch\/piwigo\/index.php?\/category\/150","tn_url":"http:\/\/www.ipwar.ch\/piwigo\/_data\/i\/upload\/2014\/03\/16\/20140316104624-6dbeac90-th.jpg"},{"id":147,"name":"Besuch im Ferienhaus am 21.-22.2.2014","comment":"","permalink":null,"uppercats":"8,144,147","global_rank":"1.1.2","id_uppercat":"144","nb_images":138,"total_nb_images":138,"representative_picture_id":"49008","date_last":"2014-03-16 17:46:21","max_date_last":"2014-03-16 17:46:21","nb_categories":0,"url":"http:\/\/www.ipwar.ch\/piwigo\/index.php?\/category\/147","tn_url":"http:\/\/www.ipwar.ch\/piwigo\/_data\/i\/upload\/2014\/03\/16\/20140316104831-3bb860ac-th.jpg"},{"id":921,"name":"Besuch beim Tag der Offenen T\u00fcre der RhB in Landquart","comment":"","permalink":null,"uppercats":"8,144,921","global_rank":"1.1.3","id_uppercat":"144","nb_images":111,"total_nb_images":111,"representative_picture_id":"25000","date_last":"2014-09-07 17:12:12","max_date_last":"2014-09-07 17:12:12","nb_categories":0,"url":"http:\/\/www.ipwar.ch\/piwigo\/index.php?\/category\/921","tn_url":"http:\/\/www.ipwar.ch\/piwigo\/_data\/i\/upload\/2014\/06\/17\/20140617170653-025da205-th.jpg"},{"id":145,"name":"Sommerferien im Juni 2014","comment":"","permalink":null,"uppercats":"8,144,145","global_rank":"1.1.4","id_uppercat":"144","nb_images":180,"total_nb_images":180,"representative_picture_id":"49359","date_last":"2014-06-17 16:40:17","max_date_last":"2014-06-17 16:40:17","nb_categories":0,"url":"http:\/\/www.ipwar.ch\/piwigo\/index.php?\/category\/145","tn_url":"http:\/\/www.ipwar.ch\/piwigo\/_data\/i\/upload\/2014\/06\/17\/20140617163436-918f3754-th.jpg"},{"id":148,"name":"Feuerwehrausflug 2014","comment":"","permalink":null,"uppercats":"8,144,148","global_rank":"1.1.5","id_uppercat":"144","nb_images":160,"total_nb_images":196,"representative_picture_id":"49182","date_last":"2014-09-07 17:12:12","max_date_last":"2014-09-11 15:58:46","nb_categories":1,"url":"http:\/\/www.ipwar.ch\/piwigo\/index.php?\/category\/148","tn_url":"http:\/\/www.ipwar.ch\/piwigo\/_data\/i\/upload\/2014\/07\/07\/20140707113941-d46146d3-th.jpg","sub_categories":[{"id":914,"name":"Filme","comment":"","permalink":null,"uppercats":"8,144,148,914","global_rank":"1.1.5.1","id_uppercat":"148","nb_images":36,"total_nb_images":36,"representative_picture_id":"84823","date_last":"2014-09-11 15:58:46","max_date_last":"2014-09-11 15:58:46","nb_categories":0,"url":"http:\/\/www.ipwar.ch\/piwigo\/index.php?\/category\/914","tn_url":"http:\/\/www.ipwar.ch\/piwigo\/_data\/i\/galleries\/filme\/Canyoning\/pwg_representative\/GOPR0272-th.jpg"}]},{"id":146,"name":"Altnauer Tag Nacht Regatta 2014","comment":"","permalink":null,"uppercats":"8,144,146","global_rank":"1.1.6","id_uppercat":"144","nb_images":23,"total_nb_images":23,"representative_picture_id":"48985","date_last":"2014-08-20 13:38:24","max_date_last":"2014-08-20 13:38:24","nb_categories":0,"url":"http:\/\/www.ipwar.ch\/piwigo\/index.php?\/category\/146","tn_url":"http:\/\/www.ipwar.ch\/piwigo\/_data\/i\/upload\/2014\/08\/20\/20140820133544-7376687b-th.jpg"},{"id":922,"name":"Herbstferien August \/ September","comment":"","permalink":null,"uppercats":"8,144,922","global_rank":"1.1.7","id_uppercat":"144","nb_images":189,"total_nb_images":189,"representative_picture_id":"85637","date_last":"2014-10-15 00:03:22","max_date_last":"2014-10-15 00:03:22","nb_categories":0,"url":"http:\/\/www.ipwar.ch\/piwigo\/index.php?\/category\/922","tn_url":"http:\/\/www.ipwar.ch\/piwigo\/_data\/i\/upload\/2014\/10\/14\/20141014235236-1c440b00-th.jpg"},{"id":920,"name":"SMM 2014 in Olten","comment":"","permalink":null,"uppercats":"8,144,920","global_rank":"1.1.8","id_uppercat":"144","nb_images":6,"total_nb_images":6,"representative_picture_id":"85630","date_last":"2014-10-14 23:33:20","max_date_last":"2014-10-14 23:33:20","nb_categories":0,"url":"http:\/\/www.ipwar.ch\/piwigo\/index.php?\/category\/920","tn_url":"http:\/\/www.ipwar.ch\/piwigo\/_data\/i\/upload\/2014\/10\/14\/20141014233309-3d4cf744-th.jpg"},{"id":923,"name":"Wanderung mit Omi & Opa","comment":"Vom Stoss nach Gais","permalink":null,"uppercats":"8,144,923","global_rank":"1.1.9","id_uppercat":"144","nb_images":12,"total_nb_images":12,"representative_picture_id":"85828","date_last":"2014-10-15 00:04:58","max_date_last":"2014-10-15 00:04:58","nb_categories":0,"url":"http:\/\/www.ipwar.ch\/piwigo\/index.php?\/category\/923","tn_url":"http:\/\/www.ipwar.ch\/piwigo\/_data\/i\/upload\/2014\/10\/15\/20141015000428-f58dae44-th.jpg"}]}]}]}
TagsNo tags attached.
browserany
Database engine and versionMySQL: 5.5.39
PHP versionPHP: 5.4.32-pl0-gentoo
Web serverApache 2.2.27
Attached Files

- Relationships

-  Notes
(0007701)
nerve (reporter)
2014.10.23 10:53

sorry, posted with wrong Severity ==> minor is korrekt

- Issue History
Date Modified Username Field Change
2014.10.23 10:50 nerve New Issue
2014.10.23 10:50 nerve browser => any
2014.10.23 10:50 nerve Database engine and version => MySQL: 5.5.39
2014.10.23 10:50 nerve PHP version => PHP: 5.4.32-pl0-gentoo
2014.10.23 10:50 nerve Web server => Apache 2.2.27
2014.10.23 10:53 nerve Note Added: 0007701
2014.10.26 09:47 mistic100 Severity major => minor
2014.10.26 10:39 plg Status new => assigned
2014.10.26 10:39 plg Assigned To => plg
2014.10.26 10:39 plg Target Version => 2.7.2


Copyright © 2000 - 2019 MantisBT Team
Contact
Powered by Mantis Bugtracker