There appears to be some scenarios that generate watchdog entries for PHP Notices under strict error logging output. This issue is to track patches for potential resolutions. Presently I am only able to confirm 6.x-2.x-dev issues, but feel free to post Notices and resolutions with details of how to reproduce.

Comments

vishun’s picture

Status: Unresolved
Notice: Use of undefined constant matrix - assumed 'matrix' in editablefields_submit() (line 348 of /var/www/sites/all/modules/editablefields/editablefields.module).
Comments: This appears to occur while utilizing the "Click to Edit" format within Views

Line of code:

<?php
       if ((content_handle('widget', 'multiple values', $field) == CONTENT_HANDLE_CORE) && ($field['type'] != matrix)) {
?>

Surrounding code:

<?php
      // the matrix field identifies itself as being multivalue, but in fact, it is not.
      if ((content_handle('widget', 'multiple values', $field) == CONTENT_HANDLE_CORE) && ($field['type'] != matrix)) {
        if ($node->{$field_name}[$delta] != $form_state['values'][$field_name][0]) {
          $node->{$field_name}[$delta] = $form_state['values'][$field_name][0];
          // Custom node_save() function to solve a nodecomment module issue.
          // See _editablefields_node_save() definition below for more details.
          _editablefields_node_save($node);
        }
      }
?>

There are several more I have already fixed, I just failed to make appropriate notes / patches and will try to do so sometime next week.

joelpittet’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this to triage the queue. Feel free to comment if you'd like this to be re-opened, though currently there is nobody supporting the 6.x branch.