PHP Notice make JSON invalid

Issue #2 resolved
Peter Potrowl created an issue

Dear Magnus,

I am getting a lot of "Notice" on this request: http://tools.wmflabs.org/catscan2/quick_intersection.php?lang=commons&project=commons&cats=Religious+buildings+in+France&ns=14&depth=12&max=300&start=0&format=html&redirects=none&wikidata=1&callback=

If I change the format to JSON, this results in an invalid JSON. Can you please fix CatScan so that the Notice don't appear in the JSON, please?

Thanks in advance. Best regards.

Comments (2)

  1. Peter Potrowl reporter

    Dear Magnus,

    I can probably solve the problem myself and propose a patch, so I am searching for the source code of the version of quick_intersection.php that is running at http://tools.wmflabs.org/catscan2/quick_intersection.php

    It seems that it is not the same version as in your repository, because on the latest version, line 320 is not supposed to be executed ($format != 'wiki')...

    Can you please tell me more about the situation or who I should contact to fix the tool?

    Thanks in advance. Best regards.

  2. Log in to comment