#1  
Old 19th January 2011, 23:46
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 39 Times in 33 Posts
Default Web Quota error

When looking at the web quota screen on the sites menu I'm gettting this:
Quote:
Fatal error: Unsupported operand types in /usr/local/ispconfig/interface/web/sites/user_quota_stats.php on line 49

..
Has anyone else encurred this? I don't remember ever seeing it before - but equally I don't remember using the module before.
Reply With Quote
Sponsored Links
  #2  
Old 20th January 2011, 00:54
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,814
Thanks: 821
Thanked 5,339 Times in 4,188 Posts
Default

Never seen that. Which ispconfig version do you use?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 20th January 2011, 18:16
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 39 Times in 33 Posts
Default

I'm using 3.0.3.2.

I'm wondering if this is something to do with the addition recently of a vsphere virtual server as a slave?
Reply With Quote
  #4  
Old 21st January 2011, 14:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Can you post line 49 of /usr/local/ispconfig/interface/web/sites/user_quota_stats.php?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 30th January 2011, 15:10
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 39 Times in 33 Posts
Default

Thanks, sorry for the delay, been on vacation.

This is line 49

PHP Code:
   $rec['used'] = round($rec['used'] / 1024,2).' MB'
Reply With Quote
  #6  
Old 30th January 2011, 16:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Looks ok. I guess $rec['used'] has a non-numeric value for some reason. Can you add a
PHP Code:
die($rec['used']); 
before line 49 and call the page in a browser again? What is the output?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 30th January 2011, 23:05
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 39 Times in 33 Posts
Default

Control panel now reports:
Quote:
Array

Last edited by Toucan; 30th January 2011 at 23:07. Reason: to improve my grammar
Reply With Quote
  #8  
Old 31st January 2011, 13:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Can you try
Code:
die(print_r($rec['used']));
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 31st January 2011, 20:37
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 39 Times in 33 Posts
Default

OK

Just to confirm, line 49 and either side looks like this:
Quote:
if($rec['used'] > 1024) {
die(print_r($rec['used'])); $rec['used'] = round($rec['used'] / 1024,2).' MB';
} else {
$rec['used'] .= ' KB';
}
This is the output from the control panel:
Quote:
Array ( [0] => 71032 [1] => 69976 ) 1
Reply With Quote
  #10  
Old 1st February 2011, 15:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Till just told me that this is already in the bugtracker and will be fixed soon.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
Toucan (1st February 2011)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 13:21
Error compilation ISPConfig 2.2.34? severnet Installation/Configuration 5 20th December 2009 16:43
cyrus-sasl won't install on my ubuntu9.04 kameelperdza Installation/Configuration 1 13th June 2009 10:28
configuring IPTABLES firewall adityavpratap HOWTO-Related Questions 9 27th May 2006 21:42
Frustrated with ISPConfig install! woozyerdaddee Installation/Configuration 4 19th May 2006 03:38


All times are GMT +2. The time now is 19:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.