DragonByte Tech | vBulletin Mods & Addons - Powered by vBulletin



DragonByte Tech Proudly Hosted By Hivelocity.net
Cloud Servers from HiVelocity Hosting / Sparknode

View Issue Info: Wrong datatype for second argument in [path]

Category:
Bug
Status:
Fixed
Priority:
N/A
Product Version:
Enter the product version you are running in the following format: x.y.x
Example: 1.1.0
1.2.5
Forum Version:
Enter the forum version you are running.
4.1.12
Browser:
Enter the browser(s) and version(s) you encounter this issue on.
FireFox
Default Skin?
Does this issue happen on the default skin?
Yes
Support Agent:
Dylan

User Tag List

  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • 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)
      This user has no status.
       
      I am:
      ----
       

      Gil
      231 (0 Banked)
      Total Contributions For

      Danny      $ 0.00
      User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
      Join Date
      Jul 2011
      Posts
      19
      Points
      231
      Credits
      51
      Problems Posted
      0
      Problems Solved
      0
      Best Answers
      0
      Good Answers
      0
      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
      Development Team
      Level 31 (16,306 Loyalty Points)
      is is Pulling my hair out trying
      to code
       
      I am:
      Wtf
       



      Ozzy47's Avatar
      Gil
      37,283 (0 Banked)
      Total Contributions For

      Ozzy47 Points for Posts (Own Threads) Most Problems Solved      $ 28.00
      User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
      Join Date
      Mar 2010
      Posts
      5,601
      Blog Entries
      13
      Points
      37,283
      Credits
      61,010
      Problems Posted
      0
      Problems Solved
      11
      Best Answers
      1
      Good Answers
      2
      Rep Power
      10

      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.

      vBDonate has won Mod of the Month for January 2013 at vBulletin.org. Thanks to everyone who voted and made this happen.


    3. #3
      Junior Member
      Level 0 (999 Loyalty Points)
      This user has no status.
       
      I am:
      ----
       

      Gil
      231 (0 Banked)
      Total Contributions For

      Danny      $ 0.00
      User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
      Join Date
      Jul 2011
      Posts
      19
      Points
      231
      Credits
      51
      Problems Posted
      0
      Problems Solved
      0
      Best Answers
      0
      Good Answers
      0
      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
      Development Team
      Level 31 (16,306 Loyalty Points)
      is is Pulling my hair out trying
      to code
       
      I am:
      Wtf
       



      Ozzy47's Avatar
      Gil
      37,283 (0 Banked)
      Total Contributions For

      Ozzy47 Points for Posts (Own Threads) Most Problems Solved      $ 28.00
      User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
      Join Date
      Mar 2010
      Posts
      5,601
      Blog Entries
      13
      Points
      37,283
      Credits
      61,010
      Problems Posted
      0
      Problems Solved
      11
      Best Answers
      1
      Good Answers
      2
      Rep Power
      10

      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.

      vBDonate has won Mod of the Month for January 2013 at vBulletin.org. Thanks to everyone who voted and made this happen.


    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
    •