PDA

View Full Version : [Issue] [Store] No categories are currently available.


Pitbull3
06-08-2016, 17:26
Whenever I press 1 for the shop I get the message : [Store] No categories are currently available.

The store plugins are loaded.

04 "[Store] Core Module" (1.2 Final) by Alongub, Keith Warren(Drixevel), Arrow768
10 "[Store] Refunds Module" (1.2 Final) by Alongub, Keith Warren(Drixevel), Arrow768
32 "[Store] Shop Module" (1.2 Final) by Alongub, Keith Warren(Drixevel), Arrow768
36 "[Store] Distributor Module" (1.2 Final) by Alongub, Keith Warren(Drixevel), Arrow768
40 "[Store] Gifting Module" (1.2 Final) by Alongub, Keith Warren(Drixevel), Arrow768
53 "[Store] Logging Module" (1.2 Final) by Alongub, Keith Warren(Drixevel), Arrow768
62 "[Store] Backend Module" (1.2 Final) by Alongub, Keith Warren(Drixevel), Arrow768
77 "[Store] Loadouts Module" (1.2 Final) by Alongub, Keith Warren(Drixevel), Arrow768
78 "[Store] Inventory Module" (1.2 Final) by Alongub, Keith Warren(Drixevel), Arrow768

Extensions are fine.

16:19:45 [SM] Displaying 20 extensions:
[01] Automatic Updater (1.7.3-dev+5305): Updates SourceMod gamedata files
[02] Webternet (1.7.3-dev+5305): Extension for interacting with URLs
[03] SMJansson (2.6.0/1): JSON parser/writer
[04] TF2Items (1.6.3): TF2 Item Modifier
[05] TF2 Tools (1.7.3-dev+5305): TF2 extended functionality
[06] BinTools (1.7.3-dev+5305): Low-level C/C++ Calling API
[07] SDK Hooks (1.7.3-dev+5305): Source SDK Hooks
[08] SDK Tools (1.7.3-dev+5305): Source SDK Tools
[09] Top Menus (1.7.3-dev+5305): Creates sorted nested menus
[10] Regex (1.7.3-dev+5305): Provides regex natives for plugins
[11] SteamTools (0.9.1+7202836): SteamWorks for SourceMod.
[12] Client Preferences (1.7.3-dev+5305): Saves client preference settings
[13] SQLite (1.7.3-dev+5305): SQLite Driver
[14] MessageBot (1.4): MessageBot Extension
[15] Socket (3.0.1): Socket extension for SourceMod
[16] GeoIP (1.7.3-dev+5305): Geographical IP information
[17] GeoIPCity (1.1.1): Geographical IP information
[18] SteamWorks Extension (1.2): Exposes SteamWorks functions to Developers
[19] cURL Extension (1.3.0.0): cURL Extension
[20] MySQL-DBI (1.7.3-dev+5305): MySQL driver implementation for DBI

http://puu.sh/plJZ7/672fd37526.jpg http://puu.sh/plKaP/8ea745f959.jpg

However, in the database everything is there and loaded correctly. And it's loading my credits instantly...

http://puu.sh/plKgY/178ebb6234.png

Pitbull3
06-14-2016, 01:00
Still no response from a developer. Help please?

CJNiiva
06-14-2016, 05:02
if you read the error log its probably saying that it cant find the loadout plugin, thats because the newer one is renamed to loadouts, try renaming it to loadout instead, I will give an update on it as soon as my server starts

CJNiiva
06-14-2016, 05:12
can confirm, thats not the issue, probably something in mysql, will update if I find the issue

Pitbull3
06-14-2016, 05:25
No errors in /logs/store

This is what my mysql looks like. Does everything look correct there?

http://puu.sh/pscSt/30a4231108.png


Saw this in my console as I changed map:

L 06/14/2016 - 05:43:20: [SM] Plugin encountered error 15: Array index is out of bounds
L 06/14/2016 - 05:43:20: [SM] Displaying call stack trace for plugin "store-backend.smx":
L 06/14/2016 - 05:43:20: [SM] [0] Line 2107, D:\SourcePawn\store\scripting\store-backend.sp::Native_GetLoadoutGame()
L 06/14/2016 - 05:43:20: [SM] Plugin encountered error 15: Array index is out of bounds
L 06/14/2016 - 05:43:20: [SM] Native "Store_GetLoadoutGame" reported: Error encountered while processing a dynamic native
L 06/14/2016 - 05:43:20: [SM] Displaying call stack trace for plugin "store-loadouts.smx":
L 06/14/2016 - 05:43:20: [SM] [0] Line 216, D:\SourcePawn\store\scripting\store-loadouts.sp::IsLoadoutAvailableFor()
L 06/14/2016 - 05:43:20: [SM] [1] Line 133, D:\SourcePawn\store\scripting\store-loadouts.sp::Event_PlayerSpawn()

CJNiiva
06-14-2016, 21:09
okei, so the issue was simply that on your webserver/application/database.php the default line for
$db['default']['dbdriver'] = 'mysqli';
should be renamed to:
$db['default']['dbdriver'] = 'mysql';

that fixed it for me:)
yes, it was really hard to see that, but the little i on the end was annoying as shit!

nhnkl159
06-20-2016, 05:13
No errors in /logs/store

This is what my mysql looks like. Does everything look correct there?

http://puu.sh/pscSt/30a4231108.png


Saw this in my console as I changed map:

L 06/14/2016 - 05:43:20: [SM] Plugin encountered error 15: Array index is out of bounds
L 06/14/2016 - 05:43:20: [SM] Displaying call stack trace for plugin "store-backend.smx":
L 06/14/2016 - 05:43:20: [SM] [0] Line 2107, D:\SourcePawn\store\scripting\store-backend.sp::Native_GetLoadoutGame()
L 06/14/2016 - 05:43:20: [SM] Plugin encountered error 15: Array index is out of bounds
L 06/14/2016 - 05:43:20: [SM] Native "Store_GetLoadoutGame" reported: Error encountered while processing a dynamic native
L 06/14/2016 - 05:43:20: [SM] Displaying call stack trace for plugin "store-loadouts.smx":
L 06/14/2016 - 05:43:20: [SM] [0] Line 216, D:\SourcePawn\store\scripting\store-loadouts.sp::IsLoadoutAvailableFor()
L 06/14/2016 - 05:43:20: [SM] [1] Line 133, D:\SourcePawn\store\scripting\store-loadouts.sp::Event_PlayerSpawn()


edit the event Event_PlayerSpawn of store-loadouts.sp to :

public void Event_PlayerSpawn(Handle event, const char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(GetEventInt(event, "userid"));

if(client >= 1 && client <= MaxClients && IsClientConnected(client) && IsClientInGame(client))
{
if(g_clientLoadout[client] == 0 || !IsLoadoutAvailableFor(client, g_clientLoadout[client]))
{
FindOptimalLoadoutFor(client);
}
}
}

compile it and add it to ur server