DragonByte Tech | vBulletin Mods & Addons - Powered by vBulletin





DragonByte Tech Proudly Hosted By Hivelocity.net
Custom Fitted Forum Hosting from Hivelocity

User Tag List

Results 1 to 4 of 4

Thread: Wrong datatype for second argument in [path]


Forum: vBNominate Lite Support

Questions & Answers for vBNominate.
Click here to buy!

  1. #1
    Junior Member
    Level 0 (999 Loyalty Points)

    Total Contributions For

    Danny      $ 0.00
    Gil
    137 (0 Banked)
    Total Downloaded
    0
    Total Downloaded
    0
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Jul 2011
    Posts
    19
    Points
    137
    Credits
    51
    Rep Power
    0

    Default Wrong datatype for second argument in [path]

    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.

  2. #2
    Former Developer
    Level 36 (18,841 Loyalty Points)



    Ozzy47's Avatar
    Total Contributions For

    Ozzy47 Points for Posts (Own Threads) Most Problems Solved      $ 28.00
    Gil
    20,144 (0 Banked)
    Total Downloaded
    0
    Total Downloaded
    0
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Mar 2010
    Posts
    6,495
    Blog Entries
    14
    Points
    20,144
    Credits
    62,991
    Rep Power
    36

    Default

    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 Code:
    if (in_array($data_data['nomnom_id'], $winner_ids)) 
    Replace with
    PHP Code:
    if (in_array($data_data['nomnom_id'], (array)$winner_ids)) 
    and Find

    PHP Code:
    if (in_array($data_data['nomnom_id'], $nominated_ids)) 
    Replace with
    PHP Code:
    if (in_array($data_data['nomnom_id'], (array)$nominated_ids)) 
    Let me know which solution works.

    My Free Mods are available at OzzModz.com and vB.org

    New vBulletin Spider Definitions, vBulletin Spiders List Updated

    Please do NOT PM me for Support, Ask for support in the relevant forums.
    I no longer work for DBTech and cannot offer official help with any questions or problems, please contact a member of the DBTech team for information on products and support. Any support I may give is unofficial.

  3. #3
    Junior Member
    Level 0 (999 Loyalty Points)

    Total Contributions For

    Danny      $ 0.00
    Gil
    137 (0 Banked)
    Total Downloaded
    0
    Total Downloaded
    0
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Jul 2011
    Posts
    19
    Points
    137
    Credits
    51
    Rep Power
    0

    Default

    Quote Originally Posted by Ozzy47 View Post
    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 Code:
    if (in_array($data_data['nomnom_id'], $winner_ids)) 
    Replace with
    PHP Code:
    if (in_array($data_data['nomnom_id'], (array)$winner_ids)) 
    and Find

    PHP Code:
    if (in_array($data_data['nomnom_id'], $nominated_ids)) 
    Replace with
    PHP Code:
    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

  4. #4
    Former Developer
    Level 36 (18,841 Loyalty Points)



    Ozzy47's Avatar
    Total Contributions For

    Ozzy47 Points for Posts (Own Threads) Most Problems Solved      $ 28.00
    Gil
    20,144 (0 Banked)
    Total Downloaded
    0
    Total Downloaded
    0
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Mar 2010
    Posts
    6,495
    Blog Entries
    14
    Points
    20,144
    Credits
    62,991
    Rep Power
    36

    Default

    When did you download the product?

    EDIT: Nevermind I see the updated code in in the lite zip.
    Last edited by Ozzy47; 5th May 2012 at 19:12.

    My Free Mods are available at OzzModz.com and vB.org

    New vBulletin Spider Definitions, vBulletin Spiders List Updated

    Please do NOT PM me for Support, Ask for support in the relevant forums.
    I no longer work for DBTech and cannot offer official help with any questions or problems, please contact a member of the DBTech team for information on products and support. Any support I may give is unofficial.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •