Project

General

Profile

Actions

Bug #21037

closed

Warning shows up in list mode when listing records

Added by Alban Cousinie over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-09-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In list mode, when listing records in right frame, often the following PHP warning shown up and prevents accessing the top buttons of the content frame :
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /var/www/vhosts/agam.org/httpdocs/typo3_src-4.2.6/t3lib/class.t3lib_db.php on line 823

This is due to the fact the $res value is not tested for validity in the function and it raises an error. I have attached a patch to this bug record which adds the validity test for $res and skips the operation raising the warning if $res is null.

(issue imported from #M11929)


Files

class.t3lib_db.php.patch (546 Bytes) class.t3lib_db.php.patch Administrator Admin, 2009-09-11 16:58

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #18966: PHP Warning, if a sql error occurs - Bug in class t3lib_db function sql_fetch_assocClosedRupert Germann2008-06-16

Actions

No data to display

Actions

Also available in: Atom PDF