Jump to content
  • 0

How To Setup Multicraft Api.php For Blesta


kennethgomad03

Question

Recommended Posts

  • 0

yea but the problem is when cleints had bought a package they do'nt recieve a username and pass automatic generate.

 

Did you add welcome email content to your Packages? See https://docs.blesta.com/display/user/Multicraft#Multicraft-WelcomeEmail

 

I suggest going through the documentation step by step, it will make a lot more sense if you are familiar with the documentation. If you have any specific issues or questions, please feel free to post them with as many details as possible.

Link to comment
Share on other sites

  • 0

So Mike was helping me on Teamviewer and we keep getting "An internal error occurred, or the server did not respond to the request."
 

In the logs it says under output:

http://ip-address/multicraft/api.php|findUsers
s:62:"{"success":false,"errors":["No API user supplied."],"data":[]}";

We've moved the MulticraftAPI.php in all three folders to try and fix it:

 

/components/modules/multicraft/

/components/modules/multicraft/apis/

/components/modules/multicraft/config/

 

But no luck. The username and the API key are both correct in the Module and the file itself. Is there anything we are missing? Thanks.

PS: both Input boxes on the log are successful, it's just the output's which are showing errors.

Link to comment
Share on other sites

  • 0

If you pm me ill help you, If your online at around 4:10 Central US Time, Missouri I will help you out, I have all mine setup. I also tried making an account and purchasing a server, and i noticed for some reason it auto cancels the server. Ill trade some information though I'll help you out if you show me how to edit the blesta page like that. lol.

 

EDIT: Alright dude, I just noticed that you got https://, now how did you do that?? Im using wamp, and I cant get it to work what so ever. 

Link to comment
Share on other sites

  • 0

If you pm me ill help you, If your online at around 4:10 Central US Time, Missouri I will help you out, I have all mine setup. I also tried making an account and purchasing a server, and i noticed for some reason it auto cancels the server. Ill trade some information though I'll help you out if you show me how to edit the blesta page like that. lol.

 

EDIT: Alright dude, I just noticed that you got https://, now how did you do that?? Im using wamp, and I cant get it to work what so ever. 

 

Awesome can help each other :P Multicraft seems very hard to set-up.

Link to comment
Share on other sites

  • 0

To be honestly its not that hard, I just was having a super hard time setting up cron jobs and the email thing, but the email was all wrong on my part, BUT what did suck was getting PayPal setup, I had to register my company and get a Buniness Emplayee ID for a PayPal Business Account. Setting up the packages was a little hard, I got a package for a fully custom server where you can select how ever much ram and players and jar. Im all setup I just wouldnt mind getting the cron jobs  finished. I went on google and saw this one post so i tried but no luck, When i get some more free time I for sure will keep on trying. To be honestly the API was the easiest part...

Link to comment
Share on other sites

  • 0

So Mike was helping me on Teamviewer and we keep getting "An internal error occurred, or the server did not respond to the request."

 

In the logs it says under output:

http://ip-address/multicraft/api.php|findUsers
s:62:"{"success":false,"errors":["No API user supplied."],"data":[]}";

We've moved the MulticraftAPI.php in all three folders to try and fix it:

 

/components/modules/multicraft/

/components/modules/multicraft/apis/

/components/modules/multicraft/config/

 

But no luck. The username and the API key are both correct in the Module and the file itself. Is there anything we are missing? Thanks.

PS: both Input boxes on the log are successful, it's just the output's which are showing errors.

 

What is "MulticraftAPI.php"? Blesta doesn't come with this file, so there is no reason you should be adding it to your Blesta installation.

 

The API URL the module asks for is on the Multicraft server. It sounds like you have that setup correctly because you've stated that you receive a response of "No API user supplied". You would not have received any response if this were incorrect. The error indicates the "Username" you have set in Blesta is likely missing, as it is not included in the API request to Multicraft, hence the "No API user supplied" error.

Link to comment
Share on other sites

  • 0

What is "MulticraftAPI.php"? Blesta doesn't come with this file, so there is no reason you should be adding it to your Blesta installation.

 

The API URL the module asks for is on the Multicraft server. It sounds like you have that setup correctly because you've stated that you receive a response of "No API user supplied". You would not have received any response if this were incorrect. The error indicates the "Username" you have set in Blesta is likely missing, as it is not included in the API request to Multicraft, hence the "No API user supplied" error.

 

But we tried both a test account and the admin main account with the API key they provided when you enable access?

Link to comment
Share on other sites

  • 0

I can't attest to your situation, but I can tell you how mine is setup:

- Root user in Multicraft has an API key set. Take the root username and this API key and set them in Blesta.

- The URL to the Multicraft API file is very similar to where you login (by default), e.g. https://domain.com/multicraft/api.php - set this in Multicraft as the API URL. The Panel URL is the same (by default), minus "api.php", e.g. https://domain.com/multicraft/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...