[racktables-users] Re: What is on the other end of the cable and other SQL queries

  • From: Wawrzek Niewodniczanski <wawrzek.niewodniczanski@xxxxxxxxxx>
  • To: Alexey Andriyanov <alan@xxxxxxxxxx>
  • Date: Mon, 5 Dec 2011 16:20:27 +0000

On 12/01/11 05:52, Alexey Andriyanov wrote:
Yes, my sample was written against 0.20.0, sorry for that.
If you use 0.19.x branch, you should take a look to the functions
getPortInfo, getObjectPortsAndLinks, spotEntity and amplifyCell.
Make sense.

renderCell function surery exist in interfaces.php:
maintenance-0.19.x $ grep -n '^function renderCell ' *
interface.php:6647:function renderCell ($cell)
I agree:

inf-web2:/var/www/racktables-0.19/wwwroot# grep -R -n '^function renderCell ' *
inc/interface.php:6624:function renderCell ($cell)
But it is not availible from standalone cli script. Are you sure you've
called your script by web request?

This is my example:
<?php
include ('/var/www/racktables-0.19/wwwroot/inc/init.php');

$adminuser = spotEntity ('user', 1); // Admin account is always number 1.
renderCell ($adminuser);
amplifyCell ($adminuser);
?>

Results:

*Fatal error*: Call to undefined function renderCell() in */var/www/racktables-0.19/wwwroot/custom/2.php* on line *5*
I guess that I'm doing something wrong, but not sure what.

BTW when I commented out remderCell line I got empty page.

Thanks,
Wawrzek

--

Wawrzyniec (Wawrzek) Niewodniczański - 01223 435603 (35603) - wawrzekn
System Administrator - Engineering Services Team (XenServer)
Citrix Systems, Building 101, Cambridge Science Park, CB4 0FY, Cambridge
PhD in Quantum Chemistry, MSc in Molecular Engineering

Other related posts: