Mambo

03moscropl

Flash Freak
Messages
698
Reaction score
0
Points
0
I am using mambo and i have a componmnt called wwprogress i just uploaded it with out a hitch then when i accses it it says


Fatal error: Call to undefined function: loadoverlib() in /home/igamer/public_html/mambo/administrator/components/com_wwprogress/admin.wwprogress.html.php on line 35
 

flyingwolf

New Member
Messages
126
Reaction score
0
Points
0
I'm using Mambo (not familiar with this specific component though), but i'm pretty sure that is not a x10hosting problem but rather a mambo or that specific component problem.

always when i get (called undefined function), it is either
>it did not upload correct or one of the files corrupted (did you upload through FTP or within Mambo) ?
>or it did not install correct (did you install it as component from within Mambo - recommended - and did it say "successfully installed") ?
>is the component the newest version and is it compatible with the version of mambo you have? (what version of Mambo are you using? ... Fantastico is little behind it only installs version 4.5.1 >> i recommend manually installing version 4.5.2.2 stable, much improved, many patches and more stable)

>if all that seems ok, then i would check on the mamboforge site (if you got the component there then it should have it's own support forum and bug tracker there ... maybe it is a known bug in this component).

Hope that helps somehow, let me know how you makin out :)

-flyingwolf
 

03moscropl

Flash Freak
Messages
698
Reaction score
0
Points
0
I ahve checked the fourms and posted some things about it and i know it is the the one file and it did upload succsesfully. this has happened before with a previous host.

This is the admin.wwprogress.html.php
PHP:
 <?php 
/**
** Program: WorkWare Progress
** Name: admin.wwprogress.html.php v 0.0.1
** 
** Created By: Shayne Bartlett 
**		 
** Creation Date: 12/03/2005
**
** Copyright (c) 2004 Ramped Technology & Management Systems Pty. Ltd.
**
** Program Description:
** Produces horizontal graphical progress indicators
**
** Associated Programs Description
** --------------------------------------------------------------------------------------------------------------------------------
** Requires Mambo 4.5.2
**
**
** VERSION CONTROL:-
**
** Version Date Programmer Modification Description
** ---------------------------------------------------------------------------------------------------------------------------------
** 12/03/2005	 SB Program Created.
*/
 
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
 
class HTML_wwprogress {
 
function show_wwprogress( $option, &$rows, &$pageNav ) {
global $my;
 
mosCommonHTML::loadOverlib();
?>
 
<form action="index2.php" method="post" name="adminForm">
<table class="adminheading">
	<tr>
	 <th> wwProgress </th>
	</tr>
</table>
<table class="adminlist">
	<tr>
	 <th width="5"> # </th>
	 <th width="20"> <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $rows ); ?>);" />
	 </th>
	 <th align="left" class="title"> <div align="left">Name </div></th>
	 <th width="10%" align="center"> <div align="center">Version </div></th>
	 <th width="10%" align="center"> <div align="center">Complete </div></th>
	 <th width="20%" align="center"> <div align="center">Colours </div></th>
	 <th width="10%" align="center"> <div align="center">Published </div></th>
	 <th width="5%" colspan="3" align="center"> <div align="center">Reorder </div></th>
	</tr>
	<?php
$k = 0;
for ($i=0, $n=count( $rows ); $i < $n; $i++) {
$row = &$rows[$i];
 
$link = 'index2.php?option=com_wwprogress&task=edit&id='. $row->id;
 
$task = $row->published ? 'unpublish' : 'publish';
$img = $row->published ? 'publish_g.png' : 'publish_x.png';
$alt = $row->published ? 'Published' : 'Unpublished';
 
$checked = mosCommonHTML::CheckedOutProcessing( $row, $i );
 
// $row->cat_link = 'index2.php?option=com_wwprogress&task=edit&id='. $row->id;
 
echo "<style type=\"text/css\"> \n";
echo ".bar" . $i . " { background-color:". $row->fillcolour . "; width:" . $row->complete . "%; height: 10px; float: left; position: relative; } \n";
echo ".block" . $i . " { height: 10px; width: 100%; float: left; position: relative; border: 1px solid " . $row->bordercolour ."; } \n";
echo "</style> \n";
?>
	<tr class="<?php echo "row$k"; ?>">
	 <td><?php echo $pageNav->rowNumber( $i ); ?> </td>
	 <td><?php echo $checked; ?> </td>
	 <td align="left">
		<div align="left"><a href="<?php echo $link; ?>" title="Edit wwprogress"> <?php echo $row->name; ?> </a>
		</div></td>
	 <td align="center"><?php echo $row->version; ?>
		<div align="center"></div></td>
	 <td align="center"><?php echo $row->complete; ?>
%		
<div align="center"></div></td>
	 <td align="center"><table width="100%">
		 <tr>
			<td><div class="block<?php echo $i ;?>">
				<div class="bar<?php echo $i ;?>"></div>
			 </div></td>
		 </tr>
		</table></td>
	 <td align="center">
		<div align="center"><a href="javascript: void(0);" onClick="return listItemTask('cb<?php echo $i;?>','<?php echo $task;?>')"><img src="images/<?php echo $img;?>" width="12" height="12" border="0" alt="<?php echo $alt; ?>" /> </a> </div></td>
	 <td align="center"><?php echo $pageNav->orderUpIcon( $i, ($row->catid == @$rows[$i-1]->catid) ); ?></td>
	 <td align="center"><?php echo $pageNav->orderDownIcon( $i, $n, ($row->catid == @$rows[$i+1]->catid) ); ?></td>
	</tr>
	<?php
$k = 1 - $k;
}
?>
</table>
<?php echo $pageNav->getListFooter(); ?>
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="hidemainmenu" value="0">
</form>
<?php
}
 
function edit_wwprogress( &$row, $option ) {
mosMakeHtmlSafe( $row, ENT_QUOTES, 'description' );
?>
<form action="index2.php" method="post" name="adminForm" id="adminForm">
<table class="adminheading">
	<tr>
	 <th> Add Project Progress: <small> <?php echo $row->id ? 'Edit' : 'New';?> </small> </th>
	</tr>
</table>
<table width="100%">
	<tr>
	 <td align="center" valign="top"><table class="adminform">
		 <tr>
			<th colspan="2"> Details </th>
		 </tr>
		 <tr>
			<td width="25%" align="right"> Name: </td>
			<td width="75%"><input name="name" type="text" class="text_area" id="name" value="<?php echo $row->name;?>" size="30" maxlength="250" />
			</td>
		 </tr>
		 <tr>
			<td valign="top" align="right"> Version: </td>
			<td><input name="version" type="text" class="text_area" id="version" value="<?php echo $row->version;?>" size="30" maxlength="250" /> </td>
		 </tr>
		 <tr>
			<td valign="top" align="right"> Complete: </td>
			<td><input name="complete" type="text" class="text_area" id="complete" value="<?php echo $row->complete; ?>" size="3" maxlength="3" />
			%</td>
		 </tr>
		 <tr>
			<td valign="top" align="right"> Fill Colour: </td>
			<td><input name="fillcolour" type="text" class="text_area" id="fillcolour" value="<?php echo $row->fillcolour;?>" size="10" maxlength="250" />(Hex ie. #006600)</td>
		 </tr>
		 <tr>
			<td valign="top" align="right"> Border Colour: </td>
			<td><input name="bordercolour" type="text" class="text_area" id="bordercolour" value="<?php echo $row->bordercolour;?>" size="10" maxlength="250" />(Hex ie. #006600)</td>
		 </tr>
		</table></td>
	</tr>
</table>
<input type="hidden" name="id" value="<?php echo $row->id; ?>" />
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="task" value="" />
</form>
<?php
}
}
?>
 
Top