Current time: 12-24-2024, 03:36 AM Hello There, Guest! (LoginRegister)


Post Reply 
Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/tr
Author Message
mr.x Offline
Development Team
*****
Dev Team

Posts: 232
Joined: Nov 2006
Reputation: 3
Post: #1
Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/tr
Hello all,

I did a migration from vhcs 2.4.7.1 to ispCP 1.0.2 last weekend. I had a few issues after the migration but i solved most of them.

Unfortunatelly i could find any solution for this issue:
Code:
Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/traffic/ispcp-vrl-traff line 259.
Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/traffic/ispcp-vrl-traff line 259.

I am getting this message every 30 minutes.

Here the lines from my ispcp-vrl-traff script:
Code:
258            while (($key,$value) = each(%main::sub_id_name)) {
259                    ($rs, $timestamp)=collect_http_traffic_from_log("$value.$main::domain_id_name{$main::sub_id_parentid{$key}}",$main::sub_id_parentid{$key});
260                    return ($rs, '') if ($rs != 0);
261            }
262

I checked the trunk as well. Its the same inside.
Anybody an idea how to fix it? Or where to search for it?


Br
Jan
09-01-2009 04:43 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #2
RE: Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/tr
Seems like an orphan entry in database. Check if all subdomains parents still exists in domain table.
09-01-2009 04:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mr.x Offline
Development Team
*****
Dev Team

Posts: 232
Joined: Nov 2006
Reputation: 3
Post: #3
RE: Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/tr
Hi sci2tech,

thanks for the fast repley !

(09-01-2009 04:45 AM)sci2tech Wrote:  Seems like an orphan entry in database. Check if all subdomains parents still exists in domain table.

I set all domains and subdomains to change and run the rqst-mngr.
Lets wait half an hour to see if its the solution.

Br
Jan
09-01-2009 05:47 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #4
RE: Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/tr
Much faster method:
Code:
select `subdomain`.* from `subdomain` left join `domain` on (`subdomain`.`domain_id` = `domain`.`domain_id`) where `domain`.`domain_id` is null;
Big Grin
09-01-2009 05:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mr.x Offline
Development Team
*****
Dev Team

Posts: 232
Joined: Nov 2006
Reputation: 3
Post: #5
RE: Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/tr
Hi sci2tech,

(09-01-2009 05:51 AM)sci2tech Wrote:  Much faster method:
Code:
select `subdomain`.* from `subdomain` left join `domain` on (`subdomain`.`domain_id` = `domain`.`domain_id`) where `domain`.`domain_id` is null;
Big Grin

ok, thats much faster .-)

I got two subs. But there is something wrong because I do not have the domain_id = 1.
My domain table starts with 5.

Nothing happens when I set the two subs to delete. Can I delete them manualy?

Br
Jan
09-01-2009 05:57 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #6
RE: Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/tr
Delete them manually from database. Should be no problems. This is the way I remember vhcs Big Grin
09-01-2009 05:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #7
RE: Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/tr
BTW you should check all tables for orphan entries. I bet you will find more Smile
09-01-2009 06:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mr.x Offline
Development Team
*****
Dev Team

Posts: 232
Joined: Nov 2006
Reputation: 3
Post: #8
RE: Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/tr
Hello,
(09-01-2009 06:13 AM)sci2tech Wrote:  BTW you should check all tables for orphan entries. I bet you will find more Smile

I will check all the other tables too

Jan
Solved !

Thanks for the support !

Br
Jan
(This post was last modified: 09-01-2009 06:45 AM by mr.x.)
09-01-2009 06:28 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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