{"id":702,"date":"2022-08-30T15:05:45","date_gmt":"2022-08-30T15:05:45","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/problem-about-tankauth-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:05:45","modified_gmt":"2022-08-30T15:05:45","slug":"problem-about-tankauth-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-tankauth-collection-of-common-programming-errors\/","title":{"rendered":"problem about tankauth-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ef372865959f9f38bae049480c6263f3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nManny Calavera<br \/>\nphp codeigniter swfupload tankauth<br \/>\nI am using Codeigniter with the TankAuth library installed and trying to upload to index.php\/reuqests\/doUpload from swfupload but can&#8217;t access the page as authenticated. I have read many posts around the net about similar problem and tried to set $config[&#8216;sess_match_userag<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/aee103cdb9ad3af1b87a07378b60988c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMaxcot<br \/>\ncodeigniter session tankauth<br \/>\nMy app is PHP \/ CodeIgniter \/ TankAuth. I have in my database an account balance of sorts, and I want to display this account balance on my app&#8217;s pages. So I&#8217;ve got in all nicely working, holding the balance in the session data.The balance only changes on login, under certain conditions. So in the tank_auth components, there is a controller, a library etc. The flow is that the Auth controller login calls on the Tank_auth library login functio<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0d164d806af476c993be730c74b0c525?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRicky Mason<br \/>\nphp codeigniter tankauth<br \/>\nI&#8217;m trying to add the login_form from Tank_auth view into my HTML template.When I do so, it returns a few errors regarding missing variables, and I&#8217;m not sure what I&#8217;m doing wrong.My controller:public function index() {$topbar[&#8216;account&#8217;] = $this-&gt;load-&gt;view(&#8216;auth\/login_form&#8217;);$data[&#8216;topbar&#8217;] = $topbar;$this-&gt;load-&gt;view(&#8216;main_template&#8217;, $data); }Main template looks like: The error I&#8217;m receiving when loading the page is the following:A PHP Error was encounteredSeverity: NoticeMessage: Undefined variable: show_captchaFilename: auth\/login_form.phpLine Number: 47In addition, I&#8217;m receiving identical errors for:Undefined variable: login_by_usernameHeres the login form (untouched&#8230;defaul<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7e8f6af9716d8cd918ec9979dcbe302f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nHerbert<br \/>\nphp codeigniter tankauth<br \/>\nI am new to CodeIgniter and I use Tank Auth for my login form. When I try to put Tank Auth in my template, the login form doesn\u2019t appear at all. I didn\u2019t change anything but the controller.Here is my controller code:public function __construct(){parent::__construct(<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6cd67cfcd5d0e2b9ceae3886c5283540?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSajad A<br \/>\nphp codeigniter tankauth<br \/>\nmy login interface starts with error message.A PHP Error was encounteredSeverity: NoticeMessage: Undefined variable: login_by_usernameFilename: auth\/register_form.phpLine Number: 10A PHP Error was encounteredSeverity: NoticeMessage: Undefined variable: login_by_usernameFilename: auth\/register_form.phpLine Number: 12 if i press login button without out passing any values , tank_auth doesn&#8217;t promt me with error.instead it redirected me to welcome page with this error.Hi,A PHP Error was encounteredSeverity: NoticeMessage: Undefined variable: usernameFilename: views\/welcome.phpLine Number: 3 ! You are logged in now. Logoutauth.php filefunction login() { if ($this-&gt;tank_auth-&gt;is_logged_in()) { \/\/ logged inredirect(&#8221;);} elseif ($this-&gt;tank_auth-&gt;is_logged_in(FALSE)) { \/\/ logged in, not activatedredirect(&#8216;\/auth\/send_again\/&#8217;);} else {$data[&#8216;login_by_username&#8217;] = ($this-&gt;config-&gt;item(&#8216;login_by_username&#8217;, &#8216;tank_auth&#8217;) AND$this-&gt;config-&gt;item(&#8216;use_username&#8217;, &#8216;tank_auth&#8217;));$data[&#8216;login_by_email&#8217;] = $this-&gt;config-&gt;item(&#8216;login_by_email&#8217;, &#8216;tank_auth&#8217;);$this-&gt;form_validation-&gt;set_rules(<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/67f84302b45968b78ed2df9c58912a2f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJoe Schindel<br \/>\nphp codeigniter tankauth<br \/>\nI am Starting to work with codeigniter and am using Tank Auth as my Authentication Library. Currently trying to set up my application so the pages mysite.com\/login and mysite.com\/signup are custom view<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e9b2f000a6ae6b518d1a0976980b3cbb?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAdam<br \/>\nphp codeigniter authentication tankauth<br \/>\nMy question is more of a conceptual one, since I&#8217;m rather new to working with users and sessions.My current setup is Codeigniter running with the Tank Auth user libraryMy problems I&#8217;m experi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1260843c6e5f21070791189681043525?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nranggadablues<br \/>\ncodeigniter tankauth<br \/>\nI&#8217;ve seen question from this CodeIgniter: Passing fields to user_profiles database with Tank_authand my problem same as Davezatch have, but mine like this on auth controller:&#8230; if ($this-&gt;form_vali<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9a7699839d4aa8841a93c5fe6571a806?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMalyo<br \/>\nphp codeigniter tankauth<br \/>\nI&#8217;ve started using Tank Auth in my CodeIgniter App, I have followed some tutorial steps to set it up, and as long as it works, it produces lots of error messages during account activation and logout. Here are the errors:A PHP Error was encounteredSeverity: NoticeMessage: Undefined index: session_idFilename: libraries\/Session.phpLine Number: 272A PHP Error was encounteredSeverity: NoticeMessage: Undefined index: ip_addressFilename: libraries\/Session.phpLine Number: 272A PHP Error was encounte<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/343fce7e2ec223e03766618160568c5d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nFibericon<br \/>\nphp codeigniter tankauth<br \/>\nOn the default tank_auth login view, there are no errors whatsoever. However, I wanted to style it to match the rest of the site, so I took the code an<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/721952649ad4c6375ea0641599129cc7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAmith Raj Shetty<br \/>\ncodeigniter tankauth<br \/>\nI get the following error when click on sign up button.Fatal error: Call to undefined function set_value() in C:\\wamp\\www\\bdcom\\www\\application\\views\\auth\\register_form.php on line 19I am new to codei<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-11-09 21:40:23. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Manny Calavera php codeigniter swfupload tankauth I am using Codeigniter with the TankAuth library installed and trying to upload to index.php\/reuqests\/doUpload from swfupload but can&#8217;t access the page as authenticated. I have read many posts around the net about similar problem and tried to set $config[&#8216;sess_match_userag Maxcot codeigniter session tankauth My app is PHP \/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-702","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=702"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/702\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}