Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34311 Improve debugging when using default cleaning
  3. MDL-39401

setType() warnings in Box.net and Flickr portfolio export forms

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.5
    • 2.5
    • Portfolio
    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • Hide

      This test requires the following:
      Portfolios and the Box.net, Flickr and Picasa portfolio plugins enabled for the site
      A forum activity containing a post by a student with an image attached
      Box.net, Flickr and Picasa accounts for use in testing
      1. Login as the student and access the forum post.
      2. Try exporting the post, selecting Box.net as the portfolio.
      3. Check that both the post and attachment are exported correctly to Box.net.
      4. Try exporting the attachment, selecting Flickr as the portfolio.
      5. Check that the image is exported correctly to Flickr.
      6. Try exporting the attachment again, selecting Picasa as the portfolio.
      7. Check that the image is exported correctly to Picasa.

      Show
      This test requires the following: Portfolios and the Box.net, Flickr and Picasa portfolio plugins enabled for the site A forum activity containing a post by a student with an image attached Box.net, Flickr and Picasa accounts for use in testing 1. Login as the student and access the forum post. 2. Try exporting the post, selecting Box.net as the portfolio. 3. Check that both the post and attachment are exported correctly to Box.net. 4. Try exporting the attachment, selecting Flickr as the portfolio. 5. Check that the image is exported correctly to Flickr. 6. Try exporting the attachment again, selecting Picasa as the portfolio. 7. Check that the image is exported correctly to Picasa.

      To replicate these warnings, follow the instructions of the linked QA test.

      The warnings in Box.net are...

      Did you remember to call setType() for 'plugin_newfolder'? Defaulting to PARAM_RAW cleaning.
       
      line 1289 of /lib/formslib.php: call to debugging()
      line 281 of /lib/formslib.php: call to moodleform->detectMissingSetType()
      line 202 of /lib/formslib.php: call to moodleform->_process_submission()
      line 301 of /lib/portfolio/exporter.php: call to moodleform->moodleform()
      line 227 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage_config()
      line 265 of /portfolio/add.php: call to portfolio_exporter->process_stage()
      

      This relates to the form elements in...

      portfolio/boxnet/lib.php, line 96

              $mform->addElement('text', 'plugin_newfolder', get_string('newfolder', 'portfolio_boxnet'));
      

      The warnings in Flickr are...

      Did you remember to call setType() for 'plugin_title'? Defaulting to PARAM_RAW cleaning.
      line 1289 of /lib/formslib.php: call to debugging()
      line 281 of /lib/formslib.php: call to moodleform->detectMissingSetType()
      line 202 of /lib/formslib.php: call to moodleform->_process_submission()
      line 301 of /lib/portfolio/exporter.php: call to moodleform->moodleform()
      line 227 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage_config()
      line 265 of /portfolio/add.php: call to portfolio_exporter->process_stage()
       
      Did you remember to call setType() for 'plugin_tags'? Defaulting to PARAM_RAW cleaning.
      line 1289 of /lib/formslib.php: call to debugging()
      line 281 of /lib/formslib.php: call to moodleform->detectMissingSetType()
      line 202 of /lib/formslib.php: call to moodleform->_process_submission()
      line 301 of /lib/portfolio/exporter.php: call to moodleform->moodleform()
      line 227 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage_config()
      line 265 of /portfolio/add.php: call to portfolio_exporter->process_stage()
      

      This relates to the form elements in...

      porfolio/flickr/lib.php, lines 160-162

              $mform->addElement('text', 'plugin_title', get_string('title', 'portfolio_flickr'));
              $mform->addElement('textarea', 'plugin_description', get_string('description'));
              $mform->addElement('text', 'plugin_tags', get_string('tags'));
      

            rwijaya Rossiani Wijaya
            salvetore Michael de Raadt
            Michael de Raadt Michael de Raadt
            Damyon Wiese Damyon Wiese
            Dan Poltawski Dan Poltawski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.