vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Just noticed an error message after updating to 4.2.2. (https://vborg.vbsupport.ru/showthread.php?t=316807)

pityocamptes 01-21-2015 02:54 AM

Just noticed an error message after updating to 4.2.2.
 
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

Code:

($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?

kh99 01-21-2015 01:17 PM

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

Quote:

Originally Posted by pityocamptes (Post 2533758)
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...


All times are GMT. The time now is 09:07 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01022 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete