DragonByte Tech | vBulletin Mods & Addons - Powered by vBulletin






Request Support

Have an issue with one of our products? Want to suggest a new feature? Need help with configuration?
Loading...

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 Downloaded
    0
    Total Downloaded
    0
    User InfoThanks / Tagging InfoGifts / Achievements / AwardsActivity Stats
    Join Date
    Jul 2011
    Posts
    19
    Points
    177
    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.
    0 0 0
     
    Wrong datatype for second argument in [path] Send PM  

  2. #2
    Senior Member
    Level 37 (19,116 Loyalty Points)
    Ozzy47's Avatar
    Total Downloaded
    0
    Total Downloaded
    0
    User InfoThanks / Tagging InfoGifts / Achievements / AwardsActivity Stats
    Join Date
    Mar 2010
    Posts
    6,082
    Blog Entries
    14
    Points
    19,331
    Credits
    62,322
    Rep Power
    37

    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 they are no longer available on 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.
    0 0 0
     
    Wrong datatype for second argument in [path] Send PM  

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

    Total Downloaded
    0
    Total Downloaded
    0
    User InfoThanks / Tagging InfoGifts / Achievements / AwardsActivity Stats
    Join Date
    Jul 2011
    Posts
    19
    Points
    177
    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
    0 0 0
     
    Wrong datatype for second argument in [path] Send PM  

  4. #4
    Senior Member
    Level 37 (19,116 Loyalty Points)
    Ozzy47's Avatar
    Total Downloaded
    0
    Total Downloaded
    0
    User InfoThanks / Tagging InfoGifts / Achievements / AwardsActivity Stats
    Join Date
    Mar 2010
    Posts
    6,082
    Blog Entries
    14
    Points
    19,331
    Credits
    62,322
    Rep Power
    37

    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 they are no longer available on 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.
    0 0 0
     
    Wrong datatype for second argument in [path] Send PM  

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
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.