Bug Wrong datatype for second argument in [path]/add_image.php on line 51

Status
Not open for further replies.

petandpet

Customer
When I try to add an image:
Pet and Pet

I get those errors at the top:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/gallery/actions/add_image.php on line 48

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/gallery/actions/add_image.php on line 49

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/gallery/actions/add_image.php on line 50

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/gallery/actions/add_image.php on line 51

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/gallery/actions/add_image.php on line 52

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/gallery/actions/add_image.php on line 53

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/gallery/actions/add_image.php on line 54

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/gallery/actions/add_image.php on line 55

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/dbtech/gallery/actions/add_image.php on line 55
 
This is a bug...

I entered to Edit Instance (instanceid: 1),
Then I checked (only for admins) "Can Add Category" and "Can Set Category View Usergroups".
After that I save changes and the errors had gone.

To see which was the bug, I entered again and unchecked those 2 boxes and save... and there are no errors.

So, to reproduce this I think you have to do this:
Install old version, create an instance, set permissions with those 2 boxes unchecked. After that, upgrade the mod and you should see the errors.
 
That's weird, those boxes don't have any workflow tied to it. The workflow on those lines directly are related to the allowed file types in the gallery instance.
 
Status
Not open for further replies.

Similar threads

  • Locked
  • Support ticket Support ticket
Replies
8
Views
1K

Legacy DragonByte Gallery

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