Current time: 11-26-2024, 01:58 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ticket #2051
Author Message
kazuo Offline
Junior Member
*

Posts: 36
Joined: Aug 2009
Reputation: 0
Post: #1
Ticket #2051
The error did not occur.
Thank you.
11-12-2009 05:42 PM
Find all posts by this user Quote this message in a reply
kazuo Offline
Junior Member
*

Posts: 36
Joined: Aug 2009
Reputation: 0
Post: #2
RE: Ticket #2051
Did you change revision contents?
A message is given.

-----------------
Cron <root@XXX> /var/www/ispcp/engine/quota/ispcp-dsk-quota &>/var/log/ispcp/ispcp-dsk-quota.log

Use of uninitialized value in pattern match (m//) at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 209.
Use of uninitialized value in pattern match (m//) at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 210.

------------------
11-21-2009 06:20 PM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #3
RE: Ticket #2051
please try to replace starting @ line 207 at /var/www/ispcp/engine/quota/ispcp-dsk-quota

Quote: foreach(@$ref) {
# Replace unknown values by 0
$data_length = (@$_[6] =~ /^\d+$/) ? @$_[6] : 0;
$index_length = (@$_[8] =~ /^\d+$/) ? @$_[8] : 0;

$size += $data_length + $index_length;
}

by

Quote: foreach(@$ref) {
# Replace unknown values by 0
$data_length = (defined(@$_[6]) && @$_[6] =~ /^\d+$/) ? @$_[6] : 0;
$index_length = (defined(@$_[8]) && @$_[8] =~ /^\d+$/) ? @$_[8] : 0;

$size += $data_length + $index_length;
}

Does the warning still occurs?
11-21-2009 10:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kazuo Offline
Junior Member
*

Posts: 36
Joined: Aug 2009
Reputation: 0
Post: #4
RE: Ticket #2051
The problem was solved.
Thank you.

(11-21-2009 10:19 PM)RatS Wrote:  please try to replace starting @ line 207 at /var/www/ispcp/engine/quota/ispcp-dsk-quota

Quote: foreach(@$ref) {
# Replace unknown values by 0
$data_length = (@$_[6] =~ /^\d+$/) ? @$_[6] : 0;
$index_length = (@$_[8] =~ /^\d+$/) ? @$_[8] : 0;

$size += $data_length + $index_length;
}

by

Quote: foreach(@$ref) {
# Replace unknown values by 0
$data_length = (defined(@$_[6]) && @$_[6] =~ /^\d+$/) ? @$_[6] : 0;
$index_length = (defined(@$_[8]) && @$_[8] =~ /^\d+$/) ? @$_[8] : 0;

$size += $data_length + $index_length;
}

Does the warning still occurs?
11-22-2009 03:00 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)