Create Snapin on SVN 6415
- 
 I recently just reloaded my server to the latest SVN on CentOS 7, when I try to create a new SnapIn or update the TFTP Kernel I am receiving an error for an undefined variable. Below is the tail from my apache error log. [Thu Feb 25 10:06:31.428867 2016] [:error] [pid 24394] [client 65.124.207.65:59868] PHP Fatal error: Uncaught exception ‘Exception’ with message ‘FOGFTP: Failed to connect. Host: 192.168.10.1, Error: Undefined variable: whereArrayAnd’ in /var/www/html/fog/lib/fog/fogftp.class.php:26\nStack trace:\n#0 /var/www/html/fog/lib/pages/snapinmanagementpage.class.php(88): FOGFTP->connect()\n#1 [internal function]: SnapinManagementPage->add()\n#2 /var/www/html/fog/lib/fog/fogpagemanager.class.php(67): call_user_func(Array)\n#3 /var/www/html/fog/management/index.php(24): FOGPageManager->render()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/fogftp.class.php on line 26, referer: http://fog.CHANGED.com/fog/management/index.php?node=snapin&sub=search I have checked the Storage and TFTP_FTP passwords as well as the fog user password on the computer to ensure they match. Wasn’t sure if this was a scripting error in the latest SVN or if I had configured something incorrectly. Mod Edited 
- 
 Can you update to a new version and try again? 
- 
 Just updated to 6445 with no change. 
- 
 @wlainey No change? The EXACT same message, or a different message with a new time stamp? 
- 
 Same error with different timestamp. [Thu Feb 25 10:56:15.369558 2016] [:error] [pid 1166] [client 192.168.11.254:52895] PHP Fatal error: Uncaught exception ‘Exception’ with message ‘FOGFTP: Failed to connect. Host: 192.168.10.1, Error: Undefined variable: whereArrayAnd’ in /var/www/html/fog/lib/fog/fogftp.class.php:26\nStack trace:\n#0 /var/www/html/fog/lib/pages/snapinmanagementpage.class.php(88): FOGFTP->connect()\n#1 [internal function]: SnapinManagementPage->add()\n#2 /var/www/html/fog/lib/fog/fogpagemanager.class.php(67): call_user_func(Array)\n#3 /var/www/html/fog/management/index.php(24): FOGPageManager->render()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/fogftp.class.php on line 26, referer: http://fog.CHANGED.com/fog/management/index.php?node=snapin&sub=list Mod Edited 
- 
 @wlainey Your FOG Server is internet facing, and I was able to log into it with the default fog / password credentials. Please change your default FOG user’s password. Also, I’ve removed the links to your FOG server from this thread. 
- 
 @Wayne-Workman Thanks for the info Wayne. This was a new server being setup today and had not done this yet. 
 @Tom-Elliot I was able to determine that the issue was an FTP permission problem. Once I realized that SELinux had not been configured properly by using ‘setenforce 0’ everything starting working fine.Thanks Guys for all your help. William 
- 
 @wlainey said: nce I realized that SELinux had not been configured properly by using ‘setenforce 0’ everything starting working fine. You’ll need to set it permanently to permissive as well - you would edit /etc/selinux/configto do that. If you don’t, it’ll stop working again at the next reboot.

