Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-26660

Invalid JSON String when use picasa repository plugin and no photos/folders i account

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.2.6, 2.3.3
    • Fix Version/s: 2.2.7, 2.3.4
    • Component/s: Repositories
    • Labels:
    • Environment:
      Win 7, Linux, Firefox, IE, Safari,
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      Test pre-requisites

      • Picasa repository enabled
      • A brand new google account without any albums or photos in picasa (don't even login to picasa)

      Test steps

      1. Go to your private files and open Picasa
      2. Make sure there is no error while browsing the content (which should be empty as you are using an empty account)
      3. Add some files to Picasa
      4. Make sure there is no error, and the files are displayed
      5. Make sure that you can download the files and view them in Moodle.
      Show
      Test pre-requisites Picasa repository enabled A brand new google account without any albums or photos in picasa (don't even login to picasa) Test steps Go to your private files and open Picasa Make sure there is no error while browsing the content (which should be empty as you are using an empty account) Add some files to Picasa Make sure there is no error, and the files are displayed Make sure that you can download the files and view them in Moodle.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-26660-master

      Description

      Dear:
      Picasa Web Album repository, gave me the following error:
      "Invalid JSON String"

      When upgraded with the latest installation of moodle, now I get the following error:
      "Exception - String not could be parsed as XML"

      The problem only occurs with this repository. The rest of the repositories work well.

      Chek as everything is OK, but the problem persists. I tested with a new facility on the same server with the same pc and a different subdomain and there it works correctly.

      ERROR: Invalid JSON String

      Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 1: parser error : Start tag expected, '<' not found in /0campusCapacVirtual/lib/googleapi.php on line 479

      Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Unknown user. in /0campusCapacVirtual/lib/googleapi.php on line 479

      Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /0campusCapacVirtual/lib/googleapi.php on line 479

      {"error":"Excepci\u00f3n - String could not be parsed as XML","stacktrace":"* line 479 of \/lib\/googleapi.php: Exception thrown\n* line 479 of \/lib\/googleapi.php: call to SimpleXMLElement->__construct()\n* line 440 of \/lib\/googleapi.php: call to google_picasa->get_albums()\n* line 87 of \/repository\/picasa\/lib.php: call to google_picasa->get_file_list()\n* line 140 of \/repository\/repository_ajax.php: call to repository_picasa->get_listing()\n","debuginfo":null,"reproductionlink":"http:\/\/www.myweb.com\/"}

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jan/13