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
- 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 254Installed 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 333
- Created
- Monday 22 August, 2005 21:09:38 UTC
by Unknown - LastModif
- Wednesday 19 October, 2005 16:29:58 UTC