I have an intermittent problem when attempting to view the watchdog log. Almost immediately after selecting it on the admin menu I get a message saying "The website encountered an unexpected error. Please try again later." Sometimes I can view the first page of entries, but if I try to go to the next page I get the same error.

The error reported in the log is:

Location: http://www.e-kehila.org/admin/reports/dblog

Recoverable fatal error: Argument 2 passed to t() must be of the type array, integer given, called in /home/e-kehila/public_html/modules/dblog/dblog.admin.inc on line 295 and defined in t() (line 1463 of /home/e-kehila/public_html/includes/bootstrap.inc).

I cannot figure out why this occurs or the circumstances that make it happen at some times but not others.

Comments

rsbecker created an issue. See original summary.

Vinay15’s picture

Assigned: Unassigned » Vinay15
Status: Active » Closed (cannot reproduce)

Hi there,

It doesn't seem to be a core issue. Some custom module written by you is causing the error, as I have checked this on fresh drupal 7 instance (7.43) and it works fine.

rsbecker’s picture

Status: Closed (cannot reproduce) » Active

I finally found an error message in the log.

Type	php
Date	Wednesday, May 18, 2016 - 5:18pm
User	robert.becker
Location	http://www.e-kehila.org/admin/reports/dblog
Referrer	http://www.e-kehila.org/admin/reports/status
Message	Recoverable fatal error: Argument 2 passed to t() must be of the type array, integer given, called in /home/e-kehila/public_html/modules/dblog/dblog.admin.inc on line 295 and defined in t() (line 1463 of /home/e-kehila/public_html/includes/bootstrap.inc).
Severity	error
Hostname	100.15.190.15
Operations

Type	php
Date	Wednesday, May 18, 2016 - 5:49pm
User	robert.becker
Location	http://www.e-kehila.org/admin/reports/dblog?page=1
Referrer	http://www.e-kehila.org/admin/reports/dblog?page=2
Message	Recoverable fatal error: Argument 2 passed to t() must be of the type array, integer given, called in /home/e-kehila/public_html/modules/dblog/dblog.admin.inc on line 295 and defined in t() (line 1463 of /home/e-kehila/public_html/includes/bootstrap.inc).
Severity	error
Hostname	100.15.190.15
Operations		

Version: 7.43 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.