After updating my site I noticed after about a week errors turning up in sections (news). The error page suggested putting the add global errors section to the config file. I did so and the errors looked like this....
Warning: ftp_login():Login incorrect. in /mypath/mywebsite/system/libraries/FTP.php on line 108
#0[internal function]: __error(2, 'ftp_login(): Lo...', '/mypath/mywebsite/...', 108, Array)
#1 /mypath/mywebsite/system/libraries/FTP.php(108): ftp_login(Resource id #230, 'MY_FTP_USER', 'MY_FTP_PASSWORD')
#2 /mypath/mywebsite/system/libraries/FTP.php(287): FTP->connect()
#3 /mypath/mywebsite/system/libraries/Controller.php(971): FTP->chmod('system/html/Man...', 420)
#4 /mypath/mywebsite/system/libraries/Controller.php(2651): Controller->getImage('tl_files/mediet...', '156', '156', NULL)
#5 /mypath/mywebsite/system/modules/news/ModuleNews.php(174): Controller->addImageToTemplate(Object(FrontendTemplate), Array)
#6 /mypath/mywebsite/system/modules/news/ModuleNewsList.php(145): ModuleNews->parseArticles(Object(DB_Mysql_Result))
#7 /mypath/mywebsite/system/modules/frontend/Module.php(129): ModuleNewsList->compile()
#8 /mypath/mywebsite/system/modules/news/ModuleNewsList.php(77): Module->generate()
#9 /mypath/mywebsite/system/modules/frontend/ContentModule.php(72): ModuleNewsList->generate()
#10 /mypath/mywebsite/system/libraries/Controller.php(415): ContentModule->generate()
#11 /mypath/mywebsite/system/modules/frontend/ModuleArticle.php(173): Controller->getContentElement('160')
#12 /mypath/mywebsite/system/modules/frontend/Module.php(129): ModuleArticle->compile()
#13 /mypath/mywebsite/system/modules/frontend/ModuleArticle.php(71): Module->generate()
#14 /mypath/mywebsite/system/libraries/Controller.php(348): ModuleArticle->generate(false)
#15 /mypath/mywebsite/system/libraries/Controller.php(221): Controller->getArticle('59', false, false, 'main')
#16 /mypath/mywebsite/system/modules/frontend/PageRegular.php(71): Controller->getFrontendModule('0', 'main')
#17 /mypath/mywebsite/index.php(198): PageRegular->generate(Object(DB_Mysql_Result))
#18 /mypath/mywebsite/index.php(329): Index-
I'm wondering and worried if it's a good idea to reveal the username and password in plain text - I guess if I changed my password only then the script would actually reveal my current username, and if I changed my username but used the same password then it would reveal the current password.
I would much rather see ******** instead of MYPASSWORD.
----
Bookmarks