Hello,

I am getting this error message "Notice: Undefined index: args en DatabaseLog->findCaller() (line 154 /includes/database/log.inc)", when I execute php code in devel module.

Greetings,

Comments

pebels’s picture

Title: Notice: Undefined index: args en DatabaseLog->findCaller() (línea 154 de /home/pterrado/public_html/avanzado7/includes/database/ » Notice: Undefined index: args en DatabaseLog->findCaller() (line 154 de /includes/database/log.inc
salvis’s picture

Status: Active » Postponed (maintainer needs more info)

Please update to the -dev version.

If the problem persists, what does it take to reproduce it? Enable krumo backtrace to find out where findCaller() is called from.

salvis’s picture

Status: Postponed (maintainer needs more info) » Active

The D8 core patch in #1739808-2: Notice: Undefined index: file in Drupal\Core\Database\Log->findCaller() may need to be ported to D7 to fix this notice, once it's accepted into D8.

salvis’s picture

If you have any interest in getting this fixed in D7 core then please review/test the D7 patch at #1739808-24: Notice: Undefined index: file in Drupal\Core\Database\Log->findCaller().

salvis’s picture

Status: Active » Closed (works as designed)

Devel works as designed, Core D7 (and D8) has been fixed and committed.

nastenka’s picture

Issue summary: View changes

Hello,

I am getting such error message when I execute php code with database queries in devel module or in standart block in php format. When "Display query log" is enabled only. Count of queries = count of errors.
Drupal 7.28 Devel 7.x-1.x-dev clean for test:
http://testdevel.webtm.ru
administrator
12345
You can enable krumo backtrace, if you want.

I really need php blocks with queries and Devel too, but anonymous users see errors too.

Thank you for any help!