Status
Not open for further replies.

Webbstre

Customer
Password Reset sort of breaks forum home

Hi there! I've been testing vbNotifications and came across an error for you. If you set your users' passwords to reset after X days, and they load the forum home on that page, AND vbShout is installed, then the forum home only loads up to the end of the shout box, and these errors appear before the header:

Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php(7207) : eval()'d code on line 10

Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php(7207) : eval()'d code on line 61
These errors only appeared on the forum home.


Within the shoutbox, I get this:

Loading...
Error: Your password is 2 days old, and has therefore expired.

Please change your password using this page.
That is the error that loads normally on any other page.
 
Last edited:
Could you please disable all other plugins that run on global_complete hook (no need to disable the whole product, just that particular plugin) and then re-post the error message?

Atm I can't be sure which parts of my code is causing the problem because the hook system creates one giant code string and evals that, which means it's not those lines within my script. If that makes sense.
 
Well, I am now aware that this has nothing to do with vbNotifications, or even vbShout exactly. I could have sworn when I checked before disabling vbNotifications the error stopped appearing in the shoutbox, but now if I check it appears in the shoutbox whether or not notifications is enabled. So... I suppose this should be moved to the vbShout help forum, since apparently it doesn't have anything to do with vbNotifications.

With that said, what you told me to do (check the global_complete hooked plugins), helped me find the source of the problem, and that is the URL rewrite mod for DownloadsII for vbSEO. I'm going to include my copy of it as an attachment, but only so you can find out why the error shows up in vbshout if the two are on together. I'm going to have to hope that whoever made the plugin originally is still around and can fix the bug in his/her script.

View attachment vBSEO_DLIIv6.zip
 

Attachments

Here's what you can try to see if it fixes the error:

Open up the global_complete hook of that product and find all 3 instances of
PHP:
foreach($
and replace them with
PHP:
foreach((array)$

That should stop the errors :)
 
Thanks!

---------- Post added 5th November 2011 at 20:44 ---------- Previous post was 4th November 2011 at 19:39 ----------

So this totally isn't under your jurisdiction at all, but since you are waaaaay more familiar with vbulletin caching than I am, any guesses as to why if I enable this on my live site it completely kills my site's caching and makes my mysql load 5 times higher? :P You honestly don't have to answer if you don't want, but if you are curious and have a few minutes I'd love to know.
 
Status
Not open for further replies.

Similar threads

Legacy vBNotifications

vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
520
Customer rating
0.00 star(s) 0 ratings
Back
Top