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

Only variables should be passed by reference error in Oracle installing WIRIS

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.8, 2.7.5, 2.8.3
    • 2.7.6, 2.8.4
    • Database SQL/XMLDB
    • PHP 5.4 or greater

    Description

      There's a little error on bind_params function when applying the dirty hack:

      default: // Bind as CHAR (applying dirty hack)
          // TODO: Optimise
          oci_bind_by_name($stmt, $key, $this->oracle_dirty_hack($tablename, $columnname, $params[$key]));
      

      I've only reached the code installing Wiris, where it fails with this message:

      uncaught exception: Only variables should be passed by reference (errno: 2048) in /var/www/html/moodle/lib/dml/oci_native_moodle_database.php at line #981Only variables should be passed by reference
       
      in file: /var/www/html/moodle/lib/dml/oci_native_moodle_database.php line 981
      #0 /var/www/html/moodle/lib/dml/oci_native_moodle_database.php(981): _hx_error_handler(2048, 'Only variables ...', '/var/www/html/m...', 981, Array)
      #1 /var/www/html/moodle/lib/dml/oci_native_moodle_database.php(1125): oci_native_moodle_database->bind_params(Resource id #799, Array)
      #2 /var/www/html/moodle/lib/dml/moodle_database.php(1305): oci_native_moodle_database->get_records_sql('SELECT filter,a...', Array, 0, 0)
      #3 /var/www/html/moodle/lib/dml/moodle_database.php(1256): moodle_database->get_records_select('filter_active', 'contextid = :co...', Array, 'sortorder', 'filter,active,s...', 0, 0)
      #4 /var/www/html/moodle/lib/filterlib.php(1101): moodle_database->get_records('filter_active', Array, 'sortorder', 'filter,active,s...')
      #5 /var/www/html/moodle/lib/filterlib.php(687): filter_get_global_states()
      #6 /var/www/html/moodle/filter/wiris/MoodleConfigurationUpdater.php(50): filter_get_globally_enabled()
      #7 /var/www/html/moodle/filter/wiris/MoodleConfigurationUpdater.php(85): com_wiris_plugin_configuration_MoodleConfigurationUpdater->getLatexStatus()
      #8 /var/www/html/moodle/lib/editor/tinymce/plugins/tiny_mce_wiris/tinymce/integration/lib/com/wiris/plugin/impl/ConfigurationImpl.class.php(82): com_wiris_plugin_configuration_MoodleConfigurationUpdater->updateConfiguration(Array)
      #9 /var/www/html/moodle/lib/editor/tinymce/plugins/tiny_mce_wiris/tinymce/integration/lib/com/wiris/plugin/impl/ConfigurationImpl.class.php(96): com_wiris_plugin_impl_ConfigurationImpl->initialize0()
      #10 /var/www/html/moodle/filter/wiris/wirispluginwrapper.php(91): com_wiris_plugin_impl_ConfigurationImpl->getProperty('wiriseditorenab...', NULL)
      #11 /var/www/html/moodle/filter/wiris/filtersettings.php(59): WIRISpluginWrapper->was_editor_enabled()
      #12 /var/www/html/moodle/lib/classes/plugininfo/filter.php(87): include('/var/www/html/m...')
      #13 /var/www/html/moodle/admin/settings/plugins.php(163): core\plugininfo\filter->load_settings(Object(admin_root), 'filtersettings', true)
      #14 /var/www/html/moodle/lib/adminlib.php(6626): require('/var/www/html/m...')
      #15 /var/www/html/moodle/admin/settings.php(19): admin_get_root()
      #16 {main}
      

      Attachments

        Issue Links

          Activity

            People

              pferre22 Pau Ferrer
              pferre22 Pau Ferrer
              John Okely John Okely
              Andrew Lyons Andrew Lyons
              Adrian Greeve Adrian Greeve
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Mar/15