
19th January 2011, 23:46
|
|
Senior Member
|
|
Join Date: Dec 2009
Posts: 464
Thanks: 76
Thanked 35 Times in 29 Posts
|
|
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.
|

20th January 2011, 00:54
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
Never seen that. Which ispconfig version do you use?
|

20th January 2011, 18:16
|
|
Senior Member
|
|
Join Date: Dec 2009
Posts: 464
Thanks: 76
Thanked 35 Times in 29 Posts
|
|
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?
|

21st January 2011, 14:46
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Can you post line 49 of /usr/local/ispconfig/interface/web/sites/user_quota_stats.php?
|

30th January 2011, 15:10
|
|
Senior Member
|
|
Join Date: Dec 2009
Posts: 464
Thanks: 76
Thanked 35 Times in 29 Posts
|
|
Thanks, sorry for the delay, been on vacation.
This is line 49
PHP Code:
$rec['used'] = round($rec['used'] / 1024,2).' MB';
|

30th January 2011, 16:13
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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?
|

30th January 2011, 23:05
|
|
Senior Member
|
|
Join Date: Dec 2009
Posts: 464
Thanks: 76
Thanked 35 Times in 29 Posts
|
|
Control panel now reports:
Last edited by Toucan; 30th January 2011 at 23:07.
Reason: to improve my grammar
|

31st January 2011, 13:02
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Can you try
Code:
die(print_r($rec['used']));
?
|

31st January 2011, 20:37
|
|
Senior Member
|
|
Join Date: Dec 2009
Posts: 464
Thanks: 76
Thanked 35 Times in 29 Posts
|
|
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
|
|

1st February 2011, 15:27
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Till just told me that this is already in the bugtracker and will be fixed soon.
|
|
The Following User Says Thank You to falko For This Useful Post:
|
Toucan (1st February 2011)
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 04:03.
|
Recent comments
1 day 1 hour ago
1 day 6 hours ago
1 day 8 hours ago
1 day 8 hours ago
1 day 10 hours ago
1 day 15 hours ago
1 day 15 hours ago
1 day 18 hours ago
2 days 7 hours ago
2 days 8 hours ago