Cyberbyte-Software / CyberWorks-3

CyberWorks 3 is a database management panel for Altis Life
https://cyberbyte.software/cyberworks3
GNU General Public License v3.0
19 stars 8 forks source link

Gang Section wont work #7

Closed MkZ0ck closed 6 years ago

MkZ0ck commented 6 years ago

Hi I installed CW3 on my WindowsServer on a Apache WebServer. I have the problem, when I install the php and do all my login stuff there comes to errors up and the gang section in the admin menu wont work error phperror

If I'am deleting my gangs table in Database, and create a new test record I can access it in the Webinterface but when im trying to edit it the error above comes up and comes again when I want to access the gang section until I delete the record in Database.

Error is also reproduce able on Conntainers and Houses section.

I hope someone find something to help me.

Greeting

cammygames commented 6 years ago

What version of altis life are you trying to use. Currently we only support this database schema. https://github.com/AsYetUntitled/Framework/blob/master/altislife.sql

MkZ0ck commented 6 years ago

I'm using the 5.0 of Altis Life and it should be that sql file you postet, but we are using some extra tables for an Actionhouse and Dynmarket.

cammygames commented 6 years ago

If you send me the log file from the logs folder over discord i will take a look and see if i can resolve your issue.

MkZ0ck commented 6 years ago

Hi, here I have the important errors: https://drive.google.com/open?id=1zHFGxapdZt_RJdZzaeAg1aFqCe3W4Cgb every thing there is like a loop I have about 200 of this errors. I hope you'll find something.

cammygames commented 6 years ago

Could you send me the sturcture of your gangs table please. There appears to be an issue with the getOwnerIDAttribute function returing null. This is generally caused by the colum name in the table being different from what it is looking for.

MkZ0ck commented 6 years ago

Hi, I give you here the hole structure of the database. Don't worry I was using the old Cyberworks version on my server. --HIDDEN PUBLIC LINK--

cammygames commented 6 years ago

Thanks for the db, could you also send over the data for the gangs table.

MkZ0ck commented 6 years ago

--HIDDEN PUBLIC LINK--

cammygames commented 6 years ago

could i get the data as SQL please. i need to ensure the data is what i expected it to be with its correct formatting.

MkZ0ck commented 6 years ago

I hope this time its the right thing :D --HIDDEN PUBLIC LINK--

cammygames commented 6 years ago

The data in your gang section doesn't seem to match what i expected it to be. I thought members was an array. something like the following. "[`000000000`]" was the data you sent over data you added or what was produced by creating a gang in game.

MkZ0ck commented 6 years ago

The data in the sql I send you was added by myself, but the gamecreated record I like you said an array in this format "[000000000]". I also tried to use the Webinterface with the gamecreated record but still the error from Ajax

cammygames commented 6 years ago

So for the gang section to work you need to have a matching player to own the gang in the players table. from the data you sent me there i no matching player in the players table.

MkZ0ck commented 6 years ago

Here I have the sql with Ingame created records: --HIDDEN PUBLIC LINK--

cammygames commented 6 years ago

In the data you sent me the owner of that gang does not exist in the players table thus the gang section isnt working as it isnt able to find the owner in the playertable. If you change the owner to the id of the only member then it will work. Just ensure the player 76561198191583870 exists in your player database.

MkZ0ck commented 6 years ago

I see now, but can you tell me why the Owner ID changes from the Original ID (76561198191583867) to 76561198191583870 when I safe the changes. When I open the edit function there is anytime standart this ID 76561198191583867, but I have no idea from where it cames

cammygames commented 6 years ago

i will investigate that now and get back to you shortly.

MkZ0ck commented 6 years ago

Thanks a lot for the work man, Webinterface is very nice. Two little things, first you have to apply those changes for the House Part too and, second can you add an button for deleting Houses, Container, Vehicles and Gangs? Whould by nice. Greetings

cammygames commented 6 years ago

Just updated #13 to include the other views. Could you possibly submit the suggestions as a feature request following the format in ISSUE_TEMPLATE.MD

MkZ0ck commented 6 years ago

I can do it but where I should put it? xD

cammygames commented 6 years ago

just submit it as an issue but just follow the template.

cammygames commented 6 years ago

resolved by #13