Loading...
 
Skip to main content

Admin User gets many php warnings

Status
Closed
Subject
Admin User gets many php warnings
Version
1.9.x
Category
  • Error
  • Usability
Feature
Database MySQL (MyISAM)
All / Undefined
Resolution status
Fixed or Solved
Submitted by
Bruce L. Van Buren
Volunteered to solve
Bruce L. Van Buren
Lastmod by
amette
Rating
(0)
Description

If admin user get lots of php warnings. Eventually page will build. Other warnings depending on various DB requests. Not a cookie problem - deleted cookies. Not browser specific.

Typical warnings encountered.

Most everything:
Notice: Only variable references should be returned by reference in lib/adodb/adodb.inc.php on line 2797
Notice: Only variable references should be returned by reference in lib/adodb/adodb.inc.php on line 2802
Admin Menu:
Warning: usort(): Invalid comparison function. in lib/tikilib.php on line 1714
Notice: Only variable references should be returned by reference in /home/vamasono/public_html/cms/lib/pear/PEAR.php on line 425
Admin Groups:
Warning: Cannot modify header information - headers already sent by (output started at lib/adodb/adodb.inc.php:2797) in tiki-admingroups.php on line 254

Installed full v1.9.1 to a DB with 1.9.0. Ran 1.9.0->1.9.1.

Solution

Per Chris

on line 2843 you should see the following.

function &FetchRow()

This needs to be editted so that the "&" is striped off. It is shown below including a few other lines of code so that you know exactly what to edit.

/**

  • Fetch a row, returning false if no more rows.
  • This is PEAR DB compat mode.
  • @return false or array containing the current record
  • /

function FetchRow()
{
if ($this->EOF) {
$false = false;
return $false;
}
$arr = $this->fields;
$this->_currentRow++;
if (!$this->_fetch()) $this->EOF = true;
return $arr;
}

New AdoDB version is in, so this is fixed in latest CVS.

Pending - everything should be fixed, but what bothers me is the line:
Warning: usort(): Invalid comparison function. in lib/tikilib.php on line 1714
- amette

Importance
9 high
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
333
Created
Monday 22 August, 2005 21:09:38 UTC
by Unknown
LastModif
Wednesday 19 October, 2005 16:29:58 UTC


Show PHP error messages