Closed (fixed)
Project:
Insert View
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Sep 2008 at 13:43 UTC
Updated:
13 Jul 2011 at 18:30 UTC
Jump to comment: Most recent file
* notice: Undefined variable: mtch in insert_view/insert_view.module on line 113.
* notice: Undefined variable: repl in insert_view/insert_view.module on line 113.
PHP notice when a view does not exists.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 313329_php_notice.patch | 760 bytes | pasqualle |
Comments
Comment #1
pasquallein function _insert_view_substitute_tags($text)
move
inside the
if ($view) {}statementComment #2
mlsamuelson commentedPasqualle,
I'm not able to reproduce the notices.
Additionally, if we move the return code inside the
if ($view) {...}we break the ability to insert more than one view in a node.Can anyone confirm the notices? I'm wondering if maybe they occurred with an earlier version of Views 2.
mlsamuelson
Comment #3
pasquallerepro steps:
1. install drupal-6.x-dev
2. enable views and insert_view modules
3. enable insert view filter
4. create a node with [view:noview]
I can confirm that the patch is not correct because it indeed breaks the ability to insert more than one view in a node.
marking CNW
Comment #4
pasquallenew patch
you need to use drupal-6.x-dev (or hack common.inc) to see the PHP notices
more details here: #291026: change E_NOTICE to warning and allow selection of error level
Comment #5
pasqualleComment #6
pasqualle