Store icon indicating copy to clipboard operation
Store copied to clipboard

insertItem.php errors

Open kabew0w opened this issue 5 years ago • 11 comments

I can't upload my item.txt from my old zephyrus store due to these two errors when doing the insertitem.php script: Warning: array_key_exists() expects parameter 2 to be array, string given in C:\php\insertItem.php on line 35

Warning: Invalid argument supplied for foreach() in C:\php\insertItem.php on line 118

I have followed the tutorial as best as I can, but IF I understand it correctly, the item.txt file that comes with your plugin has some kind of duration on how long they can own certain player models etc. I don't know if its related to these two errors I get, but hopefully it is..

Really desperate for help, one of my highest populated server is down atm cause I cant fix this..

kabew0w avatar Dec 12 '19 17:12 kabew0w

Also, what do you mean by "Add -->"uid"<-- key for each item in ...'

kabew0w avatar Dec 12 '19 18:12 kabew0w

uid -> unique_id, that is an unique id for item.

Kxnrl avatar Dec 12 '19 19:12 Kxnrl

u can check example items.txt in configs/store/items.txt

Kxnrl avatar Dec 12 '19 19:12 Kxnrl

Would you say that, that would fix these errors im getting? Thank you very much for the reply btw

kabew0w avatar Dec 13 '19 09:12 kabew0w

can u share ur items.txt?

Kxnrl avatar Dec 13 '19 09:12 Kxnrl

This was the one before I added the uid: https://paste2.org/V1knJNYn

This is the one after I added uid: https://paste2.org/PmyBU7nH

kabew0w avatar Dec 13 '19 10:12 kabew0w

This is the 2 new errors I get after I added the "uid" to everything:

Notice: vdf_decode: invalid syntax, expected a '}' on line 933 in C:\php\kvphp.php on line 49

Warning: Invalid argument supplied for foreach() in C:\php\insertItem.php on line 29 Array ( )

kabew0w avatar Dec 13 '19 10:12 kabew0w

I've also added you on steam if you would like to talk via there, but you maybe don't like having "business" related friends there.. I am the latest person to comment your profile!

kabew0w avatar Dec 13 '19 10:12 kabew0w

I too, am having this issue.

JamsRepos avatar Feb 05 '20 23:02 JamsRepos

Seems to break when it gets to my player models in the loop, I've sent you an add on Steam to diagnose further.

JamsRepos avatar Feb 05 '20 23:02 JamsRepos

Store is broke with this issue can't add nothing.

uGamers avatar Feb 24 '20 02:02 uGamers