Forum

Bugs Discussion => 3rd Party Component Bugs => Topic started by: Bruno cristovao on April 08, 2005, 03:40:10 PM



Title: Beverage Component error 4.5.2 Mambo
Post by: Bruno cristovao on April 08, 2005, 03:40:10 PM
I have tried all the suggestions but I am stuck on this

Fatal error: Call to undefined function: openconnectionwithreturn() in /home/-----/public_html/mambo/components/com_beverage/sub_viewdetails.php on line 36.

I used the 4.5.2.1 database fix.zip but still no luck, here is the extract of the sub_viewspecial.php.

#############################
Quote:
Quote:
# Database Query
$per_page = $ag_perpage;//nb de announcement per page

$database->setQuery($query1);

$connected = $database->query();
//$rows = $database->loadObjectList();

if(!isset($pageno))
{

$pageno = 1;
}
$prev_page = $pageno - 1;
$next_page = $pageno + 1;

// Set up specified page

$page_start = ($per_page * $pageno) - $per_page;
$num_rows = $database->getNumRows($connected);


if ($num_rows $num_pages) || ($pageno < 0)) {
echo "You have specified an invalid page number";
return false;
}

$sql_msg_per_page = $query1. " LIMIT $page_start, $per_page";

$database->setQuery($sql_msg_per_page);
$res = $database->query();


if($connected)
{
$rows = $database->loadObjectList();

$subtitle = (!isset($sorting) || $sorting == '') ? 'Viewed' : _BEVERAGE_VWS_AVG_TOTAL_USERS_VOTE;



#########################################

I need my component to work with 4.5.2.1, can someone point me to the right direction please, by the way your SMF Bridge rules and I am using to introduce SMF into my website? Thanks for developing it  :)

Bruno
www.ozbevnet.com


Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.