Bug Wrong datatype for second argument in [path]

Status
Not open for further replies.

Danny

Customer
Recieving this error when viewing a members profile

Code:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/vbnominate/includes/class_profileblock.php on line 86

I believe there is an error with this function in class_profileblock.php;
Code:
			if (in_array($data_data['nomnom_id'], $winner_ids))

Currently uninstalled the product until a solution arises. It seems a simple fix.
 
I do believe that was hotfixed in the latest version, which was on the third of May, so if you downloaded the product before that grab the files again.

If that don't work here is the manual edits:

dbtech/vbnominate/includes/class_profileblock.php

Find
PHP:
if (in_array($data_data['nomnom_id'], $winner_ids))
Replace with
PHP:
if (in_array($data_data['nomnom_id'], (array)$winner_ids))

and Find

PHP:
if (in_array($data_data['nomnom_id'], $nominated_ids))
Replace with
PHP:
if (in_array($data_data['nomnom_id'], (array)$nominated_ids))

Let me know which solution works.
 
I do believe that was hotfixed in the latest version, which was on the third of May, so if you downloaded the product before that grab the files again.

If that don't work here is the manual edits:

dbtech/vbnominate/includes/class_profileblock.php

Find
PHP:
if (in_array($data_data['nomnom_id'], $winner_ids))
Replace with
PHP:
if (in_array($data_data['nomnom_id'], (array)$winner_ids))

and Find

PHP:
if (in_array($data_data['nomnom_id'], $nominated_ids))
Replace with
PHP:
if (in_array($data_data['nomnom_id'], (array)$nominated_ids))

Let me know which solution works.

I thought it was something like that. but just wanted to make sure from yourself.

Works fantastically now. Thanks again
 
When did you download the product?

EDIT: Nevermind I see the updated code in in the lite zip.
 
Last edited:
Status
Not open for further replies.

Legacy vBNominate

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