View Full Version : Just noticed an error message after updating to 4.2.2.
pityocamptes
01-21-2015, 02:54 AM
When I log into the site, and then click on admin (for admin panel) if I put the wrong password in this second login I get this:
Warning: Invalid argument supplied for foreach() in ..../login.php(119) : eval()'d code on line 4
nerbert
01-21-2015, 03:26 AM
Check a plugin in the "login_failure" hook location, line 4 of the plugin.
pityocamptes
01-21-2015, 03:29 AM
Would this be in the login.php file? How do I check?
nerbert
01-21-2015, 03:41 AM
In your list of plugins (Plugin Manager) in Plugins & Products. It goes in login.php but the file is not the problem, it's some product.
When you have an error or warning message like that it lists the line in the file and the line in the plugin that goes in the hook location at the given file line.
Warning: Invalid argument supplied for foreach() in ..../login.php(119) : eval()'d code on line 4
So check line 119 in login.php and you'll see
($hook = vBulletinHook::fetch_hook('login_failure')) ? eval($hook) : false;
So it's line 4 of some plugin in "login_failure"
pityocamptes
01-21-2015, 01:12 PM
Sorry to sound so stupid, but how do I know which plugin it is? How do I narrow it down?
If you can't tell by looking at the list of plugins, then you can try temporarily disabling your products one by one. Obviously if you have one that has to do with login failures you'd start with that one.
If you have plugins that aren't part of a product, then look under the "vbulletin" section in the pugin manager for one that uses that hook.
nerbert
01-21-2015, 01:36 PM
Sorry to sound so stupid, but how do I know which plugin it is? How do I narrow it down?
The Hook Location is the second column when you view Plugin Manager. If there are several plugins in that hook location check each one for "foreach( .........)" on line 4
pityocamptes
01-22-2015, 02:51 AM
Ok, found it. Looks like it is connected to the admincp firewall. Anyone know how to fix this? Thanks.
ozzy47
01-23-2015, 12:08 AM
If it from a mod, best place is to ask in that mods thread. :)
pityocamptes
01-23-2015, 11:35 PM
Thanks. Looks like the mod is no longer supported... bummer...
ozzy47
01-23-2015, 11:38 PM
Yeah but some users in there may have come across it and provide a solution.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.