When I log into my admin panel I am getting a massive ammount of errors. The script has been running for nearly 1 month with no problem. It has NOT been edited and just this morning the admin area gives me the following errors...
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 87
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 104
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 104
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 182
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 104
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 182
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 104
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 136
Warning: Cannot modify header information - headers already sent by (output started at /home/whmfaq/public_html/inc/mysql.php:87) in /home/whmfaq/public_html/admin/header.php on line 21
Warning: Cannot modify header information - headers already sent by (output started at /home/whmfaq/public_html/inc/mysql.php:87) in /home/whmfaq/public_html/admin/header.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at /home/whmfaq/public_html/inc/mysql.php:87) in /home/whmfaq/public_html/admin/header.php on line 23
Warning: Cannot modify header information - headers already sent by (output started at /home/whmfaq/public_html/inc/mysql.php:87) in /home/whmfaq/public_html/admin/header.php on line 24
Warning: Cannot modify header information - headers already sent by (output started at /home/whmfaq/public_html/inc/mysql.php:87) in /home/whmfaq/public_html/admin/header.php on line 25
Warning: Cannot modify header information - headers already sent by (output started at /home/whmfaq/public_html/inc/mysql.php:87) in /home/whmfaq/public_html/admin/header.php on line 26
Warning: Cannot modify header information - headers already sent by (output started at /home/whmfaq/public_html/inc/mysql.php:87) in /home/whmfaq/public_html/admin/header.php on line 27
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 104
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 168
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 168
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 168
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 168
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 168
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 168
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 168
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 168
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 168
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 168
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 168
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 168
Notice: Only variable references should be returned by reference in /home/whmfaq/public_html/inc/mysql.php on line 168
What is going on?
Errors Errors, everywhere
Moderator: Thorsten
Hi,
this is a PHP 4.4.0 problem.
It is fixed in phpMyFAQ 1.5.0 RC6 and it the forthcoming version 1.4.10.
bye
Thorsten
this is a PHP 4.4.0 problem.

It is fixed in phpMyFAQ 1.5.0 RC6 and it the forthcoming version 1.4.10.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
for a quick fix, use this mysql.php version:
bye
Thorsten
for a quick fix, use this mysql.php version:
Code: Select all
<?php
/**
* DB
*
* The DB class provides methods and functions for a MySQL 3.23.x
* and 4.0.x database.
*
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @author Meikel Katzengreis <meikel@katzengreis.com>
* @package DB
* @since 2003-02-24
* @version 2005-07-15
*
* Copyright: (c) 2003-2005 Thorsten Rinne
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
*/
class DB
{
/**
* The connection object
*
* @var mixed
* @see connect(), query(), dbclose()
*/
var $conn = FALSE;
/**
* The query log string
*
* @var string
* @see query()
*/
var $sqllog = "";
/**
* Constructor
*
* @access public
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2003-02-24
*/
function DB()
{
}
/**
* Connects to the database.
*
* This function connects to a MySQL database
*
* @param string $host
* @param string $username
* @param string $password
* @param string $db_name
* @return boolean TRUE, if connected, otherwise FALSE
* @access public
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2003-02-24
*/
function connect ($host, $user, $passwd, $db)
{
$this->conn = @mysql_connect($host, $user, $passwd);
if (empty($db) OR $this->conn == FALSE) {
print "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
print "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
print "<head>\n";
print " <title>phpMyFAQ Error</title>\n";
print " <meta http-equiv=\"content-type\" content=\"application/xhtml+xml; charset=utf-8\" />\n";
print "</head>\n";
print "<body>\n";
print "<p align=\"center\">The connection to the MySQL server could not be established.</p>\n";
print "<p align=\"center\">The error message of the MySQL server:<br />".$this->error()."</p>\n";
print "</body>\n";
print "</html>";
return FALSE;
}
return @mysql_select_db($db, $this->conn);
}
/**
* Sends a query to the database.
*
* This function sends a query to the database.
*
* @param string $query
* @return mixed $result
* @access public
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2003-02-24
*/
function query($query)
{
$this->sqllog .= $query."<br />\n";
return @mysql_query($query, $this->conn);
}
/**
* Fetch a result row as an object
*
* This function fetches a result row as an object.
*
* @param mixed $result
* @return mixed
* @access public
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2003-02-24
*/
function fetch_object($result)
{
return @mysql_fetch_object($result);
}
/**
* Number of rows in a result
*
* This function returns the number of rows in a result.
*
* @param mixed $result
* @return mixed
* @access public
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2003-02-24
*/
function fetch_row($result)
{
return @mysql_fetch_row($result);
}
/**
* Fetch a result row as an object
*
* This function fetches a result as an array.
*
* @param mixed $result
* @return array
* @access public
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2003-02-24
*/
function fetch_array($result)
{
return @mysql_fetch_array($result);
}
/**
* Fetch a result row as an object
*
* This function fetches a result as an associative array.
*
* @param mixed $result
* @return array
* @access public
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2003-02-24
*/
function fetch_assoc($result)
{
return @mysql_fetch_assoc($result);
}
/**
* Number of rows in a result
*
* @param mixed $result
* @return integer
* @access public
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2003-02-24
*/
function num_rows($result)
{
return @mysql_num_rows($result);
}
/**
* Returns the ID of the latest insert
*
* @return integer
* @access public
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2003-02-24
*/
function insert_id()
{
return @mysql_insert_id($this->conn);
}
/**
* Returns the text of the error message from previous MySQL operation
*
* @return string
* @access public
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2004-08-06
*/
function error()
{
return mysql_error();
}
/**
* Logs the queries
*
* @param mixed $result
* @return integer
* @access public
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2003-02-24
*/
function sqllog()
{
return $this->sqllog;
}
/**
* Closes the connection to the database.
*
* This function closes the connection to the database.
*
* @access public
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2003-02-24
*/
function dbclose()
{
return @mysql_close($this->conn);
}
}
?>
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist