#30615 [Com]: Fatal error: Call to undefined function: onselect()
| From: | soltansa at hotmail dot com | Date: | Mon, 06 Feb 2006 05:27:33 +0000 |
| Subject: | #30615 [Com]: Fatal error: Call to undefined function: onselect() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92971@lists.php.net to get a copy of this message | ||
ID: 30615
Comment by: soltansa at hotmail dot com
Reported By: dmitryseliv at yahoo dot com
Status: No Feedback
Bug Type: Class/Object related
Operating System: Red Hat Linux
PHP Version: 4.3.9
New Comment:
<?php
/*======================================================================*\
|| ####################################################################
||
|| # vBulletin 3.0.8 - Licence Number
|| # ---------------------------------------------------------------- #
||
|| # All PHP code in this file is ©2000-2005 Jelsoft Enterprises Ltd. #
||
|| # This file may not be redistributed in whole or significant part. #
||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- #
||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html #
||
|| ####################################################################
||
\*======================================================================*/
/*-------------------------------------------------------*\
| ****** NOTE REGARDING THE VARIABLES IN THIS FILE ****** |
+---------------------------------------------------------+
| If you get any errors while attempting to connect to |
| MySQL, you will need to email your webhost because we |
| cannot tell you the correct values for the variables |
| in this file. |
\*-------------------------------------------------------*/
// ****** DATABASE SERVER NAME ******
// This is the hostname or IP address of the database server.
// It is in the format HOST:PORT. If no PORT is specified, 3306 is
used.
// If you are unsure of what to put here, leave it at the default
value.
$servername = 'mysql53.secureserver.net';
// ****** DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$dbusername = 'ars2005';
$dbpassword = 's16451645s';
// ****** DATABASE NAME ******
// This is the name of the database where your vBulletin will be
located.
// This must be created by your webhost.
$dbname = 'ars2005';
// ****** TECHNICAL EMAIL ADDRESS ******
// If any database errors occur, they will be emailed to the address
specified here.
// Leave this blank to not send any emails when there is a database
error.
$technicalemail = 'soltansa@hotmail.com';
// ****** PERSISTENT CONNECTIONS ******
// This option allows you to turn persistent connections to MySQL on or
off.
// The difference in performance is negligible for all but the largest
boards.
// If you are unsure what this should be, leave it off.
// 0 = Off; 1 = On
$usepconnect = 0;
// ****** PATH TO ADMIN & MODERATOR CONTROL PANELS ******
// This setting allows you to change the name of the folders that the
admin and
// moderator control panels reside in. You may wish to do this for
security purposes.
// Please note that if you change the name of the directory here, you
will still need
// to manually change the name of the directory on the server.
$admincpdir = 'admincp';
$modcpdir = 'modcp';
// ****** USERS WITH ADMIN LOG VIEWING PERMISSIONS ******
// The users specified here will be allowed to view the admin log in
the control panel.
// Users must be specified by *ID number* here. To obtain a user's ID
number,
// view their profile via the control panel. If this is a new
installation, leave
// the first user created will have a user ID of 1. Seperate each
userid with a comma.
$canviewadminlog = '1';
// ****** USERS WITH ADMIN LOG PRUNING PERMISSIONS ******
// The users specified here will be allowed to remove ("prune") entries
from the admin
// log. See the above entry for more information on the format.
$canpruneadminlog = '1';
// ****** USERS WITH QUERY RUNNING PERMISSIONS ******
// The users specified here will be allowed to run queries from the
control panel.
// See the above entries for more information on the format.
// Please note that the ability to run queries is quite powerful. You
may wish
// to remove all user IDs from this list for security reasons.
$canrunqueries = '';
// ****** UNDELETABLE / UNALTERABLE USERS ******
// The users specified here will not be deletable or alterable from the
control panel by any users.
// To specify more than one user, separate userids with commas.
$undeletableusers = '';
// ****** SUPER ADMINISTRATORS ******
// The users specified below will have permission to access the
administrator permissions
// page, which controls the permissions of other administrators
$superadministrators = '';
// Prefix that your vBulletin tables have in the database.
// For example: $tableprefix = 'vb3_';
$tableprefix = '';
// Prefix that all vBulletin cookies will have
// For example
$cookieprefix = 'bb';
/*======================================================================*\
||
####################################################################
|| # Downloaded: 20:46, Thu Jul 28th 2005
|| # CVS: $RCSfile: config.php.new,v $ - $Revision: 1.19 $
||
####################################################################
\*======================================================================*/
?>
Previous Comments:
------------------------------------------------------------------------
[2004-11-07 01:00:02] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2004-10-30 00:54:42] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2004-10-29 20:05:41] dmitryseliv at yahoo dot com
Description:
------------
Hi! We just upgraded php to 4.3.9 and i'm getting this error message
right now. Code looks fine.
So my guess it's some how related to the upgraded.
Reproduce code:
---------------
function select()
{
$this->onSelect();
$objDB = createDataBase();
$sOrderBy = getValue("order_by", $GLOBALS["Variables"]);
if ($sOrderBy != "")
{
$vtrFieldArray = getValue($sOrderBy, $this->m_vtrFields);
if (gettype($vtrFieldArray) == 'array')
{
$sOrderBy = " order by ".($vtrFieldArray[1])." asc";
}
else
{
$sOrderBy = "";
}
}
$sRequest = "select ";
for ($nCount = 0; $nCount < count($this->m_vtrFields);
++$nCount)
{
if ($nCount != 0)
{
$sRequest .= " , ";
}
$sRequest .= $this->m_vtrFields[$nCount][1];
}
$sRequest .= " from ";
for ($nCount = 0; $nCount < count($this->m_vtrTables);
++$nCount)
{
if ($nCount != 0)
{
$sRequest .= " , ";
}
$sRequest .= $this->m_vtrTables[$nCount];
}
if (($this->m_nID != "") || ($this->m_sWhereClause != ""))
{
$sRequest .= " where ";
}
if ($this->m_nID != "")
{
$sRequest .= " ".$this->m_vtrTables[0].".id=".$this->m_nID;
if ($this->m_sWhereClause != "")
{
$sRequest .= " and ";
}
}
if ($this->m_sGroupClause != "")
{
$sRequest .= $this->m_sGroupClause;
}
$sRequest .= $this->m_sWhereClause;
$sRequest .= $sOrderBy;
$this->m_vtrResultTable = $objDB->execute($sRequest);
}
Actual result:
--------------
Fatal error: Call to undefined function: onselect()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30615&edit=1