Control Web Panel

WebPanel => PHP => Topic started by: vbarreto on March 20, 2020, 03:52:41 PM

Title: PHP Warning: Invalid argument supplied for foreach() in /usr/local/cwpsrv/htdocs
Post by: vbarreto on March 20, 2020, 03:52:41 PM
Hello everyone, we have deployed a new CWP server and we have not yet migrated cPanel clients to it, but even without using the server, I received this error email from him. As I hired the professional support of the CWP, I opened a ticket with them on March 4, 2020, where the level 1 attendant informed that he would pass the problem on to the development, but until today they have not answered anything.

As it is getting close to the moment when we will need to migrate cPanel customers, would anyone here know how to say if this problem is serious or how to solve it?

Error:
Code: [Select]
cat: /usr/local/cwp/.conf/vhosts-ssl.json: No such file or directory
PHP Warning: Invalid argument supplied for foreach() in /usr/local/cwpsrv/htdocs/resources/admin/include/alertandautorenewssl.php on line 0
Title: Re: PHP Warning: Invalid argument supplied for foreach() in /usr/local/cwpsrv/htdocs
Post by: ejsolutions on March 20, 2020, 04:20:00 PM
Looks to me as if you haven't defined any hosted domains yet and the php script doesn't have any checking for that.
Suggest you add a test account/domain and see if it goes away.

(One of the many small bugs/anomalies found in CWP?)
((I have one live site that I migrated from WHM/cPanel: that is all that I'm willing to risk.))
Title: Re: PHP Warning: Invalid argument supplied for foreach() in /usr/local/cwpsrv/htdocs
Post by: Sandeep on March 20, 2020, 09:48:06 PM
hello
ticket number ?
Title: Re: PHP Warning: Invalid argument supplied for foreach() in /usr/local/cwpsrv/htdocs
Post by: vbarreto on March 23, 2020, 05:46:24 AM
Looks to me as if you haven't defined any hosted domains yet and the php script doesn't have any checking for that.
Suggest you add a test account/domain and see if it goes away.

(One of the many small bugs/anomalies found in CWP?)
((I have one live site that I migrated from WHM/cPanel: that is all that I'm willing to risk.))

Thank you! :D
Title: Re: PHP Warning: Invalid argument supplied for foreach() in /usr/local/cwpsrv/htdocs
Post by: vbarreto on March 23, 2020, 05:47:44 AM
hello
ticket number ?

#314940
Title: Re: PHP Warning: Invalid argument supplied for foreach() in /usr/local/cwpsrv/htdocs
Post by: Sandeep on March 23, 2020, 10:04:47 AM
hello
ticket number ?

#314940

okay your server is not accessible by us i.e. why it is taking longer and ensure when it is in support queue the server should be accessible.

The connection has timed out