[racktables-users] Re: Custom Reports

  • From: Ernest Shaffer <ernest.shaffer@xxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Thu, 13 Jan 2011 20:42:29 -0800

This can happen if you have an extra blank line at the end of your file.  So 
make sure the last line in your local.php and your warranty.php is simply ?>

If there is a blank line after ?>, it breaks the images under Rackspace.

Ernie

On Jan 13, 2011, at 11:50 AM, Shannon Young wrote:

> 
> Hi,
> 
> I just noticed implementing this report and going to Rackspace it no
> longer redraws the preview images of the racks :(
> 
> Shan
> 
> On Fri, 14 Jan 2011 06:04:17 +1100, Shannon Young <syoung@xxxxxxxxxxxxxxx>
> wrote:
>> Champion! Thank you so much Murray!
>> 
>> I might suggest that the file warranty.php @
>> http://racktables.svn.sourceforge.net/viewvc/racktables/contribs/ be
>> updated with that line :)
>> 
>> I can stop crying now!
>> 
>> Shan
>> 
>> On Thu, 13 Jan 2011 18:46:09 +0000, Murray Brydon <mbrydon@xxxxxxxxx>
>> wrote:
>>> I think the blank page could be due to changes somewhere after 18.1, I
>>> think
>>> to do with PDO as I was using this and it stopped working after going
>> from
>>> 18.1 to 18.5
>>> 
>>> Denis helpfully suggested that the lines containing  'useSelectBlade'
>> would
>>> have to use 'usePreparedSelectBlade' instead so I changed mine from
>>> 
>>> $result = useSelectBlade ($query, __FUNCTION__);
>>> to
>>> $result = usePreparedSelectBlade ($query, array($rack_id,
> $new_height));
>>> 
>>> which works for me if that is any help?
>>> 
>>> On 13 January 2011 17:31, Shannon Young <syoung@xxxxxxxxxxxxxxx> wrote:
>>> 
>>>> 
>>>> Hi All,
>>>> 
>>>> I see that this has been asked before but implementing it seems to not
>>>> work still. I’m currently running Racktables 0.18.5 on Ubuntu server
>> and
>>>> I’m trying to pull a report that will show all my servers with the
>>>> current
>>>> warranty information. I tried using the current warranty.php found
>>>> http://racktables.svn.sourceforge.net/viewvc/racktables/contribs/
>>>> renaming
>>>> it to inc/local.php and it creates the “Warranty Expires” tab in
>> Reports
>>>> however it is a blank page.
>>>> 
>>>> Can any one point me in the right direction on how I might be able to
>>>> export this data without having to manually do so?
>>>> 
>>>> Any help greatly appreciated!
>>>> 
>>>> Shan
>>>> 
>>>> 
>>>> 
>>>> 
> 


Other related posts: