Jump to content

Recommended Posts

Posted
54 minutes ago, jcsnider said:

Note.. if running on Windows and you use the *:5400 endpoint you probably have to run the server as Admin for it to work.

 

 

Yes big note for this notice !

Posted
22 hours ago, XFallSeane said:

 

 

Hi 

In cms db, you need enter the ip in default_value and value. Plain password needed.

In your server you can give api access for specific user account (cmd in API DOC)

We recommend this configuration in api.config.json :

 


{
  "RouteAuthorization": {},
  "Hosts": [
    "http://localhost:5400",
    "*:5400"
  ],
  "Cors": [],
  "DataProtectionKey": "yourkey",
  "Enabled": true,
  "DebugMode": false,
  "SeedMode": false,
  "RefreshTokenLifetime": 30,
  "ThrottlePolicy": {
    "IpThrottling": false,
    "IpWhitelist": [],
    "IpRules": {},
    "ClientThrottling": false,
    "ClientWhitelist": [],
    "ClientRules": {
      "test": {
        "PerSecond": 50,
        "PerMinute": 50,
        "PerHour": 0,
        "PerDay": 0,
        "PerWeek": 0
      }
    },
    "EndpointThrottling": false,
    "EndpointWhitelist": [],
    "EndpointRules": {
      "/api/oauth/token": {
        "PerSecond": 1,
        "PerMinute": 5,
        "PerHour": 0,
        "PerDay": 0,
        "PerWeek": 0
      }
    },
    "StackBlockedRequests": false,
    "Rates": {
      "Second": 1,
      "Minute": 60
    }
  },
  "FallbackClientKey": "test",
  "RequestLogLevel": 128
}

 

I work on a total rework for Intersect CMS with several optimization and bug correction.

Two official game work with my version of Intersect CMS.

I publish soon a post for Rework Intersect CMS.

 

The user have api roles full access made via cmd accordingly to api docs.

Is this cms database settings correct then? Or do you have an example?

f29b4e0bd0f4d38f9084807990cd126a.png

 

 

 

 

Posted
4 minutes ago, Worldofjimmy said:

 

The user have api roles full access made via cmd accordingly to api docs.

Is this cms database settings correct then? Or do you have an example?

f29b4e0bd0f4d38f9084807990cd126a.png

 

 

 

 



For this version is correct
If the cms not work  check in your playerdata.db with SqlLite Browser if the account has all  after api: true is true in the power

Posted
4 minutes ago, XFallSeane said:



For this version is correct
If the cms not work  check in your playerdata.db with SqlLite Browser if the account has all  after api: true is true in the power

 

This is in SqlLite Browser for this user.

I have also opened all incoming traffic for this port 5400-5403 in IIS in Windows 10 and I run the server as admin.

 

Not sure where I can debug as it works fine via Postman...

 

8e37220b2265dfaab651b1f4eabe238b.png

Posted
8 minutes ago, Worldofjimmy said:

 

This is in SqlLite Browser for this user.

I have also opened all incoming traffic for this port 5400-5403 in IIS in Windows 10 and I run the server as admin.

 

Not sure where I can debug as it works fine via Postman...

 

8e37220b2265dfaab651b1f4eabe238b.png

 

The cms not work ? Your password is plain in web database ? 

Posted
1 minute ago, XFallSeane said:

 

The cms not work ? Your password is plain in web database ? 

 

Exactly, does not work.

If the password was "Password" then yes, the password is in plain text in web database...

Posted
Just now, Worldofjimmy said:

 

I'll try your reworked version, use google translate for the installation guide and update you on this :-) Thanks for sharing!
 


No problem ;) !

Posted
12 minutes ago, Worldofjimmy said:

 

Now I receive this error when I try to Login, is there any logs that I can check somewhere?

6c014fdaea3dec93eb901f0a0089cf0b.png


Hm, 

Can you go to the App / Controller / UserController file on line 162 and remove the // from the code?  If no code at this line add this die(var_dump($register)); and retry logging in and screen the page

Before in your database web, in cms_setting api_token is # or a token as save ? default_value and value do you have  been modified to text instead of varchar?

Posted
3 minutes ago, XFallSeane said:


Hm, 

Can you go to the App / Controller / UserController file on line 162 and remove the // from the code?  If no code at this line add this die(var_dump($register)); and retry logging in and screen the page

 

I guess CMS cannot connect to my IP via the port. Not sure why since Postman requests works fine. Maybe the game server needs to be located on an VPS instead of my mini homelab?

 

I got this message:

4fe459aa1f7c3d165446555932e7efe2.png

Posted
3 minutes ago, Worldofjimmy said:

 

I guess CMS cannot connect to my IP via the port. Not sure why since Postman requests works fine. Maybe the game server needs to be located on an VPS instead of my mini homelab?

 

I got this message:

4fe459aa1f7c3d165446555932e7efe2.png


Nice, in db modify in table cms_setting => setting => api_server => http://yourip:yourport and that works ;) 

api_server : http://votreip:votreport => step 7 of installation

Posted
1 hour ago, XFallSeane said:


Nice, in db modify in table cms_setting => setting => api_server => http://yourip:yourport and that works ;) 

api_server : http://votreip:votreport => step 7 of installation

 

I did that but it does not work. I setup a new host via Intersect hosting and tried to connect to API there but same problem.

I this correct for your version of cms?
5f7d261a29bd2c6835340b0ec9d32421.png

Posted
17 minutes ago, Worldofjimmy said:

 

I did that but it does not work. I setup a new host via Intersect hosting and tried to connect to API there but same problem.

I this correct for your version of cms?

 

For me yes everything is correct you have same message? Failed to connect yourip....? 

 

IIf you have the same message it's because it's from the server of the shot and not from the cms 

Posted
6 minutes ago, XFallSeane said:

 

For me yes everything is correct you have same message? Failed to connect yourip....? 

 

Yes same message:

 

32ce92bfe91b7588cbafbf0c03563b4b.png

 

Seems to work to via Postman but not via Intersect CMS

6a4d4b6d8c7fb6cd25eed68092d405d5.png

 

 

Here is Intersect Server running via Intersect hosting

e9fa758697b044b7b37fb3d739c4e8b3.png

Posted
11 minutes ago, Worldofjimmy said:

 

Yes same message:

 

32ce92bfe91b7588cbafbf0c03563b4b.png

 

Seems to work to via Postman but not via Intersect CMS

6a4d4b6d8c7fb6cd25eed68092d405d5.png

 

 

Here is Intersect Server running via Intersect hosting

e9fa758697b044b7b37fb3d739c4e8b3.png

 

 

Do you have a token look at Postman? It's weird it should work if you have to replace all the files of the cms with mine 

Posted
2 minutes ago, XFallSeane said:

 

 

Do you have a token look at Postman? It's weird it should work if you have to replace all the files of the cms with mine 

 

Yes I receive a token when I tried via Postman. I made a clean setup with your version. Can it be something with the php code?

 

b6bdde6181d5bd51f0c529f7de1e7df3.png

Posted
1 minute ago, Worldofjimmy said:

 

Yes I receive a token when I tried via Postman. I made a clean setup with your version. Can it be something with the php code?

 

b6bdde6181d5bd51f0c529f7de1e7df3.png

 

3 games turns with my version without problem it's weird 🤔 as if it was impossible to join the api in public :/

Not sure it's from the source code of the cms :/

Posted
1 minute ago, XFallSeane said:

 

3 games turns with my version without problem it's weird 🤔 as if it was impossible to join the api in public :/

Is your games public? or locally?

  • 1 month later...
Posted

I am getting the following error when trying to access the url after setup:

Fatal error: Uncaught PDOException: Could not connect to database (BSC). in C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php:440 Stack trace: #0 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php(161): RedBeanPHP\Driver\RPDO->connect() #1 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php(464): RedBeanPHP\Driver\RPDO->runQuery('SELECT * FROM c...', Array) #2 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Adapter\DBAdapter.php(118): RedBeanPHP\Driver\RPDO->GetAll('SELECT * FROM c...', Array) #3 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Facade.php(158): RedBeanPHP\Adapter\DBAdapter->get('SELECT * FROM c...', Array) #4 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Facade.php(1226): RedBeanPHP\Facade::query('get', 'SELECT * FROM c...', Array) #5 C:\xampp\htdocs\BSC-CMS\public\index.php(63): RedBeanPHP\Facade::getAll('SELECT * FROM c...') #6 {main} thrown in C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php on line 440

Any help would be greatly appreciated!

Posted
5 minutes ago, Nimbus said:

I am getting the following error when trying to access the url after setup:

Fatal error: Uncaught PDOException: Could not connect to database (BSC). in C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php:440 Stack trace: #0 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php(161): RedBeanPHP\Driver\RPDO->connect() #1 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php(464): RedBeanPHP\Driver\RPDO->runQuery('SELECT * FROM c...', Array) #2 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Adapter\DBAdapter.php(118): RedBeanPHP\Driver\RPDO->GetAll('SELECT * FROM c...', Array) #3 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Facade.php(158): RedBeanPHP\Adapter\DBAdapter->get('SELECT * FROM c...', Array) #4 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Facade.php(1226): RedBeanPHP\Facade::query('get', 'SELECT * FROM c...', Array) #5 C:\xampp\htdocs\BSC-CMS\public\index.php(63): RedBeanPHP\Facade::getAll('SELECT * FROM c...') #6 {main} thrown in C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php on line 440

Any help would be greatly appreciated!

 

Hi,

Did you correctly fill in the information in application / App / preferences.php?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...