MantisBT - Piwigo
View Issue Details
0002648Piwigoweb APIpublic2012.06.07 15:072012.06.07 15:13
plg 
plg 
normalmajorhave not tried
closedfixed 
2.3.4 
2.3.52.3.5 
any
Apache 1.3.x
0002648: pwg.categories.getList returns nothing
After investigation, when called pwg.categories.getList it sometimes returns nothing because the output starts with:

Notice: Undefined index: in /home/pierrick/public_html/piwigo/dev/branches/2.3/include/ws_functions.inc.php on line 720

... which is not a JSON string and it makes parsing impossible!

this is due to missing representative_picture_id for an album, which is not a real problem. We should just avoid to throw an error.
No tags attached.
Issue History
2012.06.07 15:07plgNew Issue
2012.06.07 15:07plgStatusnew => assigned
2012.06.07 15:07plgAssigned To => plg
2012.06.07 15:07plgbrowser => any
2012.06.07 15:07plgWeb server => Apache 1.3.x
2012.06.07 15:08svnCheckin
2012.06.07 15:08svnNote Added: 0006341
2012.06.07 15:09svnCheckin
2012.06.07 15:09svnNote Added: 0006342
2012.06.07 15:13plgStatusassigned => closed
2012.06.07 15:13plgResolutionopen => fixed
2012.06.07 15:13plgFixed in Version => 2.3.5

Notes
(0006341)
svn   
2012.06.07 15:08   
[Subversion] r15585 by plg on branch 2.3

-----[Subversion commit log]----------------------------------------------------
bug 2648 fixed: pwg.categories.getList, avoid to throw an error when
representative_picture_id is missing for an album, which makes parsing
the JSON output impossible.
(0006342)
svn   
2012.06.07 15:09   
[Subversion] r15586 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r15585 from branch 2.3 to trunk

bug 2648 fixed: pwg.categories.getList, avoid to throw an error when
representative_picture_id is missing for an album, which makes parsing
the JSON output impossible.