Giter Site home page Giter Site logo

Comments (9)

4yx avatar 4yx commented on July 19, 2024 1
The requested URL /json-api/batch.php was not found on this server.

I had a look at this, and it seems that WHMCS may be trying to call this:
https://api.docs.cpanel.net/openapi/whm/operation/batch/

Unfortunately, as MOFH's API isn't the WHM API, it doesn't seem to have the batch function implemented, so whatever WHMCS is trying to do, likely won't work. If it works fine without it, you can ignore this issue. If not, then perhaps the newer versions of WHMCS are no longer compatible with MOFH.

I'm not sure if this would be any help, but if MOFH's tutorial is outdated, this one may be more updated: https://aavidtutorials.com/mofh/how-to-setup-whmcs-with-myownfreehost/

from mofh-api-docs.

Wallvon avatar Wallvon commented on July 19, 2024

Hi there,

Sadly, I don't have experience with the WHMCS addon module, so I can't help you with that. However, https://myownfreehost.net/cpanel-api.php should provide you with enough information. If that doesn't help either, I'd suggest contacting iFastNet support over at https://support.ifastnet.com since it could be that a WHMCS update broke the module, or there is some configuration error on your end. Next to that, https://panel.myownfreehost.net/json-api/ENDPOINT_HERE would be correct, however, batch.php isn't a valid endpoint it seems.

As for the callback URL, that should point to a webserver you host yourself that accepts the form values of https://api.myownfreehost.net/initial-setup/callbacks#hosting-account-callbacks and https://api.myownfreehost.net/initial-setup/callbacks#ticketing-system-callbacks respectively. These are application/x-www-form-urlencoded values, so you would get them the same way as you would get data from an HTML form.

I hope this helps, and if you have any other questions don't hesitate to send another reply.

Best regards,
Robert S.

from mofh-api-docs.

123ysys avatar 123ysys commented on July 19, 2024

Hi there,

Sadly, I don't have experience with the WHMCS addon module, so I can't help you with that. However, https://myownfreehost.net/cpanel-api.php should provide you with enough information. If that doesn't help either, I'd suggest contacting iFastNet support over at https://support.ifastnet.com since it could be that a WHMCS update broke the module, or there is some configuration error on your end. Next to that, https://panel.myownfreehost.net/json-api/ENDPOINT_HERE would be correct, however, batch.php isn't a valid endpoint it seems.

As for the callback URL, that should point to a webserver you host yourself that accepts the form values of https://api.myownfreehost.net/initial-setup/callbacks#hosting-account-callbacks and https://api.myownfreehost.net/initial-setup/callbacks#ticketing-system-callbacks respectively. These are application/x-www-form-urlencoded values, so you would get them the same way as you would get data from an HTML form.

I hope this helps, and if you have any other questions don't hesitate to send another reply.

Best regards, Robert S.

Thank you for these information. All this information is what I have found before opening the issue and infast has stated that they will not provide support for API issues. I'm afraid I won't get anywhere, but I'd like to ask anyway, I saw a video example online where it has whmcs installed on the cpanel panel, and mine is not. Could this be the reason for the failure?

from mofh-api-docs.

Wallvon avatar Wallvon commented on July 19, 2024

[...] I saw a video example online where it has whmcs installed on the cpanel panel, and mine is not. Could this be the reason for the failure?

No, the control panel that WHMCS is installed on shouldn't matter.

Your issues may be because of a WHMCS update, or because you set the module up incorrectly. Make sure to follow the instructions on https://myownfreehost.net/cpanel-api.php and https://api.myownfreehost.net/initial-setup/add-allowed-ip.

If that doesn't help I'll try to make some time to set up a WHMCS development instance and see if I can recreate this issue.

Best regards,
Robert S.

from mofh-api-docs.

123ysys avatar 123ysys commented on July 19, 2024

Thank you for replying.

Your issues may be because of a WHMCS update, or because you set the module up incorrectly. Make sure to follow the instructions on https://myownfreehost.net/cpanel-api.php and https://api.myownfreehost.net/initial-setup/add-allowed-ip.

Sure I followed the two tutorials you mentioned at the beginning. I also asked the WHMCS support team to help, and they think maybe it is because the API endpoints miss on the cPanel server, which caused the 404 error. It's terrible that Ifastnet doesn't assist with API-related problems, otherwise, I can find the right roles for looking for help.

If that doesn't help I'll try to make some time to set up a WHMCS development instance and see if I can recreate this issue.

I found the documents are really old and outdated, so yeah, thank you for considering updating them, it is important.

from mofh-api-docs.

Wallvon avatar Wallvon commented on July 19, 2024

I also asked the WHMCS support team to help, and they think maybe it is because the API endpoints miss on the cPanel server, which caused the 404 error.

Do keep in mind that vPanel is not cPanel, and that although they share similarities (mainly the theme of the panel, which is mostly a custom-built mess made with Angular, and parts of the API), they really aren't alike. And I doubt that WHMCS has ever worked with vPanel.

from mofh-api-docs.

123ysys avatar 123ysys commented on July 19, 2024

No matter vPanel is or is not cPanel, and no matter if Whmcs has ever worked with vPanel. The tutorial of this link https://myownfreehost.net/cpanel-api.php[https://myownfreehost.net/cpanel-api.php](https://myownfreehost.net/cpanel-api.php) are showing the cases of cPanel instead of vPanel, isn't it. So I have no reasons to ask whmcs about the clues of vPanel.

from mofh-api-docs.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.